blob: a38596df62f73fb0a7b3a2f3bf755e2ccc507b0d [file] [log] [blame]
Chris Lattner5591c512006-06-08 18:20:13 +00001; RUN: llvm-as < %s | llc -march=x86
2
3int %test1() {
4 ; Dest is AX, dest type = i32.
Chris Lattner586e6532006-06-08 18:26:48 +00005 %tmp4 = call int asm sideeffect "FROB $0", "={ax}"()
Chris Lattner5591c512006-06-08 18:20:13 +00006 ret int %tmp4
7}
8
Chris Lattner586e6532006-06-08 18:26:48 +00009void %test2(int %V) {
10 ; input is AX, in type = i32.
11 call void asm sideeffect "FROB $0", "{ax}"(int %V)
12 ret void
13}
14