[llvm-commits] [llvm] r92776 - in /llvm/trunk/test/Transforms/InstCombine: cast-and-cast.ll cast-propagate.ll load.ll
Chris Lattner
sabre at nondot.org
Tue Jan 5 13:33:00 PST 2010
Author: lattner
Date: Tue Jan 5 15:32:59 2010
New Revision: 92776
URL: http://llvm.org/viewvc/llvm-project?rev=92776&view=rev
Log:
clean up tests.
Removed:
llvm/trunk/test/Transforms/InstCombine/cast-and-cast.ll
llvm/trunk/test/Transforms/InstCombine/cast-propagate.ll
Modified:
llvm/trunk/test/Transforms/InstCombine/load.ll
Removed: llvm/trunk/test/Transforms/InstCombine/cast-and-cast.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/cast-and-cast.ll?rev=92775&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/cast-and-cast.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/cast-and-cast.ll (removed)
@@ -1,17 +0,0 @@
-; RUN: opt < %s -instcombine -S | \
-; RUN: not grep bitcast
-
-define i1 @test1(i32 %val) {
- %t1 = bitcast i32 %val to i32 ; <i32> [#uses=1]
- %t2 = and i32 %t1, 1 ; <i32> [#uses=1]
- %t3 = trunc i32 %t2 to i1 ; <i1> [#uses=1]
- ret i1 %t3
-}
-
-define i16 @test1.upgrd.1(i32 %val) {
- %t1 = bitcast i32 %val to i32 ; <i32> [#uses=1]
- %t2 = and i32 %t1, 1 ; <i32> [#uses=1]
- %t3 = trunc i32 %t2 to i16 ; <i16> [#uses=1]
- ret i16 %t3
-}
-
Removed: llvm/trunk/test/Transforms/InstCombine/cast-propagate.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/cast-propagate.ll?rev=92775&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/cast-propagate.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/cast-propagate.ll (removed)
@@ -1,11 +0,0 @@
-; RUN: opt < %s -instcombine -mem2reg -S | \
-; RUN: not grep load
-
-define i32 @test1(i32* %P) {
- %A = alloca i32 ; <i32*> [#uses=2]
- store i32 123, i32* %A
- ; Cast the result of the load not the source
- %Q = bitcast i32* %A to i32* ; <i32*> [#uses=1]
- %V = load i32* %Q ; <i32> [#uses=1]
- ret i32 %V
-}
Modified: llvm/trunk/test/Transforms/InstCombine/load.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/load.ll?rev=92776&r1=92775&r2=92776&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/load.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/load.ll Tue Jan 5 15:32:59 2010
@@ -76,3 +76,12 @@
%x = load double* %t1
ret double %x
}
+
+define i32 @test12(i32* %P) {
+ %A = alloca i32
+ store i32 123, i32* %A
+ ; Cast the result of the load not the source
+ %Q = bitcast i32* %A to i32*
+ %V = load i32* %Q
+ ret i32 %V
+}
More information about the llvm-commits
mailing list