2007-07-17 10:25:31 +00:00
|
|
|
; RUN: llvm-as < %s | llc
|
2007-07-17 18:08:32 +00:00
|
|
|
; XFAIL: sparc-sun-solaris2
|
2007-07-17 10:25:31 +00:00
|
|
|
; PR1557
|
2007-04-28 06:05:59 +00:00
|
|
|
|
|
|
|
%struct..0anon = type { [100 x i32] }
|
|
|
|
|
|
|
|
define void @test() {
|
|
|
|
entry:
|
|
|
|
%currfpu = alloca %struct..0anon, align 16 ; <%struct..0anon*> [#uses=2]
|
|
|
|
%mxcsr = alloca %struct..0anon, align 16 ; <%struct..0anon*> [#uses=1]
|
|
|
|
call void asm sideeffect "fnstenv $0", "=*m,~{dirflag},~{fpsr},~{flags}"( %struct..0anon* %currfpu )
|
|
|
|
call void asm sideeffect "$0 $1", "=*m,*m,~{dirflag},~{fpsr},~{flags}"( %struct..0anon* %mxcsr, %struct..0anon* %currfpu )
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|