Skip to content

Commit 2a11549

Browse files
committed
[InstCombine] Regenerate test checks (NFC)
1 parent 086ee99 commit 2a11549

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed
Lines changed: 13 additions & 8 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 UTC_ARGS: --version 2
12
; RUN: opt -S < %s -passes=instcombine | FileCheck %s
23

34
target datalayout = "e-p1:16:16-p2:32:32-p3:64:64"
@@ -11,30 +12,34 @@ target datalayout = "e-p1:16:16-p2:32:32-p3:64:64"
1112

1213
define i64 @f1() {
1314
; This cannot be constant folded because G1 is underaligned.
14-
; CHECK-LABEL: @f1(
15-
; CHECK: ret i64 and
15+
; CHECK-LABEL: define i64 @f1() {
16+
; CHECK-NEXT: ret i64 and (i64 ptrtoint (ptr @G1 to i64), i64 1)
17+
;
1618
ret i64 and (i64 ptrtoint (ptr @G1 to i64), i64 1)
1719
}
1820

1921
define i64 @f2() {
2022
; The preferred alignment for G2 allows this one to foled to zero.
21-
; CHECK-LABEL: @f2(
22-
; CHECK: ret i64 0
23+
; CHECK-LABEL: define i64 @f2() {
24+
; CHECK-NEXT: ret i64 0
25+
;
2326
ret i64 and (i64 ptrtoint (ptr @G2 to i64), i64 1)
2427
}
2528

2629
define i64 @g1() {
2730
; This cannot be constant folded because A1 aliases G3 which is underalaigned.
28-
; CHECK-LABEL: @g1(
29-
; CHECK: ret i64 and
31+
; CHECK-LABEL: define i64 @g1() {
32+
; CHECK-NEXT: ret i64 and (i64 ptrtoint (ptr @A1 to i64), i64 1)
33+
;
3034
ret i64 and (i64 ptrtoint (ptr @A1 to i64), i64 1)
3135
}
3236

3337
define i64 @g2() {
3438
; While A2 also aliases G3 which is underaligned, the math of A2 forces a
3539
; certain alignment allowing this to fold to zero.
36-
; CHECK-LABEL: @g2(
37-
; CHECK: ret i64 0
40+
; CHECK-LABEL: define i64 @g2() {
41+
; CHECK-NEXT: ret i64 0
42+
;
3843
ret i64 and (i64 ptrtoint (ptr @A2 to i64), i64 1)
3944
}
4045

0 commit comments

Comments
 (0)