llvm-6502/test/MC/Mips
Rafael Espindola 5e195a4c8d Remove some really nasty uses of hasRawTextSupport.
When MC was first added, targets could use hasRawTextSupport to keep features
working before they were added to the MC interface.

The design goal of MC is to provide an uniform api for printing assembly and
object files. Short of relaxations and other corner cases, a object file is
just another representation of the assembly.

It was never the intention that targets would keep doing things like

if (hasRawTextSupport())
  Set flags in one way.
else
  Set flags in another way.

When they do that they create two code paths and the object file is no longer
just another representation of the assembly. This also then requires testing
with llc -filetype=obj, which is extremelly brittle.

This patch removes some of these hacks by replacing them with smaller ones.
The ARM flag setting is trivial, so I just moved it to the constructor. For
Mips, the patch adds two temporary hack directives that allow the assembly
to represent the same things as the object file was already able to.

The hope is that the mips developers will replace the hack directives with
the same ones that gas uses and drop the -print-hack-directives flag.

I will also try to implement a target streamer interface, so that we can
move this out of the common code.

In summary, for any new work, two rules of the thumb are
  * Don't use "llc -filetype=obj" in tests.
  * Don't add calls to hasRawTextSupport.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192035 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-05 16:42:21 +00:00
..
msa [mips][msa] Direct Object Emission for I8 instructions. 2013-09-30 18:05:18 +00:00
abicalls.ll [mips] Do not emit ".option pic0" if target is mips64. 2013-06-26 19:08:49 +00:00
do_switch.ll For mips64 switch statements in subroutines could generate 2012-08-22 00:49:30 +00:00
eh-frame.s Change how we iterate over relocations on ELF. 2013-05-30 03:05:14 +00:00
elf_basic.s Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
elf_eflags.ll Remove some really nasty uses of hasRawTextSupport. 2013-10-05 16:42:21 +00:00
elf_eflags.s Remove some really nasty uses of hasRawTextSupport. 2013-10-05 16:42:21 +00:00
elf_st_other.ll Remove some really nasty uses of hasRawTextSupport. 2013-10-05 16:42:21 +00:00
elf_st_other.s Remove some really nasty uses of hasRawTextSupport. 2013-10-05 16:42:21 +00:00
elf-bigendian.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
elf-gprel-32-64.ll Change how we iterate over relocations on ELF. 2013-05-30 03:05:14 +00:00
elf-N64.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
elf-objdump.s PR13013: ELF Type identification fails for MSB type ELF files. 2012-06-25 14:48:43 +00:00
elf-reginfo.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
elf-relsym.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
elf-tls.ll Change how we iterate over relocations on ELF. 2013-05-30 03:05:14 +00:00
expr1.s Mips assembler: Enable handling of nested expressions 2013-04-17 00:18:04 +00:00
higher_highest.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
hilo-addressing.s Mips specific standalone assembler addressing mode %hi and %lo. 2013-02-21 02:09:31 +00:00
lea_64.ll The Mips64InstrInfo.td definitions DynAlloc64 LEA_ADDiu64 2012-08-06 23:29:06 +00:00
lit.local.cfg [tests] Cleanup initialization of test suffixes. 2013-08-16 00:37:11 +00:00
micromips-alu-instructions.s Fixed bug when generating Load Upper Immediate microMIPS instruction. 2013-09-14 07:35:41 +00:00
micromips-loadstore-instructions.s Mips ELF: MicroMips direct object Little endian support. 2013-08-08 23:30:40 +00:00
micromips-loadstore-unaligned.s [Mips] Support for unaligned load/store microMips instructions 2013-08-13 20:19:16 +00:00
micromips-movcond-instructions.s This patch adds support for microMIPS Move Conditional instructions. Test cases are included in patch. 2013-09-06 12:41:17 +00:00
micromips-multiply-instructions.s This patch adds support for microMIPS Multiply and Add/Sub instructions. Test cases are included in patch. 2013-09-06 13:08:00 +00:00
micromips-shift-instructions.s Mips ELF: MicroMips direct object Little endian support. 2013-08-08 23:30:40 +00:00
mips64-alu-instructions.s [mips] Add definition of instruction "drotr32" (double rotate right plus 32). 2013-09-07 00:18:01 +00:00
mips64-instructions.s [mips] Use ptr_rc to simplify definitions of base+index load/store instructions. 2013-08-28 00:55:15 +00:00
mips64-register-names.s Add test cases for correct parsing of register names in 32- and 64-bit modes. 2012-10-11 12:42:49 +00:00
mips64extins.ll The instruction DINS may be transformed into DINSU or DEXTM depending 2012-08-31 18:06:48 +00:00
mips64shift.ll Some instructions are passed to the assembler to be 2012-08-28 19:07:39 +00:00
mips_directives.s reverting per request 2013-10-04 22:52:31 +00:00
mips_gprel16.ll This patch produces the correct addend value for 2013-01-08 19:01:28 +00:00
mips-alu-instructions.s This patch adds aliases for Mips sub instruction with immediate operands. Corresponding test cases are added. 2013-10-01 09:48:56 +00:00
mips-control-instructions.s This patch implements trap instructions for mips. The test cases are added. 2013-08-26 10:02:40 +00:00
mips-coprocessor-encodings.s This is a resubmittal. For some reason it broke the bots yesterday 2013-01-18 20:15:06 +00:00
mips-dsp-instructions.s [mips] Use ptr_rc to simplify definitions of base+index load/store instructions. 2013-08-28 00:55:15 +00:00
mips-expansions.s Use object file specific section type for initial text section 2013-04-14 21:18:36 +00:00
mips-fpu-instructions.s This patch implements Mips load/store instructions from/to coprocessor 2. Test cases are added. 2013-09-16 10:29:42 +00:00
mips-jump-instructions.s [mips] Print instructions "beq", "bne" and "or" using assembler pseudo 2013-07-26 18:34:25 +00:00
mips-memory-instructions.s Use object file specific section type for initial text section 2013-04-14 21:18:36 +00:00
mips-register-names.s Add test cases for correct parsing of register names in 32- and 64-bit modes. 2012-10-11 12:42:49 +00:00
mips-relocations.s Use object file specific section type for initial text section 2013-04-14 21:18:36 +00:00
multi-64bit-func.ll Add option disable-mips-delay-filler. Turn on mips' delay slot filler by 2012-08-22 02:51:28 +00:00
nabi-regs.s Use object file specific section type for initial text section 2013-04-14 21:18:36 +00:00
pr11877.s Ensure .AliasedSymbol() is called on all uses of getSymbol(). Affects ARM and MIPS ELF backends. 2012-01-28 15:58:32 +00:00
r-mips-got-disp.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
set-at-directive.s Use object file specific section type for initial text section 2013-04-14 21:18:36 +00:00
sext_64_32.ll [mips] Stop reserving register AT and use register scavenger when a scratch 2012-11-03 00:05:43 +00:00
sym-offset.ll Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
xgot.ll [mips] Set instruction itineraries of loads, stores and conditional moves. 2013-09-06 23:28:24 +00:00