bool -> i1 (found by llvm.exp)
authorReid Spencer <rspencer@reidspencer.com>
Sat, 14 Apr 2007 18:30:06 +0000 (18:30 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 14 Apr 2007 18:30:06 +0000 (18:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36005 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/apint-div1.ll
test/Transforms/InstCombine/apint-div2.ll

index acac95c0eb8472798adffdcdca42265451558a10..e9aa579b958356cc63b455b4e308c46581e04e5c 100644 (file)
@@ -15,7 +15,7 @@ define i49 @test2(i49 %X) {
     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 ba849e22f8666fc20ac50f8d4d73482e983ddb91..2aa2c3a4ac2c3c7b2d97b6f07213b8eb21b93586 100644 (file)
@@ -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 @@ define i499 @test2(i499 %X) {
     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
 }