aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim
diff options
Diffstat (limited to 'validation/optim')
-rw-r--r--validation/optim/shift-big.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/validation/optim/shift-big.c b/validation/optim/shift-big.c
new file mode 100644
index 00000000..3249854e
--- /dev/null
+++ b/validation/optim/shift-big.c
@@ -0,0 +1,27 @@
+typedef unsigned int u32;
+typedef int s32;
+
+static u32 lsr32(u32 a) { return a >> 32; }
+static s32 asr32(s32 a) { return a >> 32; }
+
+/*
+ * check-name: optim/shift-big.c
+ * check-command: test-linearize -fnormalize-pseudos $file
+ *
+ * check-error-ignore
+ * check-output-start
+lsr32:
+.L0:
+ <entry-point>
+ ret.32 $0
+
+
+asr32:
+.L2:
+ <entry-point>
+ asr.32 %r5 <- %arg1, $32
+ ret.32 %r5
+
+
+ * check-output-end
+ */