[llvm-commits] CVS: llvm/test/Transforms/InstCombine/apint-div1.ll apint-div2.ll

Reid Spencer reid at x10sys.com
Sat Apr 14 11:30:27 PDT 2007



Changes in directory llvm/test/Transforms/InstCombine:

apint-div1.ll updated: 1.3 -> 1.4
apint-div2.ll updated: 1.2 -> 1.3
---
Log message:

bool -> i1 (found by llvm.exp)


---
Diffs of the changes:  (+3 -4)

 apint-div1.ll |    2 +-
 apint-div2.ll |    5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)


Index: llvm/test/Transforms/InstCombine/apint-div1.ll
diff -u llvm/test/Transforms/InstCombine/apint-div1.ll:1.3 llvm/test/Transforms/InstCombine/apint-div1.ll:1.4
--- llvm/test/Transforms/InstCombine/apint-div1.ll:1.3	Sat Apr 14 13:28:16 2007
+++ llvm/test/Transforms/InstCombine/apint-div1.ll	Sat Apr 14 13:30:06 2007
@@ -15,7 +15,7 @@
     ret i49 %Y
 }
 
-define i59 @test3(i59 %X, bool %C) {
+define i59 @test3(i59 %X, i1 %C) {
         %V = select i1 %C, i59 1024, i59 4096
         %R = udiv i59 %X, %V
         ret i59 %R


Index: llvm/test/Transforms/InstCombine/apint-div2.ll
diff -u llvm/test/Transforms/InstCombine/apint-div2.ll:1.2 llvm/test/Transforms/InstCombine/apint-div2.ll:1.3
--- llvm/test/Transforms/InstCombine/apint-div2.ll:1.2	Tue Mar 27 21:38:26 2007
+++ llvm/test/Transforms/InstCombine/apint-div2.ll	Sat Apr 14 13:30:06 2007
@@ -1,7 +1,6 @@
 ; This test makes sure that div instructions are properly eliminated.
 ; This test is for Integer BitWidth >= 64 && BitWidth <= 1024.
 ;
-
 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep div
 
 
@@ -16,8 +15,8 @@
     ret i499 %Y
 }
 
-define i599 @test3(i599 %X, bool %C) {
-        %V = select bool %C, i599 70368744177664, i599 4096
+define i599 @test3(i599 %X, i1 %C) {
+        %V = select i1 %C, i599 70368744177664, i599 4096
         %R = udiv i599 %X, %V
         ret i599 %R
 }






More information about the llvm-commits mailing list