Skip to content

Commit 11b4191

Browse files
[NFCI] Regenerate instsimplify test checks
1 parent 896770c commit 11b4191

30 files changed

+1053
-920
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
12
; RUN: opt < %s -passes=instsimplify -S | FileCheck %s
23

34
define i32 @shift_select(i1 %cond) {
45
; CHECK-LABEL: @shift_select(
6+
; CHECK-NEXT: ret i32 0
7+
;
58
%s = select i1 %cond, i32 0, i32 1
69
%r = lshr i32 %s, 1
710
ret i32 %r
8-
; CHECK: ret i32 0
911
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
12
; RUN: opt < %s -passes=instsimplify -S | FileCheck %s
23

34
define <2 x i32> @sdiv(<2 x i32> %x) {
45
; CHECK-LABEL: @sdiv(
6+
; CHECK-NEXT: ret <2 x i32> [[X:%.*]]
7+
;
58
%div = sdiv <2 x i32> %x, <i32 1, i32 1>
69
ret <2 x i32> %div
7-
; CHECK: ret <2 x i32> %x
810
}

llvm/test/Transforms/InstSimplify/2011-10-27-BinOpCrash.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
12
; RUN: opt < %s -instcombine
23

34
@_ZN11xercesc_2_5L11gDigitCharsE = external constant [32 x i16], align 2

llvm/test/Transforms/InstSimplify/2011-11-23-MaskedBitsCrash.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
12
; RUN: opt < %s -passes=instsimplify
23

34
; The mul can be proved to always overflow (turning a negative value

llvm/test/Transforms/InstSimplify/2013-04-19-ConstantFoldingCrash.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
12
; RUN: opt < %s -passes=instsimplify
23

34
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"

llvm/test/Transforms/InstSimplify/add-mask.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ declare void @llvm.assume(i1)
7070
; Known bits without a constant
7171
define i1 @test4(i32 %a) {
7272
; CHECK-LABEL: @test4(
73-
; CHECK-NEXT: [[B:%.*]] = load i32, i32* @B
73+
; CHECK-NEXT: [[B:%.*]] = load i32, i32* @B, align 4
7474
; CHECK-NEXT: [[B_AND:%.*]] = and i32 [[B]], 1
7575
; CHECK-NEXT: [[B_CND:%.*]] = icmp eq i32 [[B_AND]], 1
7676
; CHECK-NEXT: call void @llvm.assume(i1 [[B_CND]])

0 commit comments

Comments
 (0)