Use the output of the asm so the optimizer won't
authorDale Johannesen <dalej@apple.com>
Tue, 14 Apr 2009 01:51:40 +0000 (01:51 +0000)
committerDale Johannesen <dalej@apple.com>
Tue, 14 Apr 2009 01:51:40 +0000 (01:51 +0000)
delete it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69018 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/ARM/2009-04-06-AsmModifier.ll

index ee6dc845460817923465331a008c19d5c023f922..11c05c6ea7b3d4d5551fcff5451286c01ca101ac 100644 (file)
@@ -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