浏览代码

add regression test for fixarg bug

Quentin Carbonneaux 9 年之前
父节点
当前提交
3cabc10e7d
共有 1 个文件被更改,包括 15 次插入0 次删除
  1. 15 0
      test/fixarg.ssa

+ 15 - 0
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); }
+# <<<