blob: 3159cec8553e416a47d3153ddd67f93bd073e344 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; PR850
Dan Gohman0a063102009-09-08 23:54:48 +00002; RUN: llc < %s -march=x86 -x86-asm-syntax=att > %t
Dan Gohmanb243c282008-06-10 00:36:41 +00003; RUN: grep {movl 4(%eax),%ebp} %t
4; RUN: grep {movl 0(%eax), %ebx} %t
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005
Tanya Lattner348c6182008-03-25 04:26:08 +00006define i32 @foo(i32 %__s.i.i, i32 %tmp5.i.i, i32 %tmp6.i.i, i32 %tmp7.i.i, i32 %tmp8.i.i) {
7 %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]
8 ret i32 %tmp9.i.i
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009}
Tanya Lattner348c6182008-03-25 04:26:08 +000010