summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2006-03-01-InstrSchedBug.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-03-02 21:48:34 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-03-02 21:48:34 +0000
commitd180ac11099e4a3d65e486f1ffcfd67b30eed030 (patch)
tree30bd3d9607c0867d369ed413f9d18b0d8eb320c6 /test/CodeGen/X86/2006-03-01-InstrSchedBug.ll
parent86ec7d1d073dae5b75ad5749f65fc54c141180f5 (diff)
downloadllvm-d180ac11099e4a3d65e486f1ffcfd67b30eed030.tar.gz
llvm-d180ac11099e4a3d65e486f1ffcfd67b30eed030.tar.bz2
llvm-d180ac11099e4a3d65e486f1ffcfd67b30eed030.tar.xz
Add a regression test for bug 478.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26471 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2006-03-01-InstrSchedBug.ll')
-rw-r--r--test/CodeGen/X86/2006-03-01-InstrSchedBug.ll11
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 0000000000..0d2eda0556
--- /dev/null
+++ b/test/CodeGen/X86/2006-03-01-InstrSchedBug.ll
@@ -0,0 +1,11 @@
+; RUN: llvm-as < %s | 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
+}