[llvm] 2b74db6 - [ConstraintElim] Add test for #68751 (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 11 06:52:57 PDT 2023
Author: Nikita Popov
Date: 2023-10-11T15:52:46+02:00
New Revision: 2b74db6c9bff757ce016d62a7086617e2b9e43b3
URL: https://github.com/llvm/llvm-project/commit/2b74db6c9bff757ce016d62a7086617e2b9e43b3
DIFF: https://github.com/llvm/llvm-project/commit/2b74db6c9bff757ce016d62a7086617e2b9e43b3.diff
LOG: [ConstraintElim] Add test for #68751 (NFC)
Added:
Modified:
llvm/test/Transforms/ConstraintElimination/large-constant-ints.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/ConstraintElimination/large-constant-ints.ll b/llvm/test/Transforms/ConstraintElimination/large-constant-ints.ll
index 8e6fa126a594060..6b616aa700330a9 100644
--- a/llvm/test/Transforms/ConstraintElimination/large-constant-ints.ll
+++ b/llvm/test/Transforms/ConstraintElimination/large-constant-ints.ll
@@ -418,4 +418,17 @@ entry:
ret i1 %res
}
+; FIXME: This is a miscompile.
+define i1 @pr68751(i128 %arg) {
+; CHECK-LABEL: @pr68751(
+; CHECK-NEXT: [[SHL1:%.*]] = shl nuw nsw i128 [[ARG:%.*]], 32
+; CHECK-NEXT: [[SHL2:%.*]] = shl nuw nsw i128 [[SHL1]], 32
+; CHECK-NEXT: ret i1 true
+;
+ %shl1 = shl nuw nsw i128 %arg, 32
+ %shl2 = shl nuw nsw i128 %shl1, 32
+ %cmp = icmp eq i128 %shl2, 0
+ ret i1 %cmp
+}
+
declare void @llvm.assume(i1)
More information about the llvm-commits
mailing list