mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
9bf45d0b1a
Fixes PR9602! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134665 91177308-0d34-0410-b5e6-96231b3b80d8
23 lines
684 B
LLVM
23 lines
684 B
LLVM
; RUN: llc < %s -march=x86-64
|
|
; rdar://7066579
|
|
|
|
%0 = type { i64, i64, i64, i64, i64 } ; type %0
|
|
|
|
define void @test1() nounwind {
|
|
entry:
|
|
%asmtmp = call %0 asm sideeffect "mov %cr0, $0 \0Amov %cr2, $1 \0Amov %cr3, $2 \0Amov %cr4, $3 \0Amov %cr8, $0 \0A", "=q,=q,=q,=q,=q,~{dirflag},~{fpsr},~{flags}"() nounwind ; <%0> [#uses=0]
|
|
ret void
|
|
}
|
|
|
|
; PR9602
|
|
define void @test2(float %tmp) nounwind {
|
|
call void asm sideeffect "$0", "q"(float %tmp) nounwind
|
|
call void asm sideeffect "$0", "Q"(float %tmp) nounwind
|
|
ret void
|
|
}
|
|
|
|
define void @test3(double %tmp) nounwind {
|
|
call void asm sideeffect "$0", "q"(double %tmp) nounwind
|
|
ret void
|
|
}
|