llvm.org GIT mirror llvm / 5bee46d
new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36532 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
2 changed file(s) with 21 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llc
1
2 ; Test that we can have an "X" output constraint.
3
4 define void @test(i16 * %t) {
5 call void asm sideeffect "fwait", "=*X,~{dirflag},~{fpsr},~{flags},~{memory}"( i16* %t )
6 ret void
7 }
0 ; RUN: llvm-as < %s | llc
1
2 %struct..0anon = type { [100 x i32] }
3
4 define void @test() {
5 entry:
6 %currfpu = alloca %struct..0anon, align 16 ; <%struct..0anon*> [#uses=2]
7 %mxcsr = alloca %struct..0anon, align 16 ; <%struct..0anon*> [#uses=1]
8 call void asm sideeffect "fnstenv $0", "=*m,~{dirflag},~{fpsr},~{flags}"( %struct..0anon* %currfpu )
9 call void asm sideeffect "$0 $1", "=*m,*m,~{dirflag},~{fpsr},~{flags}"( %struct..0anon* %mxcsr, %struct..0anon* %currfpu )
10 ret void
11 }
12