[llvm-commits] [llvm] r69018 - /llvm/trunk/test/CodeGen/ARM/2009-04-06-AsmModifier.ll
Dale Johannesen
dalej at apple.com
Mon Apr 13 18:51:40 PDT 2009
Author: johannes
Date: Mon Apr 13 20:51:40 2009
New Revision: 69018
URL: http://llvm.org/viewvc/llvm-project?rev=69018&view=rev
Log:
Use the output of the asm so the optimizer won't
delete it.
Modified:
llvm/trunk/test/CodeGen/ARM/2009-04-06-AsmModifier.ll
Modified: llvm/trunk/test/CodeGen/ARM/2009-04-06-AsmModifier.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/2009-04-06-AsmModifier.ll?rev=69018&r1=69017&r2=69018&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/2009-04-06-AsmModifier.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/2009-04-06-AsmModifier.ll Mon Apr 13 20:51:40 2009
@@ -10,7 +10,8 @@
%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
More information about the llvm-commits
mailing list