summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/inline-asm.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-06-08 18:26:48 +0000
committerChris Lattner <sabre@nondot.org>2006-06-08 18:26:48 +0000
commit586e65357b40df07e0d9562955a7a332429f1a8a (patch)
tree9e25113d5e6652b2c0921e758e732a51ef1988aa /test/CodeGen/X86/inline-asm.ll
parentcf752aa502a2ce6eaca9db4640171143c49e1733 (diff)
downloadllvm-586e65357b40df07e0d9562955a7a332429f1a8a.tar.gz
llvm-586e65357b40df07e0d9562955a7a332429f1a8a.tar.bz2
llvm-586e65357b40df07e0d9562955a7a332429f1a8a.tar.xz
Add new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28732 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/inline-asm.ll')
-rw-r--r--test/CodeGen/X86/inline-asm.ll8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/CodeGen/X86/inline-asm.ll b/test/CodeGen/X86/inline-asm.ll
index de14509188..a38596df62 100644
--- a/test/CodeGen/X86/inline-asm.ll
+++ b/test/CodeGen/X86/inline-asm.ll
@@ -2,7 +2,13 @@
int %test1() {
; Dest is AX, dest type = i32.
- %tmp4 = call int asm sideeffect "FROB %0", "={ax}"()
+ %tmp4 = call int asm sideeffect "FROB $0", "={ax}"()
ret int %tmp4
}
+void %test2(int %V) {
+ ; input is AX, in type = i32.
+ call void asm sideeffect "FROB $0", "{ax}"(int %V)
+ ret void
+}
+