mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 12:50:00 +00:00
update syntax
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36531 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
83f241ec61
commit
93e3d8f308
@ -6,7 +6,7 @@ define i32 @test1(i32 %tmp54) {
|
||||
}
|
||||
|
||||
define void @test2() {
|
||||
%tmp1 = call i64 asm "ldmia $1!, {$0, ${0:H}}", "=r,==r,1"( i32** null, i32* null ) ; <i64> [#uses=2]
|
||||
%tmp1 = call i64 asm "ldmia $1!, {$0, ${0:H}}", "=r,=*r,1"( i32** null, i32* null ) ; <i64> [#uses=2]
|
||||
%tmp2 = lshr i64 %tmp1, 32 ; <i64> [#uses=1]
|
||||
%tmp3 = trunc i64 %tmp2 to i32 ; <i32> [#uses=1]
|
||||
%tmp4 = call i32 asm "pkhbt $0, $1, $2, lsl #16", "=r,r,r"( i32 0, i32 %tmp3 ) ; <i32> [#uses=0]
|
||||
|
@ -9,12 +9,12 @@ implementation ; Functions:
|
||||
int %_ZN9__gnu_cxx18__exchange_and_addEPVii(int* %__mem, int %__val) {
|
||||
entry:
|
||||
%__tmp = alloca int, align 4 ; <int*> [#uses=1]
|
||||
%tmp3 = call int asm sideeffect "\0A$$Lxadd_0:\0A\09ldl_l $0,$3\0A\09addl $0,$4,$1\0A\09stl_c $1,$2\0A\09beq $1,$$Lxadd_0\0A\09mb", "=&r,==&r,==m,m,r"( int* %__tmp, int* %__mem, int* %__mem, int %__val ) ; <int> [#uses=1]
|
||||
%tmp3 = call int asm sideeffect "\0A$$Lxadd_0:\0A\09ldl_l $0,$3\0A\09addl $0,$4,$1\0A\09stl_c $1,$2\0A\09beq $1,$$Lxadd_0\0A\09mb", "=&r,=*&r,=*m,m,r"( int* %__tmp, int* %__mem, int* %__mem, int %__val ) ; <int> [#uses=1]
|
||||
ret int %tmp3
|
||||
}
|
||||
|
||||
void %_ZN9__gnu_cxx12__atomic_addEPVii(int* %__mem, int %__val) {
|
||||
entry:
|
||||
%tmp2 = call int asm sideeffect "\0A$$Ladd_1:\0A\09ldl_l $0,$2\0A\09addl $0,$3,$0\0A\09stl_c $0,$1\0A\09beq $0,$$Ladd_1\0A\09mb", "=&r,==m,m,r"( int* %__mem, int* %__mem, int %__val ) ; <int> [#uses=0]
|
||||
%tmp2 = call int asm sideeffect "\0A$$Ladd_1:\0A\09ldl_l $0,$2\0A\09addl $0,$3,$0\0A\09stl_c $0,$1\0A\09beq $0,$$Ladd_1\0A\09mb", "=&r,=*m,m,r"( int* %__mem, int* %__mem, int %__val ) ; <int> [#uses=0]
|
||||
ret void
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ bool %_ZNK12QImageWriter8canWriteEv() {
|
||||
%tmp62 = load %struct.QImageWriterPrivate** null ; <%struct.QImageWriterPrivate*> [#uses=1]
|
||||
%tmp = getelementptr %struct.QImageWriterPrivate* %tmp62, int 0, uint 9 ; <%struct.QString*> [#uses=1]
|
||||
%tmp75 = call %struct.QString* %_ZN7QStringaSERKS_( %struct.QString* %tmp, %struct.QString* null ) ; <%struct.QString*> [#uses=0]
|
||||
call void asm sideeffect "lock\0Adecl $0\0Asetne 1", "==m"( int* null )
|
||||
call void asm sideeffect "lock\0Adecl $0\0Asetne 1", "=*m"( int* null )
|
||||
ret bool false
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@ target triple = "i686-pc-linux-gnu"
|
||||
|
||||
define void @bc__support__high_resolution_time__clock() {
|
||||
entry:
|
||||
call void asm "rdtsc\0A\09movl %eax, $0\0A\09movl %edx, $1", "==imr,==imr,~{dirflag},~{fpsr},~{flags},~{dx},~{ax}"( i32* null, i32* null )
|
||||
call void asm "rdtsc\0A\09movl %eax, $0\0A\09movl %edx, $1", "=*imr,=*imr,~{dirflag},~{fpsr},~{flags},~{dx},~{ax}"( i32* null, i32* null )
|
||||
unreachable
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user