[llvm] 7277d2e - [InstCombine] adjust test for icmp fold; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 3 10:36:49 PDT 2021
Author: Sanjay Patel
Date: 2021-11-03T13:35:19-04:00
New Revision: 7277d2e1c86bf4d75321efc1195d88ade4bedfa1
URL: https://github.com/llvm/llvm-project/commit/7277d2e1c86bf4d75321efc1195d88ade4bedfa1
DIFF: https://github.com/llvm/llvm-project/commit/7277d2e1c86bf4d75321efc1195d88ade4bedfa1.diff
LOG: [InstCombine] adjust test for icmp fold; NFC
I missed that the bitwidth changed from the previous test in the sequence.
Added:
Modified:
llvm/test/Transforms/InstCombine/icmp-trunc.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/InstCombine/icmp-trunc.ll b/llvm/test/Transforms/InstCombine/icmp-trunc.ll
index 473b020c261a..da8ece3cc876 100644
--- a/llvm/test/Transforms/InstCombine/icmp-trunc.ll
+++ b/llvm/test/Transforms/InstCombine/icmp-trunc.ll
@@ -172,14 +172,14 @@ define i1 @ugt_253(i32 %x) {
ret i1 %r
}
-define <2 x i1> @ugt_239_splat(<2 x i16> %x) {
-; CHECK-LABEL: @ugt_239_splat(
+define <2 x i1> @ugt_2043_splat(<2 x i16> %x) {
+; CHECK-LABEL: @ugt_2043_splat(
; CHECK-NEXT: [[T:%.*]] = trunc <2 x i16> [[X:%.*]] to <2 x i11>
-; CHECK-NEXT: [[R:%.*]] = icmp ugt <2 x i11> [[T]], <i11 239, i11 239>
+; CHECK-NEXT: [[R:%.*]] = icmp ugt <2 x i11> [[T]], <i11 -5, i11 -5>
; CHECK-NEXT: ret <2 x i1> [[R]]
;
%t = trunc <2 x i16> %x to <2 x i11>
- %r = icmp ugt <2 x i11> %t, <i11 239, i11 239>
+ %r = icmp ugt <2 x i11> %t, <i11 2043, i11 2043> ; 0b111_1111_101
ret <2 x i1> %r
}
More information about the llvm-commits
mailing list