about summary refs log tree commit diff stats
path: root/reproducers
diff options
context:
space:
mode:
Diffstat (limited to 'reproducers')
-rw-r--r--reproducers/issue-2248.S11
-rw-r--r--reproducers/issue-2248.c10
2 files changed, 21 insertions, 0 deletions
diff --git a/reproducers/issue-2248.S b/reproducers/issue-2248.S
new file mode 100644
index 0000000..0bd3600
--- /dev/null
+++ b/reproducers/issue-2248.S
@@ -0,0 +1,11 @@
+.global callme
+callme:
+  cmp   x2, x3
+  cset  x12, lt
+  and   w11, w12, #0xff
+  cmp   w11, #0x0
+  csetm x14, ne
+  lsr   x13, x14, x4
+  sxtb  x0, w13
+  ret
+
diff --git a/reproducers/issue-2248.c b/reproducers/issue-2248.c
new file mode 100644
index 0000000..03948df
--- /dev/null
+++ b/reproducers/issue-2248.c
@@ -0,0 +1,10 @@
+#include <stdio.h>
+
+unsigned long long callme(unsigned long long _1, unsigned long long _2, unsigned long long a, unsigned long long b, unsigned long long c);
+
+int main() {
+    unsigned long long ret = callme(0, 0, 0, 1, 2);
+	printf("%lld\n", ret);
+    return 0;
+}
+