aboutsummaryrefslogtreecommitdiff
path: root/test/copy.ssa
diff options
context:
space:
mode:
Diffstat (limited to 'test/copy.ssa')
-rw-r--r--test/copy.ssa15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/copy.ssa b/test/copy.ssa
new file mode 100644
index 0000000..5c2a4d0
--- /dev/null
+++ b/test/copy.ssa
@@ -0,0 +1,15 @@
+export function w $f() {
+@start
+ %x0 =w loadsb $a
+ # the extension must not be eliminated
+ # even though the load already extended
+ %x1 =l extsb %x0
+ %c =w ceql %x1, -1
+ ret %c
+}
+
+# >>> driver
+# char a = -1;
+# extern int f();
+# int main() { return !(f() == 1); }
+# <<<