[sim] integrated SoftFloat-3 with ISA sim; removed SoftFloat-2b
[riscv-isa-sim.git] / softfloat / s_shortShift192Left.cc
diff --git a/softfloat/s_shortShift192Left.cc b/softfloat/s_shortShift192Left.cc
new file mode 100755 (executable)
index 0000000..cf1e55d
--- /dev/null
@@ -0,0 +1,20 @@
+\r
+#include <stdint.h>\r
+#include "platform.h"\r
+#include "primitives.h"\r
+\r
+struct uint192\r
+ softfloat_shortShift192Left(\r
+     uint64_t a128, uint64_t a64, uint64_t a0, unsigned int count )\r
+{\r
+    unsigned int negCount;\r
+    struct uint192 z;\r
+\r
+    negCount = - count;\r
+    z.v128 = a128<<count | a64>>( negCount & 63 );\r
+    z.v64 = a64<<count | a0>>( negCount & 63 );\r
+    z.v0 = a0<<count;\r
+    return z;\r
+\r
+}\r
+\r