[X86] Fix shuffle comment decoding for vinsertps immediate operand (#117009)main
commit0b06301a1d839eb5f73559f6c3daf9049c34f3af
authorNabeel Omer <nabeel.omer@sony.com>
Thu, 21 Nov 2024 11:57:31 +0000 (21 11:57 +0000)
committerGitHub <noreply@github.com>
Thu, 21 Nov 2024 11:57:31 +0000 (21 11:57 +0000)
treeea589b53ec261ea08a967f8cfc33ed33a94ee473
parent56c091ea7106507b36015297ee9005c9d5fab0bf
[X86] Fix shuffle comment decoding for vinsertps immediate operand (#117009)

The relevant bit from the Intel SDM for vinsertps semantics:
```
IF (SRC = REG) THEN COUNT_S := imm8[7:6] ELSE COUNT_S := 0
```

This is now taken into account.
llvm/lib/Target/X86/MCTargetDesc/X86InstComments.cpp
llvm/lib/Target/X86/MCTargetDesc/X86ShuffleDecode.cpp
llvm/lib/Target/X86/MCTargetDesc/X86ShuffleDecode.h
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/MC/X86/vinsertps_decode.s [new file with mode: 0644]