[llvm-commits] CVS: llvm/test/Regression/Transforms/SCCP/2004-12-10-UndefBranchBug.ll 2006-12-04-PackedType.ll ipsccp-basic.ll ipsccp-conditional.ll logical-nuke.ll
Reid Spencer
reid at x10sys.com
Sat Dec 30 22:03:27 PST 2006
Changes in directory llvm/test/Regression/Transforms/SCCP:
2004-12-10-UndefBranchBug.ll updated: 1.2 -> 1.3
2006-12-04-PackedType.ll updated: 1.1 -> 1.2
ipsccp-basic.ll updated: 1.3 -> 1.4
ipsccp-conditional.ll updated: 1.3 -> 1.4
logical-nuke.ll updated: 1.2 -> 1.3
---
Log message:
For PR950: http://llvm.org/PR950 :
Update the test suite to accommodate the change from signed integer types
to signless integer types. The changes were of only a few kinds:
1. Make sure llvm-upgrade is run on the source which does the bulk of the
changes automatically.
2. Change things like "grep 'int'" to "grep 'i32'"
3. In several tests bitcasting caused the same name to be reused in the
same type plane. These had to be manually fixed. The fix was (generally)
to leave the bitcast and provide the instruction with a new name. This
should not affect the semantics of the test. In a few cases, the
bitcasts were known to be superfluous and irrelevant to the test case
so they were removed.
4. One test case uses a bytecode file which needed to be updated to the
latest bytecode format.
---
Diffs of the changes: (+6 -6)
2004-12-10-UndefBranchBug.ll | 2 +-
2006-12-04-PackedType.ll | 4 ++--
ipsccp-basic.ll | 2 +-
ipsccp-conditional.ll | 2 +-
logical-nuke.ll | 2 +-
5 files changed, 6 insertions(+), 6 deletions(-)
Index: llvm/test/Regression/Transforms/SCCP/2004-12-10-UndefBranchBug.ll
diff -u llvm/test/Regression/Transforms/SCCP/2004-12-10-UndefBranchBug.ll:1.2 llvm/test/Regression/Transforms/SCCP/2004-12-10-UndefBranchBug.ll:1.3
--- llvm/test/Regression/Transforms/SCCP/2004-12-10-UndefBranchBug.ll:1.2 Fri Dec 1 22:23:10 2006
+++ llvm/test/Regression/Transforms/SCCP/2004-12-10-UndefBranchBug.ll Sun Dec 31 00:02:00 2006
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -sccp | llvm-dis | grep 'ret int 1'
+; RUN: llvm-upgrade < %s | llvm-as | opt -sccp | llvm-dis | grep 'ret i32 1'
; This function definitely returns 1, even if we don't know the direction
; of the branch.
Index: llvm/test/Regression/Transforms/SCCP/2006-12-04-PackedType.ll
diff -u llvm/test/Regression/Transforms/SCCP/2006-12-04-PackedType.ll:1.1 llvm/test/Regression/Transforms/SCCP/2006-12-04-PackedType.ll:1.2
--- llvm/test/Regression/Transforms/SCCP/2006-12-04-PackedType.ll:1.1 Mon Dec 4 17:54:59 2006
+++ llvm/test/Regression/Transforms/SCCP/2006-12-04-PackedType.ll Sun Dec 31 00:02:00 2006
@@ -105,8 +105,8 @@
void %gldLLVMVecPointRender(%struct.GLDContextRec* %ctx) {
entry:
- %tmp = getelementptr %struct.GLDContextRec* %ctx, int 0, uint 22 ; <uint*> [#uses=1]
- %tmp = load uint* %tmp ; <uint> [#uses=3]
+ %tmp.uip = getelementptr %struct.GLDContextRec* %ctx, int 0, uint 22 ; <uint*> [#uses=1]
+ %tmp = load uint* %tmp.uip ; <uint> [#uses=3]
%tmp91 = lshr uint %tmp, ubyte 5 ; <uint> [#uses=1]
%tmp92 = trunc uint %tmp91 to bool ; <bool> [#uses=1]
br bool %tmp92, label %cond_true93, label %cond_next116
Index: llvm/test/Regression/Transforms/SCCP/ipsccp-basic.ll
diff -u llvm/test/Regression/Transforms/SCCP/ipsccp-basic.ll:1.3 llvm/test/Regression/Transforms/SCCP/ipsccp-basic.ll:1.4
--- llvm/test/Regression/Transforms/SCCP/ipsccp-basic.ll:1.3 Fri Dec 1 22:23:10 2006
+++ llvm/test/Regression/Transforms/SCCP/ipsccp-basic.ll Sun Dec 31 00:02:00 2006
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -ipsccp | llvm-dis | grep -v 'ret int 17' | grep -v 'ret int undef' | not grep ret
+; RUN: llvm-upgrade < %s | llvm-as | opt -ipsccp | llvm-dis | grep -v 'ret i32 17' | grep -v 'ret i32 undef' | not grep ret
implementation
Index: llvm/test/Regression/Transforms/SCCP/ipsccp-conditional.ll
diff -u llvm/test/Regression/Transforms/SCCP/ipsccp-conditional.ll:1.3 llvm/test/Regression/Transforms/SCCP/ipsccp-conditional.ll:1.4
--- llvm/test/Regression/Transforms/SCCP/ipsccp-conditional.ll:1.3 Fri Dec 1 22:23:10 2006
+++ llvm/test/Regression/Transforms/SCCP/ipsccp-conditional.ll Sun Dec 31 00:02:00 2006
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -ipsccp | llvm-dis | grep -v 'ret int 0' | grep -v 'ret int undef' | not grep ret
+; RUN: llvm-upgrade < %s | llvm-as | opt -ipsccp | llvm-dis | grep -v 'ret i32 0' | grep -v 'ret i32 undef' | not grep ret
implementation
Index: llvm/test/Regression/Transforms/SCCP/logical-nuke.ll
diff -u llvm/test/Regression/Transforms/SCCP/logical-nuke.ll:1.2 llvm/test/Regression/Transforms/SCCP/logical-nuke.ll:1.3
--- llvm/test/Regression/Transforms/SCCP/logical-nuke.ll:1.2 Fri Dec 1 22:23:10 2006
+++ llvm/test/Regression/Transforms/SCCP/logical-nuke.ll Sun Dec 31 00:02:00 2006
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -sccp | llvm-dis | grep 'ret int 0'
+; RUN: llvm-upgrade < %s | llvm-as | opt -sccp | llvm-dis | grep 'ret i32 0'
; Test that SCCP has basic knowledge of when and/or nuke overdefined values.
More information about the llvm-commits
mailing list