mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
new testcase
llvm-svn: 36532
This commit is contained in:
parent
287a590e95
commit
4a79914438
8
test/CodeGen/Generic/2007-04-27-InlineAsm-X-Dest.ll
Normal file
8
test/CodeGen/Generic/2007-04-27-InlineAsm-X-Dest.ll
Normal file
@ -0,0 +1,8 @@
|
||||
; RUN: llvm-as < %s | llc
|
||||
|
||||
; Test that we can have an "X" output constraint.
|
||||
|
||||
define void @test(i16 * %t) {
|
||||
call void asm sideeffect "fwait", "=*X,~{dirflag},~{fpsr},~{flags},~{memory}"( i16* %t )
|
||||
ret void
|
||||
}
|
13
test/CodeGen/Generic/2007-04-27-LargeMemObject.ll
Normal file
13
test/CodeGen/Generic/2007-04-27-LargeMemObject.ll
Normal file
@ -0,0 +1,13 @@
|
||||
; RUN: llvm-as < %s | llc
|
||||
|
||||
%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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user