[PATCH] x86: Add {load}/{store} tests for apx instructions.
Jan Beulich
jbeulich@suse.com
Tue Jul 2 12:15:00 GMT 2024
On 02.07.2024 12:29, Cui, Lili wrote:
>>>>>> Having reached the end of the file: What about CTESTcc and CCMPcc?
>>>>>>
>>>>>
>>>
>>> When adding swap test cases for CTESTcc, I found that it does not support
>> swapping operands, but test, {evex} test and ctest template insns all have D,
>> which does not match the SDM/APX spec, I want to remove D for them. I'm a bit
>> unsure if there's any particular reason why the legacy test added D ?
>>
>> Did you look at the commit doing so?
>>
>
> Ok, I found the commit this time, but I'm even more confused because I didn't find the basis for the second test from SDM.
>
> -test, 0x84, None, 0, W|CheckRegSize|Modrm|No_sSuf, { Reg8|Reg16|Reg32|Reg64, Reg8|Reg16|Reg32|Reg64|Unspecified|Byte|Word|Dword|Qword|BaseIndex }
> -test, 0x84, None, 0, W|CheckRegSize|Modrm|No_sSuf, { Byte|Word|Dword|Qword|Unspecified|BaseIndex, Reg8|Reg16|Reg32|Reg64 }
> +test, 0x84, None, 0, D|W|C|CheckRegSize|Modrm|No_sSuf, { Reg8|Reg16|Reg32|Reg64, Reg8|Reg16|Reg32|Reg64|Unspecified|BaseIndex }
"basis for the second test"? What do you mean? Are you referring to the SDM spelling
out only one operand order? That's surely a (very minor) shortcoming there. TEST is
commutative, and hence whatever order the programmer likes should be accepted by an
assembler.
Jan
More information about the Binutils
mailing list