aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2002-12-23-SubProblem.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/2002-12-23-SubProblem.ll')
-rw-r--r--test/CodeGen/X86/2002-12-23-SubProblem.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2002-12-23-SubProblem.ll b/test/CodeGen/X86/2002-12-23-SubProblem.ll
new file mode 100644
index 0000000000..68200ff234
--- /dev/null
+++ b/test/CodeGen/X86/2002-12-23-SubProblem.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | llc -march=x86 -regalloc=simple
+
+define i32 @main(i32 %B) {
+ ;%B = add i32 0, 1;
+ %R = sub i32 %B, 1 ; %r = 0
+ ret i32 %R
+}