[PATCH] D112384: [LegalizeTypes][VE] Fix a regression test following previous cttz fix
Kazushi Marukawa via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 24 11:06:52 PDT 2021
kaz7 created this revision.
kaz7 added reviewers: simoll, k-ishizaka.
kaz7 added projects: LLVM, VE.
kaz7 requested review of this revision.
Herald added a subscriber: llvm-commits.
An "Expand CTLZ/CTTZ/CTPOP instead of promoting if they'll be expanded
later" patch, 0766aef <https://reviews.llvm.org/rG0766aef3f32d5d642d6436140b36689b1f2b5adf>, also fixes a problem in the VE code generation.
Thank you! This patch updates .ll regression test.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D112384
Files:
llvm/test/CodeGen/VE/Scalar/cttz.ll
Index: llvm/test/CodeGen/VE/Scalar/cttz.ll
===================================================================
--- llvm/test/CodeGen/VE/Scalar/cttz.ll
+++ llvm/test/CodeGen/VE/Scalar/cttz.ll
@@ -64,7 +64,7 @@
; CHECK: # %bb.0:
; CHECK-NEXT: adds.w.sx %s1, -1, %s0
; CHECK-NEXT: nnd %s0, %s0, %s1
-; CHECK-NEXT: and %s0, %s0, (32)0
+; CHECK-NEXT: and %s0, %s0, (48)0
; CHECK-NEXT: pcnt %s0, %s0
; CHECK-NEXT: b.l.t (, %s10)
%r = tail call i16 @llvm.cttz.i16(i16 %p, i1 true)
@@ -76,7 +76,7 @@
; CHECK: # %bb.0:
; CHECK-NEXT: adds.w.sx %s1, -1, %s0
; CHECK-NEXT: nnd %s0, %s0, %s1
-; CHECK-NEXT: and %s0, %s0, (32)0
+; CHECK-NEXT: and %s0, %s0, (48)0
; CHECK-NEXT: pcnt %s0, %s0
; CHECK-NEXT: b.l.t (, %s10)
%r = tail call i16 @llvm.cttz.i16(i16 %p, i1 true)
@@ -88,7 +88,7 @@
; CHECK: # %bb.0:
; CHECK-NEXT: adds.w.sx %s1, -1, %s0
; CHECK-NEXT: nnd %s0, %s0, %s1
-; CHECK-NEXT: and %s0, %s0, (32)0
+; CHECK-NEXT: and %s0, %s0, (56)0
; CHECK-NEXT: pcnt %s0, %s0
; CHECK-NEXT: b.l.t (, %s10)
%r = tail call i8 @llvm.cttz.i8(i8 %p, i1 true)
@@ -100,7 +100,7 @@
; CHECK: # %bb.0:
; CHECK-NEXT: adds.w.sx %s1, -1, %s0
; CHECK-NEXT: nnd %s0, %s0, %s1
-; CHECK-NEXT: and %s0, %s0, (32)0
+; CHECK-NEXT: and %s0, %s0, (56)0
; CHECK-NEXT: pcnt %s0, %s0
; CHECK-NEXT: b.l.t (, %s10)
%r = tail call i8 @llvm.cttz.i8(i8 %p, i1 true)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112384.381790.patch
Type: text/x-patch
Size: 1447 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211024/1af10420/attachment.bin>
More information about the llvm-commits
mailing list