diff options
Diffstat (limited to 'test/CodeGen/X86/2006-03-01-InstrSchedBug.ll')
-rw-r--r-- | test/CodeGen/X86/2006-03-01-InstrSchedBug.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2006-03-01-InstrSchedBug.ll b/test/CodeGen/X86/2006-03-01-InstrSchedBug.ll new file mode 100644 index 0000000..b7f08cf --- /dev/null +++ b/test/CodeGen/X86/2006-03-01-InstrSchedBug.ll @@ -0,0 +1,11 @@ +; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep {subl.*%esp} + +int %f(int %a, int %b) { + %tmp.2 = mul int %a, %a + %tmp.5 = shl int %a, ubyte 1 + %tmp.6 = mul int %tmp.5, %b + %tmp.10 = mul int %b, %b + %tmp.7 = add int %tmp.10, %tmp.2 + %tmp.11 = add int %tmp.7, %tmp.6 + ret int %tmp.11 +} |