llvm-6502/test/MC/Mips
Eric Christopher fcd3c4065d Move the Mips target to storing the ABI in the TargetMachine rather
than on MipsSubtargetInfo.

This required a bit of massaging in the MC level to handle this since
MC is a) largely a collection of disparate classes with no hierarchy,
and b) there's no overarching equivalent to the TargetMachine, instead
only the subtarget via MCSubtargetInfo (which is the base class of
TargetSubtargetInfo).

We're now storing the ABI in both the TargetMachine level and in the
MC level because the AsmParser and the TargetStreamer both need to
know what ABI we have to parse assembly and emit objects. The target
streamer has a pointer to the one in the asm parser and is updated
when the asm parser is created. This is fragile as the FIXME comment
notes, but shouldn't be a problem in practice since we always
create an asm parser before attempting to emit object code via the
assembler. The TargetMachine now contains the ABI so that the DataLayout
can be constructed dependent upon ABI.

All testcases have been updated to use the -target-abi command line
flag so that we can set the ABI without using a subtarget feature.

Should be no change visible externally here.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227102 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-26 17:33:46 +00:00
..
mips1 [mips] Add support for COP1's Branch-On-Cond-Likely instructions 2014-10-17 14:08:28 +00:00
mips2 [mips] Add support for COP1's Branch-On-Cond-Likely instructions 2014-10-17 14:08:28 +00:00
mips3 [mips] Add support for COP1's Branch-On-Cond-Likely instructions 2014-10-17 14:08:28 +00:00
mips4 [mips] Add support for COP1's Branch-On-Cond-Likely instructions 2014-10-17 14:08:28 +00:00
mips5 [mips] Add support for COP1's Branch-On-Cond-Likely instructions 2014-10-17 14:08:28 +00:00
mips32 [mips] Add support for COP1's Branch-On-Cond-Likely instructions 2014-10-17 14:08:28 +00:00
mips32r2 [mips] Add synci instruction. 2014-11-27 17:28:10 +00:00
mips32r6 Recommit "[mips] Add names and tests for the hardware registers" 2014-11-11 10:31:31 +00:00
mips64 [mips] Add support for COP1's Branch-On-Cond-Likely instructions 2014-10-17 14:08:28 +00:00
mips64r2 [mips] Add synci instruction. 2014-11-27 17:28:10 +00:00
mips64r6 Recommit "[mips] Add names and tests for the hardware registers" 2014-11-11 10:31:31 +00:00
msa
cfi.s
cpload-bad.s [mips] Improve error/warning messages and testing for the .cpload assembler directive. 2014-11-06 10:02:45 +00:00
cpload.s Move the Mips target to storing the ABI in the TargetMachine rather 2015-01-26 17:33:46 +00:00
cpsetup-bad.s
cpsetup.s Move the Mips target to storing the ABI in the TargetMachine rather 2015-01-26 17:33:46 +00:00
do_switch1.s
do_switch2.s
do_switch3.s
eh-frame.s
elf_basic.s
elf_eflags_abicalls.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 Move the Mips target to storing the ABI in the TargetMachine rather 2015-01-26 17:33:46 +00:00
elf_reginfo.s Move the Mips target to storing the ABI in the TargetMachine rather 2015-01-26 17:33:46 +00:00
elf_st_other.s
elf-bigendian.ll
elf-gprel-32-64.s
elf-N64.s
elf-relsym.s
elf-tls.s
expr1.s
higher-highest-addressing.s
hilo-addressing.s
lit.local.cfg
llvm-mc-fixup-endianness.s
micromips-16-bit-instructions.s [mips][microMIPS] MicroMIPS 16-bit unconditional branch instruction B 2015-01-21 12:39:30 +00:00
micromips-alias.s
micromips-alu-instructions.s [mips][microMIPS] Implement ADDIUPC instruction 2015-01-21 12:10:11 +00:00
micromips-bad-branches.s [mips][microMIPS] Implement BEQZ16 and BNEZ16 instructions 2015-01-12 12:03:34 +00:00
micromips-branch-fixup.s [mips][microMIPS] MicroMIPS 16-bit unconditional branch instruction B 2015-01-21 12:39:30 +00:00
micromips-branch-instructions.s [mips][microMIPS] MicroMIPS 16-bit unconditional branch instruction B 2015-01-21 12:39:30 +00:00
micromips-control-instructions.s [mips][microMIPS] Implement CACHE, PREF, SSNOP, EHB and PAUSE instructions 2014-12-23 19:55:34 +00:00
micromips-diagnostic-fixup.s [mips][microMIPS] MicroMIPS 16-bit unconditional branch instruction B 2015-01-21 12:39:30 +00:00
micromips-el-fixup-data.s
micromips-expansions.s
micromips-expressions.s
micromips-fpu-instructions.s [mips][microMIPS] Fix opcodes of MFHC1 and MTHC1 instructions. 2014-11-19 13:37:51 +00:00
micromips-func-addr.s [mips][microMIPS] Relocate with symbol for micromips symbols 2014-12-30 22:04:16 +00:00
micromips-invalid.s [mips][microMIPS] Implement ADDIUPC instruction 2015-01-21 12:10:11 +00:00
micromips-jump26.s
micromips-jump-instructions.s [mips][microMIPS] Implement NOP aliases 2014-11-29 13:29:24 +00:00
micromips-label-test-sections.s [mips][microMIPS] Mark symbols as microMIPS if necessary 2014-11-05 16:35:20 +00:00
micromips-label-test.s [mips][microMIPS] Mark symbols as microMIPS if necessary 2014-11-05 16:35:20 +00:00
micromips-loadstore-instructions.s [mips][microMIPS] Implement LWSP and SWSP instructions 2014-12-23 16:16:33 +00:00
micromips-loadstore-unaligned.s
micromips-movcond-instructions.s
micromips-multiply-instructions.s
micromips-pc16-fixup.s
micromips-relocations.s
micromips-shift-instructions.s
micromips-tailr.s
micromips-trap-instructions.s
mips64-alu-instructions.s Revert "[mips] Add names and tests for the hardware registers" 2014-11-04 22:15:05 +00:00
mips64-expansions.s
mips64-instructions.s
mips64-register-names-n32-n64.s Move the Mips target to storing the ABI in the TargetMachine rather 2015-01-26 17:33:46 +00:00
mips64-register-names-o32.s Move the Mips target to storing the ABI in the TargetMachine rather 2015-01-26 17:33:46 +00:00
mips64eb-fixups.s
mips64extins.ll
mips64shift.ll
mips_abi_flags_xx_set.s
mips_abi_flags_xx.s
mips_directives_bad.s [mips] Improve the error messages given by MipsAsmParser. 2014-09-16 15:00:52 +00:00
mips_directives.s
mips_gprel16.s
mips-abi-bad.s [mips] Add new error message and improve testing for parsing the .module directive. 2015-01-23 10:40:19 +00:00
mips-alu-instructions.s Revert "[mips] Add names and tests for the hardware registers" 2014-11-04 22:15:05 +00:00
mips-bad-branches.s
mips-control-instructions.s
mips-coprocessor-encodings.s
mips-data-directives.s
mips-diagnostic-fixup.s
mips-dsp-instructions.s
mips-expansions-bad.s [mips] Improve the error messages given by MipsAsmParser. 2014-09-16 15:00:52 +00:00
mips-expansions.s
mips-fpu-instructions.s
mips-hwr-register-names.s [mips] Add hardware register name "hwr_ulr" ($29) 2014-11-11 11:22:39 +00:00
mips-jump-delay-slots.s [mips] Add support for COP1's Branch-On-Cond-Likely instructions 2014-10-17 14:08:28 +00:00
mips-jump-instructions.s
mips-memory-instructions.s
mips-noat.s [mips] Improve the error messages given by MipsAsmParser. 2014-09-16 15:00:52 +00:00
mips-pc16-fixup.s
mips-pdr-bad.s
mips-pdr.s
mips-reginfo-fp32.s
mips-reginfo-fp64.s Move the Mips target to storing the ABI in the TargetMachine rather 2015-01-26 17:33:46 +00:00
mips-register-names-invalid.s
mips-register-names-o32.s
mips-relocations.s
multi-64bit-func.ll
nabi-regs.s Move the Mips target to storing the ABI in the TargetMachine rather 2015-01-26 17:33:46 +00:00
nacl-mask.s Fix Mips nacl-mask test for new bundle-aligned label behavior 2014-10-22 23:32:00 +00:00
nooddspreg-cmdarg.s Move the Mips target to storing the ABI in the TargetMachine rather 2015-01-26 17:33:46 +00:00
nooddspreg-error.s
nooddspreg.s Move the Mips target to storing the ABI in the TargetMachine rather 2015-01-26 17:33:46 +00:00
octeon-instructions.s [mips] Add octeon branch instructions bbit0/bbit032/bbit1/bbit132 2015-01-20 16:10:51 +00:00
oddspreg.s Move the Mips target to storing the ABI in the TargetMachine rather 2015-01-26 17:33:46 +00:00
pr11877.s
r-mips-got-disp.s
set-arch.s
set-at-directive-explicit-at.s [mips] Improve the error messages given by MipsAsmParser. 2014-09-16 15:00:52 +00:00
set-at-directive.s
set-mips0-directive.s
set-mips16-directive.s [mips] Improve support for the .set mips16/nomips16 assembler directives. 2014-11-04 17:18:07 +00:00
set-mips-directives-bad.s
set-mips-directives.s
set-nodsp.s [mips] Add assembler support for the .set nodsp directive. 2014-09-17 09:01:54 +00:00
set-push-pop-directives-bad.s
set-push-pop-directives.s
sext_64_32.ll
sym-expr.s
sym-offset.ll
unaligned-nops.s Support padding unaligned data in .text. 2014-10-02 13:41:42 +00:00
xgot.s