diff options
author | Chris Lattner <sabre@nondot.org> | 2007-03-08 22:33:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-03-08 22:33:06 +0000 |
commit | 577e8b4ed89e7087191584c14180d8a081ddc3e0 (patch) | |
tree | 46f28b71222d842984c187a2c27880d486beb7b2 /llvm/test/CodeGen/X86/inline-asm.ll | |
parent | ce8aba03eee5ab2eb86d6c21a1feab20433ae1c9 (diff) | |
download | bcm5719-llvm-577e8b4ed89e7087191584c14180d8a081ddc3e0.tar.gz bcm5719-llvm-577e8b4ed89e7087191584c14180d8a081ddc3e0.zip |
upgrade this testcase, add test for fp immediate to memory operand.
llvm-svn: 35034
Diffstat (limited to 'llvm/test/CodeGen/X86/inline-asm.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/inline-asm.ll | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/llvm/test/CodeGen/X86/inline-asm.ll b/llvm/test/CodeGen/X86/inline-asm.ll index 1e96efce3e4..54dfe76478a 100644 --- a/llvm/test/CodeGen/X86/inline-asm.ll +++ b/llvm/test/CodeGen/X86/inline-asm.ll @@ -1,14 +1,21 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 +; RUN: llvm-as < %s | llc -march=x86 -int %test1() { +define i32 @test1() { ; Dest is AX, dest type = i32. - %tmp4 = call int asm sideeffect "FROB $0", "={ax}"() - ret int %tmp4 + %tmp4 = call i32 asm sideeffect "FROB $0", "={ax}"() + ret i32 %tmp4 } -void %test2(int %V) { +define void @test2(i32 %V) { ; input is AX, in type = i32. - call void asm sideeffect "FROB $0", "{ax}"(int %V) + call void asm sideeffect "FROB $0", "{ax}"(i32 %V) ret void } +define void @test3() { + ; FP constant as a memory operand. + tail call void asm sideeffect "frob $0", "m"( float 0x41E0000000000000) + ret void +} + + |