From: Dale Johannesen Date: Tue, 14 Apr 2009 01:51:40 +0000 (+0000) Subject: Use the output of the asm so the optimizer won't X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=442b7bfc8004429b937ec304c7d67b29e86e6d44;p=oota-llvm.git 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 --- diff --git a/test/CodeGen/ARM/2009-04-06-AsmModifier.ll b/test/CodeGen/ARM/2009-04-06-AsmModifier.ll index ee6dc845460..11c05c6ea7b 100644 --- a/test/CodeGen/ARM/2009-04-06-AsmModifier.ll +++ b/test/CodeGen/ARM/2009-04-06-AsmModifier.ll @@ -10,7 +10,8 @@ entry: %fh = alloca i32 ; [#uses=1] %1 = load i32* %fh ; [#uses=1] %2 = load i32* %ptr ; [#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 ; [#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 ; [#uses=1] + store i32 %3, i32* %retval br label %return return: ; preds = %entry