Changes in directory llvm/test/CodeGen/PowerPC:

2007-01-15-AsmDialect.ll updated: 1.3 -> 1.4
and_sext.ll updated: 1.6 -> 1.7
---
Log message:

For PR411: http://llvm.org/PR411 :
Update these tests to not use the same name even though the type of the
value differs. After PR411: http://llvm.org/PR411  hits, type planes will be 
gone and it will be
illegal for a name to be used twice, regardless of type.


---
Diffs of the changes:  (+11 -10)

 2007-01-15-AsmDialect.ll |   13 +++++++------
 and_sext.ll              |    8 ++++----
 2 files changed, 11 insertions(+), 10 deletions(-)


Index: llvm/test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll
diff -u llvm/test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll:1.3 
llvm/test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll:1.4
--- llvm/test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll:1.3      Fri Jan 26 
02:25:06 2007
+++ llvm/test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll  Tue Jan 30 10:16:01 2007
@@ -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 @@
        %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
 }


Index: llvm/test/CodeGen/PowerPC/and_sext.ll
diff -u llvm/test/CodeGen/PowerPC/and_sext.ll:1.6 
llvm/test/CodeGen/PowerPC/and_sext.ll:1.7
--- llvm/test/CodeGen/PowerPC/and_sext.ll:1.6   Fri Jan 26 02:25:06 2007
+++ llvm/test/CodeGen/PowerPC/and_sext.ll       Tue Jan 30 10:16:01 2007
@@ -15,15 +15,15 @@
         %tmp1 = sext i16 %x to i32
         %tmp2 = add i32 %tmp, %tmp1
         %tmp4 = ashr i32 %tmp2, i8 1
-        %tmp4 = trunc i32 %tmp4 to i16
-        %tmp45 = sext i16 %tmp4 to i32
+        %tmp5 = trunc i32 %tmp4 to i16
+        %tmp45 = sext i16 %tmp5 to i32
         %retval = trunc i32 %tmp45 to i16
         ret i16 %retval
 }
 
 define i16 @test3(i32 zext %X) sext {
         %tmp1 = lshr i32 %X, i8 16
-        %tmp1 = trunc i32 %tmp1 to i16
-        ret i16 %tmp1
+        %tmp2 = trunc i32 %tmp1 to i16
+        ret i16 %tmp2
 }
 



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to