mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-19 17:37:24 +00:00
e4e2e18f47
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35323 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
372 B
LLVM
12 lines
372 B
LLVM
; RUN: llvm-as < %s | llc -march=x86
|
|
|
|
define i32 @test(i16 %tmp40414244) {
|
|
%tmp48 = call i32 asm sideeffect "inl ${1:w}, $0", "={ax},N{dx},~{dirflag},~{fpsr},~{flags}"( i16 %tmp40414244 )
|
|
ret i32 %tmp48
|
|
}
|
|
|
|
define i32 @test2(i16 %tmp40414244) {
|
|
%tmp48 = call i32 asm sideeffect "inl ${1:w}, $0", "={ax},N{dx},~{dirflag},~{fpsr},~{flags}"( i16 14 )
|
|
ret i32 %tmp48
|
|
}
|