mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 08:46:23 +00:00
Use the output of the asm so the optimizer won't
delete it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69018 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0b2a153968
commit
442b7bfc80
@ -10,7 +10,8 @@ entry:
|
||||
%fh = alloca i32 ; <i32*> [#uses=1]
|
||||
%1 = load i32* %fh ; <i32> [#uses=1]
|
||||
%2 = load i32* %ptr ; <i32> [#uses=1]
|
||||
%3 = call i32* asm "mov r0, $2; mov r1, $3; swi ${1:a}; mov $0, r0", "=r,i,r,r,~{r0},~{r1}"(i32 107, i32 %1, i32 %2) nounwind ; <i32*> [#uses=0]
|
||||
%3 = call i32 asm "mov r0, $2; mov r1, $3; swi ${1:a}; mov $0, r0", "=r,i,r,r,~{r0},~{r1}"(i32 107, i32 %1, i32 %2) nounwind ; <i32> [#uses=1]
|
||||
store i32 %3, i32* %retval
|
||||
br label %return
|
||||
|
||||
return: ; preds = %entry
|
||||
|
Loading…
Reference in New Issue
Block a user