]> granicus.if.org Git - llvm/commit
[X86] Classify the AVX512 rounding control operand as X86::OPERAND_ROUNDING_CONTROL...
authorCraig Topper <craig.topper@intel.com>
Mon, 1 Apr 2019 19:08:15 +0000 (19:08 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 1 Apr 2019 19:08:15 +0000 (19:08 +0000)
commitad17d850c74d0b062096c555e3f49c2bfc04c90d
treeb25f4eee1bd4858ccbfe2d3b725290880a1a54da
parent7177f4e661e4e0056aaedf91aa1a5de70b189724
[X86] Classify the AVX512 rounding control operand as X86::OPERAND_ROUNDING_CONTROL instead of MCOI::OPERAND_IMMEDIATE. Add an assert on legal values of rounding control in the encoder and remove an explicit mask.

This should allow llvm-exegesis to intelligently constrain the rounding mode.

The mask in the encoder shouldn't be necessary any more. We used to allow codegen to use 8-11 for rounding mode and the assembler would use 0-3 to mean the same thing so we masked here and in the printer. Codegen now matches the assembler and the printer was updated, but I forgot to update the encoder.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357419 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/MCTargetDesc/X86BaseInfo.h
lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
lib/Target/X86/X86InstrInfo.td