diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-30 16:16:01 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-30 16:16:01 +0000 |
commit | 908504347b0565c4d4817af444012be76ba4b76f (patch) | |
tree | 443cd5fa4f0eacde4cdb1601d18cd9eb5526ea43 /test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll | |
parent | 82d5ee5653fdbd9bdcd75f8509429a0d72c80fa8 (diff) | |
download | external_llvm-908504347b0565c4d4817af444012be76ba4b76f.zip external_llvm-908504347b0565c4d4817af444012be76ba4b76f.tar.gz external_llvm-908504347b0565c4d4817af444012be76ba4b76f.tar.bz2 |
For PR411:
Update these tests to not use the same name even though the type of the
value differs. After PR411 hits, type planes will be gone and it will be
illegal for a name to be used twice, regardless of type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33660 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll')
-rw-r--r-- | test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll b/test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll index cfbac7d..d9374ed 100644 --- a/test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll +++ b/test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll @@ -1,9 +1,10 @@ -; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep cntlzw +; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \ +; RUN: grep cntlzw define i32 @foo() { entry: %retval = alloca i32, align 4 ; <i32*> [#uses=2] - %tmp = alloca i32, align 4 ; <i32*> [#uses=2] + %temp = alloca i32, align 4 ; <i32*> [#uses=2] %ctz_x = alloca i32, align 4 ; <i32*> [#uses=3] %ctz_c = alloca i32, align 4 ; <i32*> [#uses=2] "alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0] @@ -15,12 +16,12 @@ entry: %tmp4 = call i32 asm "$(cntlz$|cntlzw$) $0,$1", "=r,r,~{dirflag},~{fpsr},~{flags}"( i32 %tmp3 ) ; <i32> [#uses=1] store i32 %tmp4, i32* %ctz_c %tmp5 = load i32* %ctz_c ; <i32> [#uses=1] - store i32 %tmp5, i32* %tmp - %tmp6 = load i32* %tmp ; <i32> [#uses=1] + store i32 %tmp5, i32* %temp + %tmp6 = load i32* %temp ; <i32> [#uses=1] store i32 %tmp6, i32* %retval br label %return return: ; preds = %entry - %retval = load i32* %retval ; <i32> [#uses=1] - ret i32 %retval + %retval2 = load i32* %retval ; <i32> [#uses=1] + ret i32 %retval2 } |