llvm-project/llvm/test/MC
Wouter van Oortmerssen d3c544aa6e [WebAssembly] Fix assembler parsing of br_table.
Summary:
We use `variable_ops` in the tablegen defs to denote the list of
branch targets in `br_table`, but unlike other uses of `variable_ops`
(e.g. call) the these branch targets need to actually be encoded in the
instruction. The existing tables for `variable_ops` cause not operands
to be accepted by the assembly matcher.

Following the example of ARM:
2cc0a7da87/lib/Target/ARM/ARMInstrInfo.td (L550-L555)
we introduce a new operand type to capture this list, and we use the
same {} syntax as ARM as well to differentiate them from regular
integer operands.

Also removed definition and use of TSFlags in tablegen defs, since
`br_table` now has a non-variable_ops immediate operand, so the
previous logic of only the variable_ops arguments being labels didn't
make sense anymore.

Reviewers: dschuff, aheejin, sunfish

Subscribers: javed.absar, sbc100, jgravelle-google, kristof.beyls, llvm-commits

Differential Revision: https://reviews.llvm.org/D55401

llvm-svn: 349405
2018-12-17 22:04:44 +00:00
..
AArch64 [COFF, ARM64] Emit COFF function header 2018-12-11 18:36:14 +00:00
AMDGPU [AMDGPU] Emit MessagePack HSA Metadata for v3 code object 2018-12-12 19:39:27 +00:00
ARM [llvm-readelf] Make llvm-readelf more compatible with GNU readelf. 2018-11-12 18:02:38 +00:00
AVR [AVR] Redefine the 'SBR' instruction as an alias 2018-09-01 12:22:54 +00:00
AsmParser AsmParser: test .double NaN and .double inf 2018-12-17 18:54:22 +00:00
BPF bpf: New disassembler testcases for 32-bit subregister support 2018-02-23 23:49:35 +00:00
COFF [codeview] Flush labels before S_DEFRANGE* fragments 2018-12-17 21:49:35 +00:00
Disassembler [Sparc] Add membar assembler tags 2018-12-13 15:29:12 +00:00
ELF Recommit r348243 - "[llvm-mc] - Do not crash when referencing undefined debug sections." 2018-12-05 10:43:58 +00:00
Hexagon [Hexagon] Add instruction definitions for Hexagon V66 2018-12-05 21:01:07 +00:00
Lanai
MSP430 [MSP430] Use R_MSP430_16_BYTE type for FK_Data_2 fixup 2018-11-16 19:20:51 +00:00
MachO [macho] save the SDK version stored in module metadata into the version min and 2018-12-14 01:14:10 +00:00
Mips [mips] Fix test typo in rL348914 2018-12-15 08:44:47 +00:00
PowerPC [MC] Avoid inlining constant symbols with variants. 2018-09-17 20:34:26 +00:00
RISCV [RISCV] Add additional CSR instruction aliases (imm. operands) 2018-11-30 14:10:52 +00:00
Sparc [Sparc] Add membar assembler tags 2018-12-13 15:29:12 +00:00
SystemZ [SystemZ] Implement SystemZOperand::print() 2018-10-26 00:36:00 +00:00
WebAssembly [WebAssembly] Fix assembler parsing of br_table. 2018-12-17 22:04:44 +00:00
X86 [MC] Separate masm integer literal lexer support from inline asm 2018-10-24 20:23:57 +00:00