diff options
author | Dale Johannesen <dalej@apple.com> | 2009-04-14 01:51:40 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2009-04-14 01:51:40 +0000 |
commit | 442b7bfc8004429b937ec304c7d67b29e86e6d44 (patch) | |
tree | 5b482a6747c52123f19ae9208bb91cca2fda69c6 | |
parent | 0b2a153968ef4419be3dbec70d5eac12b031251f (diff) |
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
-rw-r--r-- | test/CodeGen/ARM/2009-04-06-AsmModifier.ll | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/CodeGen/ARM/2009-04-06-AsmModifier.ll b/test/CodeGen/ARM/2009-04-06-AsmModifier.ll index ee6dc84546..11c05c6ea7 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 ; <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 |