[llvm] 2a11549 - [InstCombine] Regenerate test checks (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 21 01:12:50 PDT 2023
Author: Nikita Popov
Date: 2023-07-21T10:11:35+02:00
New Revision: 2a11549dc54b578ee5dc5362939785ac01c45d12
URL: https://github.com/llvm/llvm-project/commit/2a11549dc54b578ee5dc5362939785ac01c45d12
DIFF: https://github.com/llvm/llvm-project/commit/2a11549dc54b578ee5dc5362939785ac01c45d12.diff
LOG: [InstCombine] Regenerate test checks (NFC)
Added:
Modified:
llvm/test/Transforms/InstCombine/constant-fold-alias.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/InstCombine/constant-fold-alias.ll b/llvm/test/Transforms/InstCombine/constant-fold-alias.ll
index 0cb1d2eb54c056..4aee78e71ef666 100644
--- a/llvm/test/Transforms/InstCombine/constant-fold-alias.ll
+++ b/llvm/test/Transforms/InstCombine/constant-fold-alias.ll
@@ -1,3 +1,4 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 2
; RUN: opt -S < %s -passes=instcombine | FileCheck %s
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"
define i64 @f1() {
; This cannot be constant folded because G1 is underaligned.
-; CHECK-LABEL: @f1(
-; CHECK: ret i64 and
+; CHECK-LABEL: define i64 @f1() {
+; CHECK-NEXT: ret i64 and (i64 ptrtoint (ptr @G1 to i64), i64 1)
+;
ret i64 and (i64 ptrtoint (ptr @G1 to i64), i64 1)
}
define i64 @f2() {
; The preferred alignment for G2 allows this one to foled to zero.
-; CHECK-LABEL: @f2(
-; CHECK: ret i64 0
+; CHECK-LABEL: define i64 @f2() {
+; CHECK-NEXT: ret i64 0
+;
ret i64 and (i64 ptrtoint (ptr @G2 to i64), i64 1)
}
define i64 @g1() {
; This cannot be constant folded because A1 aliases G3 which is underalaigned.
-; CHECK-LABEL: @g1(
-; CHECK: ret i64 and
+; CHECK-LABEL: define i64 @g1() {
+; CHECK-NEXT: ret i64 and (i64 ptrtoint (ptr @A1 to i64), i64 1)
+;
ret i64 and (i64 ptrtoint (ptr @A1 to i64), i64 1)
}
define i64 @g2() {
; While A2 also aliases G3 which is underaligned, the math of A2 forces a
; certain alignment allowing this to fold to zero.
-; CHECK-LABEL: @g2(
-; CHECK: ret i64 0
+; CHECK-LABEL: define i64 @g2() {
+; CHECK-NEXT: ret i64 0
+;
ret i64 and (i64 ptrtoint (ptr @A2 to i64), i64 1)
}
More information about the llvm-commits
mailing list