Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | llc |
| 2 | ; XFAIL: sparc-sun-solaris2 |
| 3 | ; PR1557 |
| 4 | |
| 5 | %struct..0anon = type { [100 x i32] } |
| 6 | |
| 7 | define void @test() { |
| 8 | entry: |
| 9 | %currfpu = alloca %struct..0anon, align 16 ; <%struct..0anon*> [#uses=2] |
| 10 | %mxcsr = alloca %struct..0anon, align 16 ; <%struct..0anon*> [#uses=1] |
| 11 | call void asm sideeffect "fnstenv $0", "=*m,~{dirflag},~{fpsr},~{flags}"( %struct..0anon* %currfpu ) |
| 12 | call void asm sideeffect "$0 $1", "=*m,*m,~{dirflag},~{fpsr},~{flags}"( %struct..0anon* %mxcsr, %struct..0anon* %currfpu ) |
| 13 | ret void |
| 14 | } |
| 15 | |