mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-27 14:07:32 +00:00
clean up tests.
llvm-svn: 92776
This commit is contained in:
parent
13293b9738
commit
3e7dbaf22d
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
@ -76,3 +76,12 @@ define double @test11(double* %p) {
|
||||
%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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user