[clang] [compiler-rt] [llvm] Reland "[X86][AVX10.2] Support AVX10.2 option and VMPSADBW/VADDP[D,H,S] new instructions (#101452)" (PR #101616)
Phoebe Wang via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 2 07:52:43 PDT 2024
================
@@ -223,6 +227,10 @@ InstructionContext RecognizableInstr::insnContext() const {
insnContext = EVEX_KB_U(IC_EVEX_XD);
else if (OpPrefix == X86Local::PS)
insnContext = EVEX_KB_U(IC_EVEX);
+ else {
+ errs() << "Instruction does not use a prefix: " << Name << "\n";
+ llvm_unreachable("Invalid prefix");
----------------
phoebewang wrote:
No sure about the iostream operations, but I remember `llvm_unreachable` won't optimizate function call like printf.
https://github.com/llvm/llvm-project/pull/101616
More information about the cfe-commits
mailing list