llvm-6502/test/CodeGen/X86/inline-asm.ll
Chris Lattner 586e65357b Add new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28732 91177308-0d34-0410-b5e6-96231b3b80d8
2006-06-08 18:26:48 +00:00

15 lines
303 B
LLVM

; RUN: llvm-as < %s | llc -march=x86
int %test1() {
; Dest is AX, dest type = i32.
%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
}