llvm-6502/test/MC/Mips
Daniel Sanders b17a563e9a [mips][ias] Expand on r238751 to cover as many relocs as possible.
Summary:
Relocs that can be converted from absolute to PC-relative now do so if IsPCRel
is true. Relocs that require PC-relative now call llvm_unreachable() if IsPCRel
is false and similarly those that require absolute assert that IsPCRel is false.

Note that while it looks like some relocs (e.g. R_MIPS_26) can be converted into
the MIPS32r6/MIPS64r6 relocs (R_MIPS_PC*_S2), it isn't actually valid to do so.

Placeholders have been left in the testcase for unsupported relocs and relocs
that cannot be generated at the moment.

Reviewers: vkalintiris

Reviewed By: vkalintiris

Subscribers: llvm-commits, rafael

Differential Revision: http://reviews.llvm.org/D10184

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239817 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-16 13:46:26 +00:00
..
micromips32r6 [mips][microMIPS] Implement ERET and ERETNC instructions 2015-06-11 10:22:46 +00:00
mips1 [mips][msa] Test basic operations for the N32 ABI too. 2015-05-05 08:48:35 +00:00
mips2 [mips][msa] Test basic operations for the N32 ABI too. 2015-05-05 08:48:35 +00:00
mips3 [mips][msa] Test basic operations for the N32 ABI too. 2015-05-05 08:48:35 +00:00
mips4 [mips][msa] Test basic operations for the N32 ABI too. 2015-05-05 08:48:35 +00:00
mips5 [mips][msa] Test basic operations for the N32 ABI too. 2015-05-05 08:48:35 +00:00
mips32 [mips][msa] Test basic operations for the N32 ABI too. 2015-05-05 08:48:35 +00:00
mips32r2 [mips] [IAS] Remove AssemblerPredicate's from RelocPIC and RelocStatic. 2015-04-08 10:06:45 +00:00
mips32r3 [mips] [IAS] Remove AssemblerPredicate's from RelocPIC and RelocStatic. 2015-04-08 10:06:45 +00:00
mips32r5 [mips] [IAS] Remove AssemblerPredicate's from RelocPIC and RelocStatic. 2015-04-08 10:06:45 +00:00
mips32r6 [mips] Change existing uimm10 operand to restrict the accepted immediates 2015-06-11 09:51:58 +00:00
mips64 [mips][msa] Test basic operations for the N32 ABI too. 2015-05-05 08:48:35 +00:00
mips64r2 [mips][msa] Test basic operations for the N32 ABI too. 2015-05-05 08:48:35 +00:00
mips64r3 [mips][msa] Test basic operations for the N32 ABI too. 2015-05-05 08:48:35 +00:00
mips64r5 [mips][msa] Test basic operations for the N32 ABI too. 2015-05-05 08:48:35 +00:00
mips64r6 [mips] Change existing uimm10 operand to restrict the accepted immediates 2015-06-11 09:51:58 +00:00
msa
asciiz-directive-bad.s [mips] [IAS] Implement the .asciiz directive. 2015-04-21 11:50:52 +00:00
asciiz-directive.s [mips] [IAS] Implement the .asciiz directive. 2015-04-21 11:50:52 +00:00
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 [mips] [IAS] Fix using .cpsetup with local labels (PR22518). 2015-02-18 13:46:53 +00:00
cpsetup.s [mips] [IAS] Fix using .cpsetup with local labels (PR22518). 2015-02-18 13:46:53 +00:00
do_switch1.s
do_switch2.s
do_switch3.s Replace obsolete -mattr=n64 command line option with -target-abi=n64. No functional changes. 2015-02-26 12:29:48 +00:00
eh-frame.s Use CIE version 1 for .eh_frame. 2015-04-27 22:04:24 +00:00
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 [mips] Add backend support for Mips32r[35] and Mips64r[35]. 2015-02-18 16:24:50 +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 [opaque pointer type] Add textual IR support for explicit type parameter to gep operator 2015-03-13 18:20:45 +00:00
elf-gprel-32-64.s
elf-N64.s
elf-relsym.s
elf-tls.s Update tests to not be as dependent on section numbers. 2015-04-15 15:59:37 +00:00
expr1.s [mips] [IAS] Merge the micromips-expressions.s test into expr1.s. NFC. 2015-05-13 09:53:53 +00:00
higher-highest-addressing.s
hilo-addressing.s
insn-directive.s [mips] [IAS] Add support for the .insn directive. 2015-04-16 09:53:47 +00:00
lit.local.cfg
llvm-mc-fixup-endianness.s
micromips-16-bit-instructions.s [mips][microMIPS] Implement movep instruction 2015-02-10 16:36:20 +00:00
micromips-alias.s [mips] [IAS] Preserve microMIPS label marking for objects when assigning. 2015-04-16 13:37:32 +00:00
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 [mips] [IAS] Unify common functionality of LA and LI. 2015-05-13 13:56:16 +00:00
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] Change existing uimm10 operand to restrict the accepted immediates 2015-06-11 09:51:58 +00:00
micromips-jump26.s
micromips-jump-instructions.s [mips][microMIPS] Implement JALX instruction 2015-02-18 17:15:48 +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 SWM and LWM aliases 2015-01-28 21:52:27 +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 Recommit "[mips] [IAS] Add support for BNE and BEQ with an immediate operand." (r239396). 2015-06-11 10:36:10 +00:00
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 Replace obsolete -mattr=n64 command line option with -target-abi=n64. No functional changes. 2015-02-26 12:29:48 +00:00
mips64shift.ll
mips_abi_flags_xx_set.s
mips_abi_flags_xx.s
mips_directives_bad.s
mips_directives.s [mips] [IAS] Emit .set macro/nomacro. 2015-05-14 13:42:10 +00:00
mips_gprel16.s
mips-abi-bad.s [mips] [IAS] Add missing constraints and improve testing for the .module directive. 2015-03-06 12:15:12 +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 Relax these tests a bit. 2015-05-22 21:37:13 +00:00
mips-diagnostic-fixup.s
mips-dsp-instructions.s
mips-expansions-bad.s Recommit "[mips] [IAS] Add support for BNE and BEQ with an immediate operand." (r239396). 2015-06-11 10:36:10 +00:00
mips-expansions.s Recommit "[mips] [IAS] Add support for BNE and BEQ with an immediate operand." (r239396). 2015-06-11 10:36:10 +00:00
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] [IAS] Add support for the BNEZL and BEQZL pseudo-instructions. 2015-04-08 12:15:05 +00:00
mips-jump-instructions.s
mips-memory-instructions.s
mips-noat.s [mips] Improve support for the .set at/noat assembler directives. 2015-02-13 10:30:57 +00:00
mips-pc16-fixup.s
mips-pdr-bad.s
mips-pdr.s llvm-readobj can parse relocations, no need to check the raw bytes.x 2015-06-04 15:15:12 +00:00
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
module-directive-bad.s [mips] [IAS] Emit .set macro/nomacro. 2015-05-14 13:42:10 +00:00
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
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 new format for dmtc2/dmfc2 for Octeon CPUs. 2015-05-28 16:23:16 +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
relocation.s [mips][ias] Expand on r238751 to cover as many relocs as possible. 2015-06-16 13:46:26 +00:00
set-arch.s [mips] Add backend support for Mips32r[35] and Mips64r[35]. 2015-02-18 16:24:50 +00:00
set-at-directive-explicit-at.s [mips] [IAS] Improve warning for using AT with .set noat. 2015-04-27 14:05:04 +00:00
set-at-directive.s [mips] Improve support for the .set at/noat assembler directives. 2015-02-13 10:30:57 +00:00
set-at-noat-bad-syntax.s [mips] Improve support for the .set at/noat assembler directives. 2015-02-13 10:30:57 +00:00
set-defined-symbol.s [mips] [IAS] Allow .set assignments for already defined symbols. 2015-04-07 13:59:39 +00:00
set-mips0-directive.s
set-mips16-directive.s
set-mips-directives-bad.s [mips] Add backend support for Mips32r[35] and Mips64r[35]. 2015-02-18 16:24:50 +00:00
set-mips-directives.s [mips] Add backend support for Mips32r[35] and Mips64r[35]. 2015-02-18 16:24:50 +00:00
set-nodsp.s
set-nomacro-micromips.s [mips] [IAS] Enforce .set nomacro. 2015-05-14 14:51:32 +00:00
set-nomacro.s Recommit "[mips] [IAS] Add support for BNE and BEQ with an immediate operand." (r239396). 2015-06-11 10:36:10 +00:00
set-push-pop-directives-bad.s Recommit "[mips] [IAS] Restore STI.FeatureBits in .set pop." (r239144). 2015-06-09 13:33:26 +00:00
set-push-pop-directives.s Recommit "[mips] [IAS] Restore STI.FeatureBits in .set pop." (r239144). 2015-06-09 13:33:26 +00:00
set-softfloat-hardfloat-bad.s [mips] [IAS] Add support for the .set softfloat/hardfloat directives. 2015-06-02 09:48:04 +00:00
set-softfloat-hardfloat.s [mips] [IAS] Add support for the .set softfloat/hardfloat directives. 2015-06-02 09:48:04 +00:00
sext_64_32.ll
sort-relocation-table.s Re-enable target-specific relocation table sorting and use it for Mips 2015-04-14 13:23:34 +00:00
sym-expr.s
sym-offset.ll [opaque pointer type] Add textual IR support for explicit type parameter to gep operator 2015-03-13 18:20:45 +00:00
target-soft-float.s [mips] Add the SoftFloat MipsSubtarget feature. 2015-05-07 10:29:52 +00:00
unaligned-nops.s
xgot.s Re-enable target-specific relocation table sorting and use it for Mips 2015-04-14 13:23:34 +00:00