llvm.org GIT mirror llvm / 7754d2f
upgrade this testcase, add test for fp immediate to memory operand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35034 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 12 years ago
1 changed file(s) with 13 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86
0 ; RUN: llvm-as < %s | llc -march=x86
11
2 int %test1() {
2 define i32 @test1() {
33 ; Dest is AX, dest type = i32.
4 %tmp4 = call int asm sideeffect "FROB $0", "={ax}"()
5 ret int %tmp4
4 %tmp4 = call i32 asm sideeffect "FROB $0", "={ax}"()
5 ret i32 %tmp4
66 }
77
8 void %test2(int %V) {
8 define void @test2(i32 %V) {
99 ; input is AX, in type = i32.
10 call void asm sideeffect "FROB $0", "{ax}"(int %V)
10 call void asm sideeffect "FROB $0", "{ax}"(i32 %V)
1111 ret void
1212 }
1313
14 define void @test3() {
15 ; FP constant as a memory operand.
16 tail call void asm sideeffect "frob $0", "m"( float 0x41E0000000000000)
17 ret void
18 }
19
20