[llvm-commits] CVS: llvm/test/CodeGen/PowerPC/2007-01-04-ArgExtension.ll 2007-01-15-AsmDialect.ll and-elim.ll and_sext.ll small-arguments.ll unsafe-math.ll
Reid Spencer
reid at x10sys.com
Fri Jan 26 00:26:11 PST 2007
Changes in directory llvm/test/CodeGen/PowerPC:
2007-01-04-ArgExtension.ll updated: 1.2 -> 1.3
2007-01-15-AsmDialect.ll updated: 1.2 -> 1.3
and-elim.ll updated: 1.5 -> 1.6
and_sext.ll updated: 1.5 -> 1.6
small-arguments.ll updated: 1.8 -> 1.9
unsafe-math.ll updated: 1.1 -> 1.2
---
Log message:
For PR761: http://llvm.org/PR761 :
Remove "target endian/pointersize" or add "target datalayout" to make
the test parse properly or set the datalayout because defaults changes.
For PR645: http://llvm.org/PR645 :
Make global names use the @ prefix.
For llvm-upgrade changes:
Fix test cases or completely remove use of llvm-upgrade for test cases
that cannot survive the new renaming or upgrade capabilities.
---
Diffs of the changes: (+18 -18)
2007-01-04-ArgExtension.ll | 2 +-
2007-01-15-AsmDialect.ll | 2 +-
and-elim.ll | 4 ++--
and_sext.ll | 6 +++---
small-arguments.ll | 20 ++++++++++----------
unsafe-math.ll | 2 +-
6 files changed, 18 insertions(+), 18 deletions(-)
Index: llvm/test/CodeGen/PowerPC/2007-01-04-ArgExtension.ll
diff -u llvm/test/CodeGen/PowerPC/2007-01-04-ArgExtension.ll:1.2 llvm/test/CodeGen/PowerPC/2007-01-04-ArgExtension.ll:1.3
--- llvm/test/CodeGen/PowerPC/2007-01-04-ArgExtension.ll:1.2 Thu Jan 4 17:18:14 2007
+++ llvm/test/CodeGen/PowerPC/2007-01-04-ArgExtension.ll Fri Jan 26 02:25:06 2007
@@ -1,7 +1,7 @@
; RUN: llvm-as < %s | llc -march=ppc32 | grep extsb &&
; RUN: llvm-as < %s | llc -march=ppc32 | grep extsh
-define i32 %p1(i8 %c, i16 %s) {
+define i32 @p1(i8 %c, i16 %s) {
entry:
%tmp = sext i8 %c to i32 ; <i32> [#uses=1]
%tmp1 = sext i16 %s to i32 ; <i32> [#uses=1]
Index: llvm/test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll
diff -u llvm/test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll:1.2 llvm/test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll:1.3
--- llvm/test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll:1.2 Mon Jan 15 22:15:20 2007
+++ llvm/test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll Fri Jan 26 02:25:06 2007
@@ -1,6 +1,6 @@
; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep cntlzw
-define i32 %foo() {
+define i32 @foo() {
entry:
%retval = alloca i32, align 4 ; <i32*> [#uses=2]
%tmp = alloca i32, align 4 ; <i32*> [#uses=2]
Index: llvm/test/CodeGen/PowerPC/and-elim.ll
diff -u llvm/test/CodeGen/PowerPC/and-elim.ll:1.5 llvm/test/CodeGen/PowerPC/and-elim.ll:1.6
--- llvm/test/CodeGen/PowerPC/and-elim.ll:1.5 Fri Jan 5 12:31:56 2007
+++ llvm/test/CodeGen/PowerPC/and-elim.ll Fri Jan 26 02:25:06 2007
@@ -1,7 +1,7 @@
; RUN: llvm-as < %s | llc -march=ppc32 &&
; RUN: llvm-as < %s | llc -march=ppc32 | not grep rlwin
-define void %test(i8* %P) {
+define void @test(i8* %P) {
%W = load i8* %P
%X = shl i8 %W, i8 1
%Y = add i8 %X, 2
@@ -10,7 +10,7 @@
ret void
}
-define i16 %test2(i16 zext %crc) zext {
+define i16 @test2(i16 zext %crc) zext {
; No and's should be needed for the i16s here.
%tmp.1 = lshr i16 %crc, i8 1
%tmp.7 = xor i16 %tmp.1, 40961
Index: llvm/test/CodeGen/PowerPC/and_sext.ll
diff -u llvm/test/CodeGen/PowerPC/and_sext.ll:1.5 llvm/test/CodeGen/PowerPC/and_sext.ll:1.6
--- llvm/test/CodeGen/PowerPC/and_sext.ll:1.5 Fri Jan 5 12:38:33 2007
+++ llvm/test/CodeGen/PowerPC/and_sext.ll Fri Jan 26 02:25:06 2007
@@ -3,14 +3,14 @@
; RUN: llvm-as < %s | llc -march=ppc32 | not grep extsh &&
; RUN: llvm-as < %s | llc -march=ppc32 | not grep extsb
-define i32 %test1(i32 %mode.0.i.0) {
+define i32 @test1(i32 %mode.0.i.0) {
%tmp.79 = trunc i32 %mode.0.i.0 to i16
%tmp.80 = sext i16 %tmp.79 to i32
%tmp.81 = and i32 %tmp.80, 24
ret i32 %tmp.81
}
-define i16 %test2(i16 sext %X, i16 sext %x) sext {
+define i16 @test2(i16 sext %X, i16 sext %x) sext {
%tmp = sext i16 %X to i32
%tmp1 = sext i16 %x to i32
%tmp2 = add i32 %tmp, %tmp1
@@ -21,7 +21,7 @@
ret i16 %retval
}
-define i16 %test3(i32 zext %X) sext {
+define i16 @test3(i32 zext %X) sext {
%tmp1 = lshr i32 %X, i8 16
%tmp1 = trunc i32 %tmp1 to i16
ret i16 %tmp1
Index: llvm/test/CodeGen/PowerPC/small-arguments.ll
diff -u llvm/test/CodeGen/PowerPC/small-arguments.ll:1.8 llvm/test/CodeGen/PowerPC/small-arguments.ll:1.9
--- llvm/test/CodeGen/PowerPC/small-arguments.ll:1.8 Fri Jan 12 23:06:52 2007
+++ llvm/test/CodeGen/PowerPC/small-arguments.ll Fri Jan 26 02:25:06 2007
@@ -1,39 +1,39 @@
; RUN: llvm-as < %s | llc -march=ppc32 &&
; RUN: llvm-as < %s | llc -march=ppc32 | not grep 'extsh\|rlwinm'
-declare i16 %foo() sext
+declare i16 @foo() sext
-define i32 %test1(i16 sext %X) {
+define i32 @test1(i16 sext %X) {
%Y = sext i16 %X to i32 ;; dead
ret i32 %Y
}
-define i32 %test2(i16 zext %X) {
+define i32 @test2(i16 zext %X) {
%Y = sext i16 %X to i32
%Z = and i32 %Y, 65535 ;; dead
ret i32 %Z
}
-define void %test3() {
- %tmp.0 = call i16 %foo() sext ;; no extsh!
+define void @test3() {
+ %tmp.0 = call i16 @foo() sext ;; no extsh!
%tmp.1 = icmp slt i16 %tmp.0, 1234
br i1 %tmp.1, label %then, label %UnifiedReturnBlock
then:
- call i32 %test1(i16 0 sext)
+ call i32 @test1(i16 0 sext)
ret void
UnifiedReturnBlock:
ret void
}
-define i32 %test4(i16* %P) {
+define i32 @test4(i16* %P) {
%tmp.1 = load i16* %P
%tmp.2 = zext i16 %tmp.1 to i32
%tmp.3 = and i32 %tmp.2, 255
ret i32 %tmp.3
}
-define i32 %test5(i16* %P) {
+define i32 @test5(i16* %P) {
%tmp.1 = load i16* %P
%tmp.2 = bitcast i16 %tmp.1 to i16
%tmp.3 = zext i16 %tmp.2 to i32
@@ -41,13 +41,13 @@
ret i32 %tmp.4
}
-define i32 %test6(i32* %P) {
+define i32 @test6(i32* %P) {
%tmp.1 = load i32* %P
%tmp.2 = and i32 %tmp.1, 255
ret i32 %tmp.2
}
-define i16 %test7(float %a) zext {
+define i16 @test7(float %a) zext {
%tmp.1 = fptoui float %a to i16
ret i16 %tmp.1
}
Index: llvm/test/CodeGen/PowerPC/unsafe-math.ll
diff -u llvm/test/CodeGen/PowerPC/unsafe-math.ll:1.1 llvm/test/CodeGen/PowerPC/unsafe-math.ll:1.2
--- llvm/test/CodeGen/PowerPC/unsafe-math.ll:1.1 Mon Jan 8 17:03:19 2007
+++ llvm/test/CodeGen/PowerPC/unsafe-math.ll Fri Jan 26 02:25:06 2007
@@ -1,7 +1,7 @@
; RUN: llvm-as < %s | llc -march=ppc32 | grep fmul | wc -l | grep 2 &&
; RUN: llvm-as < %s | llc -march=ppc32 -enable-unsafe-fp-math | grep fmul | wc -l | grep 1
-define double %foo(double %X) {
+define double @foo(double %X) {
%tmp1 = mul double %X, 1.23
%tmp2 = mul double %tmp1, 4.124
ret double %tmp2
More information about the llvm-commits
mailing list