1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/MC/Mips
Simon Atanasyan e20575db92 [mips] Replace custom parsing logic for data directives by the addAliasForDirective
The target independent AsmParser doesn't recognise .hword, .word, .dword
which are required for Mips. Currently MipsAsmParser recognises these
through dispatch to MipsAsmParser::parseDataDirective. This contains
equivalent logic to AsmParser::parseDirectiveValue. This patch allows
reuse of AsmParser::parseDirectiveValue by making use of
addAliasForDirective to support .hword, .word and .dword.

Original patch provided by Alex Bradbury at D47001 was modified to fix
handling of microMIPS symbols. The `AsmParser::parseDirectiveValue`
calls either `EmitIntValue` or `EmitValue`. In this patch we override
`EmitIntValue` in the `MipsELFStreamer` to clear a pending set of
microMIPS symbols.

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

llvm-svn: 337893
2018-07-25 07:07:43 +00:00
..
cnmips [mips] Correct the predicates of the load/store (double)word for coprocessor 3. 2018-04-12 14:41:38 +00:00
crc [mips] Add support for CRC ASE 2018-03-14 14:13:31 +00:00
dsp
dspr2
eva [mips] Show an error if register number is out of range 2018-04-24 16:14:00 +00:00
ginv [mips] Add support for Global INValidate ASE 2018-05-17 16:30:32 +00:00
micromips [mips] Correct predicates for loads, bit manipulation instructions and some pseudos 2018-06-20 19:59:58 +00:00
micromips32r6 [mips] Correct predicates for loads, bit manipulation instructions and some pseudos 2018-06-20 19:59:58 +00:00
micromips-dsp
micromips-dspr2
micromips-dspr3
mips1 [mips] Correct predicates for loads, bit manipulation instructions and some pseudos 2018-06-20 19:59:58 +00:00
mips2 [mips] Correct predicates for loads, bit manipulation instructions and some pseudos 2018-06-20 19:59:58 +00:00
mips3 [mips] Correct predicates for loads, bit manipulation instructions and some pseudos 2018-06-20 19:59:58 +00:00
mips4 [mips] Correct predicates for loads, bit manipulation instructions and some pseudos 2018-06-20 19:59:58 +00:00
mips5 [mips] Correct predicates for loads, bit manipulation instructions and some pseudos 2018-06-20 19:59:58 +00:00
mips16 [mips] Guard 'nop' properly and add mips16's nop instruction 2018-06-01 10:46:00 +00:00
mips32 [mips] Correct predicates for loads, bit manipulation instructions and some pseudos 2018-06-20 19:59:58 +00:00
mips32r2 [mips] Fix the predicates of round, ceiling, floor and trunc. 2018-05-14 16:26:50 +00:00
mips32r3 [mips] Fix the predicates of round, ceiling, floor and trunc. 2018-05-14 16:26:50 +00:00
mips32r5 [mips] Fix the predicates of round, ceiling, floor and trunc. 2018-05-14 16:26:50 +00:00
mips32r6 [mips] Correct the predicates of the cache and pref instructions 2018-05-22 10:55:05 +00:00
mips64 [mips] Fix the predicates of round, ceiling, floor and trunc. 2018-05-14 16:26:50 +00:00
mips64r2 [mips] Fix the predicates of round, ceiling, floor and trunc. 2018-05-14 16:26:50 +00:00
mips64r3 [mips] Fix the predicates of round, ceiling, floor and trunc. 2018-05-14 16:26:50 +00:00
mips64r5 [mips] Support 64-bit offsets for lb/sb/ld/sd/lld ... instructions 2018-06-01 16:37:53 +00:00
mips64r6 [mips] Support 64-bit offsets for lb/sb/ld/sd/lld ... instructions 2018-06-01 16:37:53 +00:00
msa
mt
virt [mips] Add support for Virtualization ASE 2018-04-27 09:12:08 +00:00
addend.s
asciiz-directive-bad.s
asciiz-directive.s
bopt-directive.s
branch-pseudos-bad.s
branch-pseudos.s
cfi-advance-loc.s
cfi.s
cpload-bad.s
cpload.s
cprestore-bad.s
cprestore-noreorder-noat.s
cprestore-noreorder.s
cprestore-reorder.s
cprestore-warning-unused.s
cpsetup-bad.s
cpsetup.s Use .set instead of = when printing assignment in assembly output 2018-03-27 16:44:41 +00:00
directive-ent.s
do_switch1.s
do_switch2.s
do_switch3.s
double-expand.s
eh-frame.s
elf_basic.s
elf_eflags_abicalls.s
elf_eflags_micromips2.s
elf_eflags_micromips.s
elf_eflags_mips16.s
elf_eflags_nan2008.s
elf_eflags_nanlegacy.s
elf_eflags_noreorder.s
elf_eflags_pic0.s
elf_eflags_pic2.s
elf_eflags.s
elf_header.s
elf_reginfo.s
elf_st_other.s
elf-bigendian.ll
elf-debug-section.s
elf-gprel-32-64.s
elf-N32.s
elf-N64.s
elf-relsym.s
elf-tls.s
end-directive.s
expansion-j-sym-pic.s [mips] Mark microMIPS64 as being unsupported. 2018-06-19 16:05:44 +00:00
expansion-jal-sym-pic.s [mips] Mark microMIPS64 as being unsupported. 2018-06-19 16:05:44 +00:00
expr1.s
got-rel-expr.s
hex-immediates.s
higher-highest-addressing.s
hilo-addressing.s
init-order-bug.ll
insn-directive.s
instalias-imm-expanding.s [mips] Guard some macro expansions properly 2018-04-19 09:45:04 +00:00
instr-analysis.s
j-macro-insn.s
lit.local.cfg
llvm-mc-fixup-endianness.s
macro-abs.s
macro-aliases-invalid-wrong-error.s
macro-aliases.s
macro-bcc-imm-bad.s
macro-bcc-imm.s
macro-ddiv-bad.s
macro-ddiv.s [mips] Addition of the [d]rem and [d]remu instructions 2018-07-09 13:06:44 +00:00
macro-ddivu-bad.s
macro-ddivu.s
macro-div-bad.s
macro-div.s
macro-divu-bad.s
macro-divu.s
macro-dla-32bit.s
macro-dla-bad.s
macro-dla-pic.s
macro-dla.s
macro-dli.s
macro-drem.s [mips] Addition of the [d]rem and [d]remu instructions 2018-07-09 13:06:44 +00:00
macro-dremu.s [mips] Addition of the [d]rem and [d]remu instructions 2018-07-09 13:06:44 +00:00
macro-la-bad.s
macro-la-pic.s
macro-la.s
macro-ld-sd.s
macro-li-bad.s
macro-li.d.s
macro-li.s
macro-li.s.s
macro-rem.s [mips] Addition of the [d]rem and [d]remu instructions 2018-07-09 13:06:44 +00:00
macro-remu.s [mips] Addition of the [d]rem and [d]remu instructions 2018-07-09 13:06:44 +00:00
macro-seq.s
memory-offsets.s
micromips32r6-eva.s [mips] Fix the definitions of the EVA instructions 2018-03-13 14:39:44 +00:00
micromips64-unsupported.s [mips] Mark microMIPS64 as being unsupported. 2018-06-19 16:05:44 +00:00
micromips64r6-unsupported.s
micromips-16-bit-instructions.s [mips] Correct the predicates for a number of instructions. 2018-05-29 09:56:19 +00:00
micromips-alias.s
micromips-alu-instructions.s
micromips-ase-directive.s
micromips-bad-branches.s
micromips-branch-fixup.s
micromips-branch-instructions.s
micromips-control-instructions.s [mips] Correct the definitions of some control instructions 2018-04-26 16:06:34 +00:00
micromips-diagnostic-fixup.s
micromips-el-fixup-data.s
micromips-eva.s [mips] Fix the definitions of the EVA instructions 2018-03-13 14:39:44 +00:00
micromips-expansions.s [mips] Accept 32-bit offsets for lh and lhu commands 2018-05-10 16:01:18 +00:00
micromips-fpu64-instructions.s [mips] Add missing test case from r332227 2018-05-14 13:18:51 +00:00
micromips-fpu-instructions.s [mips] Add disassembly support for comparison instructions 2018-05-15 11:18:24 +00:00
micromips-func-addr.s
micromips-invalid.s [mips] Show an error if register number is out of range 2018-04-24 16:14:00 +00:00
micromips-jump26.s
micromips-jump-instructions.s
micromips-label-test-sections.s
micromips-label-test.s [mips] Replace custom parsing logic for data directives by the addAliasForDirective 2018-07-25 07:07:43 +00:00
micromips-loadstore-instructions.s [mips] Mark various memory instructions as being in microMIPS (NFC) 2018-05-08 10:16:21 +00:00
micromips-loadstore-unaligned.s
micromips-movcond-instructions.s [mips] Mark select instructions correctly 2018-05-15 16:05:04 +00:00
micromips-multiply-instructions.s
micromips-neg-offset.s [mips] Guard all short instructions correctly. 2018-05-31 12:47:01 +00:00
micromips-pc16-fixup.s
micromips-relocations.s
micromips-shift-instructions.s
micromips-tailr.s
micromips-trap-instructions.s
mips64-alu-instructions.s
mips64-expansions.s [mips] Support 64-bit offsets for lb/sb/ld/sd/lld ... instructions 2018-06-01 16:37:53 +00:00
mips64-instalias-imm-expanding.s
mips64-instructions.s
mips64-register-names-n32-n64.s
mips64-register-names-o32.s
mips64eb-fixups.s
mips64extins.s
mips64shift.ll
mips_abi_flags_xx_set.s
mips_abi_flags_xx.s
mips_directives_bad.s [mips] Stop parsing a .set assignment if the first argument is not an identifier 2018-05-29 09:51:22 +00:00
mips_directives.s [mips] Process numeric register name in the .set assignment directive 2018-05-29 15:58:06 +00:00
mips_gprel16.s
mips-abi-bad.s
mips-alu-instructions.s
mips-bad-branches.s
mips-control-instructions.s [mips] Correct the definitions of some control instructions 2018-04-26 16:06:34 +00:00
mips-cop0-reginfo.s
mips-coprocessor-encodings.s
mips-data-directives.s
mips-diagnostic-fixup.s
mips-expansions-bad.s
mips-expansions.s [mips] Accept 32-bit offsets for lh and lhu commands 2018-05-10 16:01:18 +00:00
mips-fpu-instructions.s [mips] Correct the definition of cvt.d.w 2018-02-20 15:55:17 +00:00
mips-hwr-register-names.s
mips-jump-delay-slots.s
mips-jump-instructions.s
mips-memory-instructions.s
mips-noat.s
mips-pc16-fixup.s
mips-pdr-bad.s
mips-pdr.s
mips-rdata.s
mips-reginfo-fp32.s
mips-reginfo-fp64.s
mips-register-names-invalid.s [mips] Show an error if register number is out of range 2018-04-24 16:14:00 +00:00
mips-register-names-o32.s
module-directive-bad.s
module-hardfloat.s
module-softfloat.s
mul-macro-variants.s
multi-64bit-func.ll
nabi-regs.s
nacl-mask.s
nooddspreg-cmdarg.s
nooddspreg-error.s
nooddspreg.s
octeon-instructions.s
oddspreg.s
pr11877.s
r-mips-got-disp.s
reloc-directive-bad.s
reloc-directive-negative.s
reloc-directive.s [mips] Extend list of relocations supported by the .reloc directive 2018-06-01 16:37:42 +00:00
relocation-n64.s [mips] Emit R_MICROMIPS_GPREL16/R_MICROMIPS_SUB/R_MICROMIPS_LO16 / HI16 relocations 2018-05-29 11:33:54 +00:00
relocation-xfail.s
relocation.s [mips] Emit R_MICROMIPS_HIGHER / R_MICROMIPS_HIGHEST relocations 2018-05-29 10:27:44 +00:00
rotations32-bad.s
rotations32.s
rotations64.s
section-size.s
set-arch.s
set-at-directive-explicit-at.s
set-at-directive.s
set-at-noat-bad-syntax.s
set-defined-symbol.s
set-mips0-directive.s
set-mips16-directive.s
set-mips-directives-bad.s
set-mips-directives.s
set-nodsp.s
set-nomacro-micromips.s
set-nomacro.s
set-oddspreg-nooddspreg-error.s
set-oddspreg-nooddspreg.s
set-push-pop-directives-bad.s
set-push-pop-directives.s
set-softfloat-hardfloat-bad.s
set-softfloat-hardfloat.s
sext_64_32.ll
sort-relocation-table.s
sym-expr.s
sym-offset.ll
target-soft-float.s
tls-symbols.s
unaligned-nops.s
unsupported-relocation.s
update-module-level-options.s
user-macro-argument-separation.s
xgot.s