[llvm] 264bcbe - [InstCombine] Add #38139 test coverage
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 11 04:36:07 PDT 2024
Author: Simon Pilgrim
Date: 2024-06-11T12:35:49+01:00
New Revision: 264bcbe1c8b3e885d896f0181d1ed54a7a4467bd
URL: https://github.com/llvm/llvm-project/commit/264bcbe1c8b3e885d896f0181d1ed54a7a4467bd
DIFF: https://github.com/llvm/llvm-project/commit/264bcbe1c8b3e885d896f0181d1ed54a7a4467bd.diff
LOG: [InstCombine] Add #38139 test coverage
Added:
Modified:
llvm/test/Transforms/InstCombine/icmp-of-or-x.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/InstCombine/icmp-of-or-x.ll b/llvm/test/Transforms/InstCombine/icmp-of-or-x.ll
index 304874645d5dc..7ff111c42a9e0 100644
--- a/llvm/test/Transforms/InstCombine/icmp-of-or-x.ll
+++ b/llvm/test/Transforms/InstCombine/icmp-of-or-x.ll
@@ -399,3 +399,13 @@ define i1 @icmp_eq_x_invertable_y2(i8 %x, i8 %y) {
%r = icmp eq i8 %yy, %or
ret i1 %r
}
+
+define i1 @PR38139(i8 %arg) {
+; CHECK-LABEL: @PR38139(
+; CHECK-NEXT: [[R:%.*]] = icmp ult i8 [[ARG:%.*]], -64
+; CHECK-NEXT: ret i1 [[R]]
+;
+ %masked = or i8 %arg, 192
+ %r = icmp ne i8 %masked, %arg
+ ret i1 %r
+}
More information about the llvm-commits
mailing list