mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-30 23:20:54 +00:00
auto-generate checks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278137 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1019cf0a26
commit
cfc3af0b7e
@ -1,12 +1,13 @@
|
||||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt < %s -instcombine -S | FileCheck %s
|
||||
|
||||
define i1 @test0(i39 %X, i39 %A) {
|
||||
; CHECK-LABEL: @test0(
|
||||
; CHECK: %[[V1:.*]] = shl i39 1, %A
|
||||
; CHECK: %[[V2:.*]] = and i39 %[[V1]], %X
|
||||
; CHECK: %[[V3:.*]] = icmp ne i39 %[[V2]], 0
|
||||
; CHECK: ret i1 %[[V3]]
|
||||
|
||||
; CHECK-NEXT: [[TMP1:%.*]] = shl i39 1, %A
|
||||
; CHECK-NEXT: [[TMP2:%.*]] = and i39 [[TMP1]], %X
|
||||
; CHECK-NEXT: [[D:%.*]] = icmp ne i39 [[TMP2]], 0
|
||||
; CHECK-NEXT: ret i1 [[D]]
|
||||
;
|
||||
%B = lshr i39 %X, %A
|
||||
%D = trunc i39 %B to i1
|
||||
ret i1 %D
|
||||
@ -14,12 +15,13 @@ define i1 @test0(i39 %X, i39 %A) {
|
||||
|
||||
define i1 @test1(i799 %X, i799 %A) {
|
||||
; CHECK-LABEL: @test1(
|
||||
; CHECK: %[[V1:.*]] = shl i799 1, %A
|
||||
; CHECK: %[[V2:.*]] = and i799 %[[V1]], %X
|
||||
; CHECK: %[[V3:.*]] = icmp ne i799 %[[V2]], 0
|
||||
; CHECK: ret i1 %[[V3]]
|
||||
|
||||
; CHECK-NEXT: [[TMP1:%.*]] = shl i799 1, %A
|
||||
; CHECK-NEXT: [[TMP2:%.*]] = and i799 [[TMP1]], %X
|
||||
; CHECK-NEXT: [[D:%.*]] = icmp ne i799 [[TMP2]], 0
|
||||
; CHECK-NEXT: ret i1 [[D]]
|
||||
;
|
||||
%B = lshr i799 %X, %A
|
||||
%D = trunc i799 %B to i1
|
||||
ret i1 %D
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user