llvm-6502/test/MC/Mips
Jack Carter d3107fbc54 Fix the invalid opcode for Mips branch instructions in the assembler
For mips a branch an 18-bit signed offset (the 16-bit 
offset field shifted left 2 bits) is added to the 
address of the instruction following the branch 
(not the branch itself), in the branch delay slot, 
to form a PC-relative effective target address. 

Previously, the code generator did not perform the 
shift of the immediate branch offset which resulted 
in wrong instruction opcode. This patch fixes the issue.

Contributor: Vladimir Medic



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177687 91177308-0d34-0410-b5e6-96231b3b80d8
2013-03-22 00:29:10 +00:00
..
do_switch.ll
ef_frame.ll This patch produces the correct pointer size 2013-01-08 18:53:20 +00:00
elf_basic.s
elf_eflags.ll ELF symbol table field st_other support, 2013-02-19 22:29:00 +00:00
elf_st_other.ll ELF symbol table field st_other support, 2013-02-19 22:14:34 +00:00
elf-bigendian.ll
elf-gprel-32-64.ll This patch fixes a Mips specific bug where 2013-01-15 01:08:02 +00:00
elf-N64.ll
elf-objdump.s
elf-reginfo.ll This is a resubmittal. For some reason it broke the bots yesterday 2013-01-18 21:20:38 +00:00
elf-relsym.ll
elf-tls.ll
higher_highest.ll
hilo-addressing.s Mips specific standalone assembler addressing mode %hi and %lo. 2013-02-21 02:09:31 +00:00
lea_64.ll
lit.local.cfg
mips64-alu-instructions.s This patch that sets the EmitAlias flag in td files 2013-02-05 08:32:10 +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
mips64shift.ll
mips_directives.s This patch enables the Mips .set directive to define aliases 2013-03-21 21:44:16 +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 that sets the EmitAlias flag in td files 2013-02-05 08:32:10 +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-expansions.s This patch that enables the Mips assembler to use symbols for offset for instructions 2013-03-22 00:05:30 +00:00
mips-fpu-instructions.s Adding support for instructions mfc0, mfc2, mtc0, mtc2 2012-10-06 01:17:37 +00:00
mips-jump-instructions.s Fix the invalid opcode for Mips branch instructions in the assembler 2013-03-22 00:29:10 +00:00
mips-memory-instructions.s
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
multi-64bit-func.ll
nabi-regs.s ELF symbol table field st_other support, 2013-02-20 23:11:17 +00:00
pr11877.s
r-mips-got-disp.ll
set-at-directive.s ELF symbol table field st_other support, 2013-02-20 23:11:17 +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
xgot.ll Mips direct object xgot support 2012-11-21 23:38:59 +00:00