summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2006-07-31-SingleRegClass.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-07-31 23:25:17 +0000
committerChris Lattner <sabre@nondot.org>2006-07-31 23:25:17 +0000
commit7fbb2ec33a7922954ecd80cfce3262477a7b50f5 (patch)
tree21ea4756f66d1a1341ab4473ea54bcee7d2f2b18 /test/CodeGen/X86/2006-07-31-SingleRegClass.ll
parent6c3acb7222a5f938d86f8757adc8d743eae49fba (diff)
downloadllvm-7fbb2ec33a7922954ecd80cfce3262477a7b50f5.tar.gz
llvm-7fbb2ec33a7922954ecd80cfce3262477a7b50f5.tar.bz2
llvm-7fbb2ec33a7922954ecd80cfce3262477a7b50f5.tar.xz
New testcase for PR850.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29419 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2006-07-31-SingleRegClass.ll')
-rw-r--r--test/CodeGen/X86/2006-07-31-SingleRegClass.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2006-07-31-SingleRegClass.ll b/test/CodeGen/X86/2006-07-31-SingleRegClass.ll
new file mode 100644
index 0000000000..92eb1cbb8e
--- /dev/null
+++ b/test/CodeGen/X86/2006-07-31-SingleRegClass.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=att | grep 'movl 4(%eax),%ebp' &&
+; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=att | grep 'movl 0(%eax), %ebx'
+
+; PR850
+
+int %foo(int %__s.i.i, int %tmp5.i.i, int %tmp6.i.i, int %tmp7.i.i, int %tmp8.i.i ) {
+
+%tmp9.i.i = call int asm sideeffect "push %ebp\0Apush %ebx\0Amovl 4($2),%ebp\0Amovl 0($2), %ebx\0Amovl $1,%eax\0Aint $$0x80\0Apop %ebx\0Apop %ebp", "={ax},i,0,{cx},{dx},{si},{di}"(int 192, int %__s.i.i, int %tmp5.i.i, int %tmp6.i.i, int %tmp7.i.i, int %tmp8.i.i )
+ ret int %tmp9.i.i
+}