2009-09-09 07:54:48 +08:00
|
|
|
; RUN: llc < %s -march=x86-64
|
2009-07-18 06:13:25 +08:00
|
|
|
; rdar://7066579
|
|
|
|
|
2011-06-19 08:03:46 +08:00
|
|
|
%0 = type { i64, i64, i64, i64, i64 } ; type %0
|
2009-07-18 06:13:25 +08:00
|
|
|
|
2011-07-08 08:19:27 +08:00
|
|
|
define void @test1() nounwind {
|
2009-07-18 06:13:25 +08:00
|
|
|
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
|
|
|
|
}
|
2011-07-08 08:19:27 +08:00
|
|
|
|
|
|
|
; 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
|
|
|
|
}
|