[PATCH] D23163: [AVX512][FastISel] Do not use K registers in TEST instructions
Elena Demikhovsky via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 4 12:37:37 PDT 2016
delena added inline comments.
================
Comment at: lib/Target/X86/X86FastISel.cpp:1694
@@ +1693,3 @@
+ // TEST instruction.
+ if (MRI.getRegClass(OpReg) == &X86::VK1RegClass) {
+ unsigned tmp = OpReg;
----------------
It may give incorrect result. If the OpReg is k-reg you can use k-shitft-left 15 with ktestw.
https://reviews.llvm.org/D23163
More information about the llvm-commits
mailing list