llvm-project/llvm/test/MC
James Clarke 0113cf193f [RISCV] Check register class for AMO memory operands
Summary:
AMO memory operands use a custom parser in order to accept both (reg)
and 0(reg). However, the validation predicate used for these operands
was only checking that they were registers, and not the register class,
so non-GPRs (such as FPRs) were also accepted. Thus, fix this by making
the predicate check that they are GPRs.

Reviewers: asb, lenary

Reviewed By: asb, lenary

Subscribers: hiraditya, rbar, johnrusso, simoncook, sabuasal, niosHD, kito-cheng, shiva0217, MaskRay, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, PkmX, jocewei, psnobl, benna, Jim, s.egerton, pzheng, sameer.abuasal, apazos, luismarques, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D72471
2020-01-13 00:50:37 +00:00
..
AArch64 [NFC] Fix trivial typos in comments 2020-01-06 10:50:26 +00:00
AMDGPU [AMDGPU] Add gfx8 assembler and disassembler test cases 2020-01-12 21:12:48 +00:00
ARM [MC][ELF] Emit a relocation if target is defined in the same section and is non-local 2020-01-12 13:46:24 -08:00
AVR Fixup AVR tests to reflect changes in addend format in llvm-objdump 2019-11-19 15:32:58 +00:00
AsmParser MCObjectStreamer: assign MCSymbols in the dummy fragment to offset 0. 2019-11-16 09:52:07 -05:00
BPF [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
COFF Revert "[COFF] Make the autogenerated .weak.<name>.default symbols static" 2019-12-28 23:45:50 +02:00
Disassembler [AMDGPU] Add gfx8 assembler and disassembler test cases 2020-01-12 21:12:48 +00:00
ELF [MC][ELF] Emit a relocation if target is defined in the same section and is non-local 2020-01-12 13:46:24 -08:00
Hexagon Migrate function attribute "no-frame-pointer-elim" to "frame-pointer"="all" as cleanups after D56351 2019-12-24 15:57:33 -08:00
Lanai [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
MSP430 [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
MachO [PowerPC] Delete PPCDarwinAsmPrinter and PPCMCAsmInfoDarwin 2020-01-12 11:02:02 -08:00
Mips [mips] Fix sc, scs, ll, lld instructions expanding 2019-11-27 00:43:25 +03:00
PowerPC [PowerPC] Delete PPCDarwinAsmPrinter and PPCMCAsmInfoDarwin 2020-01-12 11:02:02 -08:00
RISCV [RISCV] Check register class for AMO memory operands 2020-01-13 00:50:37 +00:00
Sparc [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
SystemZ [SystemZ] Improve handling of huge PC relative immediate offsets. 2019-11-04 10:38:18 +01:00
WebAssembly Migrate function attribute "no-frame-pointer-elim"="false" to "frame-pointer"="none" as cleanups after D56351 2019-12-24 16:27:51 -08:00
X86 [MC][ELF] Emit a relocation if target is defined in the same section and is non-local 2020-01-12 13:46:24 -08:00