[PATCH] D70881: [X86] Model MXCSR for all AVX512 instructions

Pengfei Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 2 21:35:57 PST 2019


pengfei marked an inline comment as done.
pengfei added inline comments.


================
Comment at: llvm/lib/Target/X86/X86InstrAVX512.td:7121
                                   XS, VEX_W, EVEX_CD8<64, CD8VT1>;
 defm VCVTUSI2SDZ   : avx512_vcvtsi<0x7B, null_frag, WriteCvtI2SD, GR32, v2f64x_info,
                                   i32mem, loadi32, "cvtusi2sd", "l">,
----------------
craig.topper wrote:
> Don't we need to suppress MXCSR and exceptions here
Yes, I missed it. Thanks!


================
Comment at: llvm/lib/Target/X86/X86InstrInfo.cpp:1764
   case X86::VCMPPSZ256rrik: {
-    unsigned Imm = MI.getOperand(MI.getNumOperands() - 1).getImm() & 0x1f;
+    unsigned Imm = MI.getOperand(MI.getNumOperands() - 2).getImm() & 0x1f;
     Imm = X86::getSwappedVCMPImm(Imm);
----------------
craig.topper wrote:
> pengfei wrote:
> > craig.topper wrote:
> > > Use getNumExplicitOperands() - 1 instead.
> > Thanks!
> Is this line longer than 80 columns?
Fixed, thanks!


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70881/new/

https://reviews.llvm.org/D70881





More information about the llvm-commits mailing list