llvm-project
3f20a67e - [ARM] Diagnose Thumb-2 STR with Rt = PC (#240567)

Commit
6 days ago
[ARM] Diagnose Thumb-2 STR with Rt = PC (#240567) STR (immediate) T3 and T4 and STR (register) T2 with Rt = PC are UNPREDICTABLE, but the assembler accepted them, and the disassembler decoded them and the pre- and post-indexed forms without a warning. V8's ARM32 port had str.w pc, [sp, #60], and Qualcomm cores trap on it. Reject them in the assembler, as the pre- and post-indexed forms already are, and return SoftFail in the disassembler. basic-thumb2-instructions.s had one such instruction, which goes away. Assisted-by: Claude Opus 5.5 (Anthropic)
Author
Parents
Loading