blob: 54dfe76478ae36d5a15dc4452bab2fa2ff94a387 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-as < %s | llc -march=x86
2
3define i32 @test1() {
4 ; Dest is AX, dest type = i32.
5 %tmp4 = call i32 asm sideeffect "FROB $0", "={ax}"()
6 ret i32 %tmp4
7}
8
9define void @test2(i32 %V) {
10 ; input is AX, in type = i32.
11 call void asm sideeffect "FROB $0", "{ax}"(i32 %V)
12 ret void
13}
14
15define void @test3() {
16 ; FP constant as a memory operand.
17 tail call void asm sideeffect "frob $0", "m"( float 0x41E0000000000000)
18 ret void
19}
20
21