blob: 561aff3307e1f0e6a837d526a4c773bc04b2be88 [file] [log] [blame]
Chris Lattner7fbb2ec2006-07-31 23:25:17 +00001; PR850
Tanya Lattner6f729d62008-03-25 04:26:08 +00002; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=att | \
Reid Spencerd3b1f6d2007-04-15 22:20:47 +00003; RUN: grep {movl 4(%eax),%ebp}
Tanya Lattner6f729d62008-03-25 04:26:08 +00004; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=att | \
Reid Spencerd3b1f6d2007-04-15 22:20:47 +00005; RUN: grep {movl 0(%eax), %ebx}
Chris Lattner7fbb2ec2006-07-31 23:25:17 +00006
Tanya Lattner6f729d62008-03-25 04:26:08 +00007define i32 @foo(i32 %__s.i.i, i32 %tmp5.i.i, i32 %tmp6.i.i, i32 %tmp7.i.i, i32 %tmp8.i.i) {
8 %tmp9.i.i = call i32 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}"( i32 192, i32 %__s.i.i, i32 %tmp5.i.i, i32 %tmp6.i.i, i32 %tmp7.i.i, i32 %tmp8.i.i ) ; <i32> [#uses=1]
9 ret i32 %tmp9.i.i
Chris Lattner7fbb2ec2006-07-31 23:25:17 +000010}
Tanya Lattner6f729d62008-03-25 04:26:08 +000011