Added the restriction in assemble for APX TLS IE that the destination
can only be a register.
gas/
* config/tc-i386.c (md_assemble): Added stricter restrictions
for APX TLS IE.
&& i.mem_operands == 1
&& i.base_reg
&& i.base_reg->reg_num == RegIP
- && i.tm.operand_types[0].bitfield.class == Reg
- && (i.tm.operand_types[2].bitfield.class == Reg
- || i.tm.operands == 2))
+ && i.reg_operands == (i.operands - 1)
+ && i.types[i.operands - 1].bitfield.class == Reg)
/* Allow APX:
add %reg1, foo@gottpoff(%rip), %reg2
add foo@gottpoff(%rip), %reg, %reg2