mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
update for new inline asm syntax
llvm-svn: 36526
This commit is contained in:
parent
13b1e24f41
commit
6556ee94c9
@ -9,7 +9,7 @@ int %foo(int %X) {
|
||||
entry:
|
||||
%X_addr = alloca int ; <int*> [#uses=3]
|
||||
store int %X, int* %X_addr
|
||||
call void asm sideeffect "xchg{l} {$0,$1|$1,$0}", "==m,==r,m,1,~{dirflag},~{fpsr},~{flags}"( int* %G, int* %X_addr, int* %G, int %X )
|
||||
call void asm sideeffect "xchg{l} {$0,$1|$1,$0}", "=*m,=*r,m,1,~{dirflag},~{fpsr},~{flags}"( int* %G, int* %X_addr, int* %G, int %X )
|
||||
%tmp1 = load int* %X_addr ; <int> [#uses=1]
|
||||
ret int %tmp1
|
||||
}
|
||||
@ -18,7 +18,7 @@ int %foo2(int %X) {
|
||||
entry:
|
||||
%X_addr = alloca int ; <int*> [#uses=3]
|
||||
store int %X, int* %X_addr
|
||||
call void asm sideeffect "xchg{l} {$0,$1|$1,$0}", "==m,==r,1,~{dirflag},~{fpsr},~{flags}"( int* %G, int* %X_addr, int %X )
|
||||
call void asm sideeffect "xchg{l} {$0,$1|$1,$0}", "=*m,=*r,1,~{dirflag},~{fpsr},~{flags}"( int* %G, int* %X_addr, int %X )
|
||||
%tmp1 = load int* %X_addr ; <int> [#uses=1]
|
||||
ret int %tmp1
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ target triple = "x86_64-unknown-linux-gnu"
|
||||
|
||||
define fastcc i32 @bc_divide(%struct.bc_struct* %n1, %struct.bc_struct* %n2, %struct.bc_struct** %quot, i32 %scale) {
|
||||
entry:
|
||||
%tmp7.i46 = tail call i64 asm sideeffect ".byte 0x0f,0x31", "={dx},=={ax},~{dirflag},~{fpsr},~{flags}"( i64* getelementptr (%struct.CycleCount* @_programStartTime, i32 0, i32 1) ) ; <i64> [#uses=0]
|
||||
%tmp7.i46 = tail call i64 asm sideeffect ".byte 0x0f,0x31", "={dx},=*{ax},~{dirflag},~{fpsr},~{flags}"( i64* getelementptr (%struct.CycleCount* @_programStartTime, i32 0, i32 1) ) ; <i64> [#uses=0]
|
||||
%tmp221 = sdiv i32 10, 0 ; <i32> [#uses=1]
|
||||
tail call fastcc void @_one_mult( i8* null, i32 0, i32 %tmp221, i8* null )
|
||||
ret i32 0
|
||||
|
Loading…
Reference in New Issue
Block a user