mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-21 19:32:16 +00:00
Don't use implicit register operands to calculate L-bit for AVX instructions. Needed because super reg defs and kills are added as implicit operands on 128-bit instructions. Fixes PR13349. Patch by Jose Fonseca.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160543 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0fcaaafd1a
commit
f654554ee0
@ -927,6 +927,8 @@ void Emitter<CodeEmitter>::emitVEXOpcodePrefix(uint64_t TSFlags,
|
||||
for (unsigned i = 0; i != MI.getNumOperands(); ++i) {
|
||||
if (!MI.getOperand(i).isReg())
|
||||
continue;
|
||||
if (MI.getOperand(i).isImplicit())
|
||||
continue;
|
||||
unsigned SrcReg = MI.getOperand(i).getReg();
|
||||
if (SrcReg >= X86::YMM0 && SrcReg <= X86::YMM15)
|
||||
VEX_L = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user