llvm-mirror/test/MC
Simon Atanasyan 5a9ddc59d3 [mips] Process numeric register name in the .set assignment directive
Now LLVM assembler cannot process the following code and generates an
error. GNU tools support .set assignment directive with numeric register
name.

```
.set r4, 4

test.s:1:11: error: invalid token in expression
  .set r4, $4
           ^
```

This patch teach assembler to handle such directives correctly.
Unfortunately a numeric register name cannot be represented as an
expression. That's why we have to maintain a separate `StringMap`
in the `MipsAsmParser` to keep mapping between aliases names and
register numbers.

Differential revision: https://reviews.llvm.org/D47464

llvm-svn: 333428
2018-05-29 15:58:06 +00:00
..
AArch64 [AArch64][SVE] Asm: Support for predicated LSL/LSR (vectors) 2018-05-29 14:40:24 +00:00
AMDGPU AMDGPU: Fix v_dot{4, 8}* instruction encoding 2018-05-15 19:32:47 +00:00
ARM [MC] Relax .fill size requirements 2018-05-18 17:45:48 +00:00
AsmParser [MC] Relax .fill size requirements 2018-05-18 17:45:48 +00:00
AVR [AVR] Implement some missing code paths 2017-12-11 11:01:27 +00:00
BPF bpf: New disassembler testcases for 32-bit subregister support 2018-02-23 23:49:35 +00:00
COFF [CodeView] Add prefix to CodeView registers. 2018-05-29 14:35:34 +00:00
Disassembler [mips] Correct the predicates for a number of instructions. 2018-05-29 09:56:19 +00:00
ELF MC: Introduce an ELF dwo object writer and teach llvm-mc about it. 2018-05-21 19:44:54 +00:00
Hexagon [Hexagon] Use addAliasForDirective for data directives 2018-05-17 13:21:18 +00:00
Lanai [lanai] Add more tests for assembly of conditional ALU ops 2016-07-11 17:58:16 +00:00
MachO [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
Mips [mips] Process numeric register name in the .set assignment directive 2018-05-29 15:58:06 +00:00
PowerPC [PowerPC] Set isAsmParserOnly=1 for X-form TLS loads/stores 2018-05-28 15:27:58 +00:00
RISCV [RISCV] Support linker relax function call from auipc and jalr to jal 2018-05-24 06:21:23 +00:00
Sparc [Sparc] Add .uahalf and .uaword directives 2018-05-28 12:42:55 +00:00
SystemZ [SystemZ, AsmParser] Enable the mnemonic spell corrector. 2017-07-18 09:17:00 +00:00
WebAssembly [WebAssembly] MC: Ensure that FUNCTION_OFFSET relocations are always against function symbols. 2018-05-16 20:09:05 +00:00
X86 [x86] Introduce the enclv instruction 2018-05-08 07:11:05 +00:00