aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/sext.c
diff options
Diffstat (limited to 'validation/optim/sext.c')
-rw-r--r--validation/optim/sext.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/validation/optim/sext.c b/validation/optim/sext.c
new file mode 100644
index 00000000..719730d5
--- /dev/null
+++ b/validation/optim/sext.c
@@ -0,0 +1,15 @@
+int sext(int x)
+{
+ return (x << 5) >> 5;
+}
+
+/*
+ * check-name: sext
+ * check-command: test-linearize -Wno-decl $file
+ * check-known-to-fail
+ *
+ * check-output-ignore
+ * check-output-contains: sext\\.$27
+ * check-output-excludes: asr\\.
+ * check-output-excludes: shl\\.
+ */