llvm.org GIT mirror llvm / 0950193
[InstCombine] Fix copy/paste mistake in the test cases I added for PR42691. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366614 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper a month ago
1 changed file(s) with 6 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
315315
316316 define i1 @PR42691_6(i32 %x) {
317317 ; CHECK-LABEL: @PR42691_6(
318 ; CHECK-NEXT: [[TMP1:%.*]] = icmp sgt i32 %x, -2
319 ; CHECK-NEXT: ret i1 [[TMP1]]
320 ;
321 %c1 = icmp ult i32 %x, 2147483648
318 ; CHECK-NEXT: [[C1:%.*]] = icmp ult i32 %x, -2147483647
319 ; CHECK-NEXT: [[C2:%.*]] = icmp eq i32 %x, -1
320 ; CHECK-NEXT: [[C:%.*]] = or i1 [[C1]], [[C2]]
321 ; CHECK-NEXT: ret i1 [[C]]
322 ;
323 %c1 = icmp ult i32 %x, 2147483649
322324 %c2 = icmp eq i32 %x, 4294967295
323325 %c = or i1 %c1, %c2
324326 ret i1 %c