mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 23:48:56 +00:00
Add tests for existing InstSimplify features.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143721 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
71d0503157
commit
abe776a794
@ -84,6 +84,13 @@ define i64 @test11() {
|
||||
ret i64 %r
|
||||
}
|
||||
|
||||
; @test11b
|
||||
; CHECK: ret i64 undef
|
||||
define i64 @test11b(i64 %a) {
|
||||
%r = shl i64 %a, undef
|
||||
ret i64 %r
|
||||
}
|
||||
|
||||
; @test12
|
||||
; CHECK: ret i64 undef
|
||||
define i64 @test12() {
|
||||
@ -91,6 +98,13 @@ define i64 @test12() {
|
||||
ret i64 %r
|
||||
}
|
||||
|
||||
; @test12b
|
||||
; CHECK: ret i64 undef
|
||||
define i64 @test12b(i64 %a) {
|
||||
%r = ashr i64 %a, undef
|
||||
ret i64 %r
|
||||
}
|
||||
|
||||
; @test13
|
||||
; CHECK: ret i64 undef
|
||||
define i64 @test13() {
|
||||
@ -98,6 +112,13 @@ define i64 @test13() {
|
||||
ret i64 %r
|
||||
}
|
||||
|
||||
; @test13b
|
||||
; CHECK: ret i64 undef
|
||||
define i64 @test13b(i64 %a) {
|
||||
%r = lshr i64 %a, undef
|
||||
ret i64 %r
|
||||
}
|
||||
|
||||
; @test14
|
||||
; CHECK: ret i1 undef
|
||||
define i1 @test14() {
|
||||
|
Loading…
Reference in New Issue
Block a user