[PATCH] D112384: [LegalizeTypes][VE] Fix a regression test following previous cttz fix
Erich Focht via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 26 12:51:28 PDT 2021
efocht added inline comments.
================
Comment at: llvm/test/CodeGen/VE/Scalar/cttz.ll:67
; 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
----------------
craig.topper wrote:
> For my own education, what does `(48)0` mean here?
That's a 64 bit immediate value with 48 zeros (from left) and (64-48) ones.
The NEC VE has two slightly odd types of immediate values: (m)0 and (m)1. The later consists of m ones (from left and (64-m) zeros.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112384/new/
https://reviews.llvm.org/D112384
More information about the llvm-commits
mailing list