aboutsummaryrefslogtreecommitdiff
path: root/test/fixarg.ssa
diff options
context:
space:
mode:
authorQuentin Carbonneaux <[email protected]>2016-04-13 19:47:59 -0400
committerQuentin Carbonneaux <[email protected]>2016-04-13 22:21:58 -0400
commit3cabc10e7daad7024b77f78837979e39f5b721af (patch)
tree15a4d19d674e57f302c101d118ae1c7f87cdf51a /test/fixarg.ssa
parent3bec2c6087adb791a862ddd8a1bfa25978f97b0c (diff)
add regression test for fixarg bug
Diffstat (limited to 'test/fixarg.ssa')
-rw-r--r--test/fixarg.ssa15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/fixarg.ssa b/test/fixarg.ssa
new file mode 100644
index 0000000..85824fd
--- /dev/null
+++ b/test/fixarg.ssa
@@ -0,0 +1,15 @@
+# regression test for 3bec2c60
+
+export
+function w $test() {
+@start
+ %x1 =l alloc8 8
+ %x2 =l alloc8 8
+ %r =w cnel %x1, %x2 # both operands need fixing
+ ret %r
+}
+
+# >>> driver
+# extern int test();
+# int main() { return !(test() == 1); }
+# <<<