llvm.org GIT mirror llvm / 827a1f4
update for new inline asm syntax git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36526 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
88 entry:
99 %X_addr = alloca int ; [#uses=3]
1010 store int %X, int* %X_addr
11 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 )
11 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 )
1212 %tmp1 = load int* %X_addr ; [#uses=1]
1313 ret int %tmp1
1414 }
1717 entry:
1818 %X_addr = alloca int ; [#uses=3]
1919 store int %X, int* %X_addr
20 call void asm sideeffect "xchg{l} {$0,$1|$1,$0}", "==m,==r,1,~{dirflag},~{fpsr},~{flags}"( int* %G, int* %X_addr, int %X )
20 call void asm sideeffect "xchg{l} {$0,$1|$1,$0}", "=*m,=*r,1,~{dirflag},~{fpsr},~{flags}"( int* %G, int* %X_addr, int %X )
2121 %tmp1 = load int* %X_addr ; [#uses=1]
2222 ret int %tmp1
2323 }
88
99 define fastcc i32 @bc_divide(%struct.bc_struct* %n1, %struct.bc_struct* %n2, %struct.bc_struct** %quot, i32 %scale) {
1010 entry:
11 %tmp7.i46 = tail call i64 asm sideeffect ".byte 0x0f,0x31", "={dx},=={ax},~{dirflag},~{fpsr},~{flags}"( i64* getelementptr (%struct.CycleCount* @_programStartTime, i32 0, i32 1) ) ; [#uses=0]
11 %tmp7.i46 = tail call i64 asm sideeffect ".byte 0x0f,0x31", "={dx},=*{ax},~{dirflag},~{fpsr},~{flags}"( i64* getelementptr (%struct.CycleCount* @_programStartTime, i32 0, i32 1) ) ; [#uses=0]
1212 %tmp221 = sdiv i32 10, 0 ; [#uses=1]
1313 tail call fastcc void @_one_mult( i8* null, i32 0, i32 %tmp221, i8* null )
1414 ret i32 0