summary refs log tree commit diff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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); }
+# <<<