mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-31 15:53:42 +00:00
[NFC][InstCombine] Fixup newly-added tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372413 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
77b7c73534
commit
59aed9fb2a
@ -171,7 +171,7 @@ define i1 @t7_commutativity1(i8 %base, i8 %offset) {
|
||||
; CHECK-NEXT: [[ADJUSTED:%.*]] = add i8 [[BASE]], [[OFFSET:%.*]]
|
||||
; CHECK-NEXT: call void @use8(i8 [[ADJUSTED]])
|
||||
; CHECK-NEXT: [[NOT_NULL:%.*]] = icmp ne i8 [[ADJUSTED]], 0
|
||||
; CHECK-NEXT: [[NO_UNDERFLOW:%.*]] = icmp ule i8 [[ADJUSTED]], [[BASE]]
|
||||
; CHECK-NEXT: [[NO_UNDERFLOW:%.*]] = icmp ult i8 [[ADJUSTED]], [[BASE]]
|
||||
; CHECK-NEXT: [[R:%.*]] = and i1 [[NOT_NULL]], [[NO_UNDERFLOW]]
|
||||
; CHECK-NEXT: ret i1 [[R]]
|
||||
;
|
||||
@ -181,7 +181,7 @@ define i1 @t7_commutativity1(i8 %base, i8 %offset) {
|
||||
%adjusted = add i8 %base, %offset
|
||||
call void @use8(i8 %adjusted)
|
||||
%not_null = icmp ne i8 %adjusted, 0
|
||||
%no_underflow = icmp uge i8 %base, %adjusted ; swapped
|
||||
%no_underflow = icmp ugt i8 %base, %adjusted ; swapped
|
||||
%r = and i1 %not_null, %no_underflow
|
||||
ret i1 %r
|
||||
}
|
||||
@ -192,7 +192,7 @@ define i1 @t7_commutativity3(i8 %base, i8 %offset) {
|
||||
; CHECK-NEXT: [[ADJUSTED:%.*]] = add i8 [[BASE]], [[OFFSET:%.*]]
|
||||
; CHECK-NEXT: call void @use8(i8 [[ADJUSTED]])
|
||||
; CHECK-NEXT: [[NOT_NULL:%.*]] = icmp ne i8 [[ADJUSTED]], 0
|
||||
; CHECK-NEXT: [[NO_UNDERFLOW:%.*]] = icmp ule i8 [[ADJUSTED]], [[BASE]]
|
||||
; CHECK-NEXT: [[NO_UNDERFLOW:%.*]] = icmp ult i8 [[ADJUSTED]], [[BASE]]
|
||||
; CHECK-NEXT: [[R:%.*]] = and i1 [[NO_UNDERFLOW]], [[NOT_NULL]]
|
||||
; CHECK-NEXT: ret i1 [[R]]
|
||||
;
|
||||
@ -202,7 +202,7 @@ define i1 @t7_commutativity3(i8 %base, i8 %offset) {
|
||||
%adjusted = add i8 %base, %offset
|
||||
call void @use8(i8 %adjusted)
|
||||
%not_null = icmp ne i8 %adjusted, 0
|
||||
%no_underflow = icmp uge i8 %base, %adjusted ; swapped
|
||||
%no_underflow = icmp ugt i8 %base, %adjusted ; swapped
|
||||
%r = and i1 %no_underflow, %not_null ; swapped
|
||||
ret i1 %r
|
||||
}
|
||||
|
@ -102,14 +102,14 @@ define i1 @t5_commutativity1(i8 %base, i8 %offset) {
|
||||
; CHECK-NEXT: [[ADJUSTED:%.*]] = add i8 [[BASE:%.*]], [[OFFSET:%.*]]
|
||||
; CHECK-NEXT: call void @use8(i8 [[ADJUSTED]])
|
||||
; CHECK-NEXT: [[NOT_NULL:%.*]] = icmp ne i8 [[ADJUSTED]], 0
|
||||
; CHECK-NEXT: [[NO_UNDERFLOW:%.*]] = icmp ult i8 [[ADJUSTED]], [[BASE]]
|
||||
; CHECK-NEXT: [[NO_UNDERFLOW:%.*]] = icmp ule i8 [[ADJUSTED]], [[BASE]]
|
||||
; CHECK-NEXT: [[R:%.*]] = and i1 [[NOT_NULL]], [[NO_UNDERFLOW]]
|
||||
; CHECK-NEXT: ret i1 [[R]]
|
||||
;
|
||||
%adjusted = add i8 %base, %offset
|
||||
call void @use8(i8 %adjusted)
|
||||
%not_null = icmp ne i8 %adjusted, 0
|
||||
%no_underflow = icmp ugt i8 %base, %adjusted ; swapped
|
||||
%no_underflow = icmp uge i8 %base, %adjusted ; swapped
|
||||
%r = and i1 %not_null, %no_underflow
|
||||
ret i1 %r
|
||||
}
|
||||
@ -118,14 +118,14 @@ define i1 @t6_commutativity3(i8 %base, i8 %offset) {
|
||||
; CHECK-NEXT: [[ADJUSTED:%.*]] = add i8 [[BASE:%.*]], [[OFFSET:%.*]]
|
||||
; CHECK-NEXT: call void @use8(i8 [[ADJUSTED]])
|
||||
; CHECK-NEXT: [[NOT_NULL:%.*]] = icmp ne i8 [[ADJUSTED]], 0
|
||||
; CHECK-NEXT: [[NO_UNDERFLOW:%.*]] = icmp ult i8 [[ADJUSTED]], [[BASE]]
|
||||
; CHECK-NEXT: [[NO_UNDERFLOW:%.*]] = icmp ule i8 [[ADJUSTED]], [[BASE]]
|
||||
; CHECK-NEXT: [[R:%.*]] = and i1 [[NO_UNDERFLOW]], [[NOT_NULL]]
|
||||
; CHECK-NEXT: ret i1 [[R]]
|
||||
;
|
||||
%adjusted = add i8 %base, %offset
|
||||
call void @use8(i8 %adjusted)
|
||||
%not_null = icmp ne i8 %adjusted, 0
|
||||
%no_underflow = icmp ugt i8 %base, %adjusted ; swapped
|
||||
%no_underflow = icmp uge i8 %base, %adjusted ; swapped
|
||||
%r = and i1 %no_underflow, %not_null ; swapped
|
||||
ret i1 %r
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user