llvm-6502/lib/Target/Mips/MCTargetDesc
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
..
CMakeLists.txt Forgot to add new file to CMakeLists 2013-01-30 02:32:36 +00:00
LLVMBuild.txt LLVMBuild: Remove trailing newline, which irked me. 2011-12-12 19:48:00 +00:00
Makefile Test commit 2012-06-09 00:27:55 +00:00
MipsAsmBackend.cpp This patch produces the correct addend value for 2013-01-08 19:01:28 +00:00
MipsBaseInfo.h [mips] Set HWEncoding field of registers. Use delete function 2012-12-10 20:04:40 +00:00
MipsDirectObjLower.cpp The mips 64bit instructions DSLL, DSRA, DSRL, DEXT and DINS get transformed by the assembler or through codegen direct object output to other variants based on the value of the immediate values of the operands. 2012-10-02 23:09:40 +00:00
MipsDirectObjLower.h The mips 64bit instructions DSLL, DSRA, DSRL, DEXT and DINS get transformed by the assembler or through codegen direct object output to other variants based on the value of the immediate values of the operands. 2012-10-02 23:09:40 +00:00
MipsELFObjectWriter.cpp This patch reworks how llvm targets set 2013-01-30 02:09:52 +00:00
MipsELFStreamer.cpp ELF symbol table field st_other support, 2013-02-19 22:29:00 +00:00
MipsELFStreamer.h ELF symbol table field st_other support, 2013-02-19 22:04:37 +00:00
MipsFixupKinds.h Mips direct object xgot support 2012-11-21 23:38:59 +00:00
MipsMCAsmInfo.cpp Clean up assignment of CalleeSaveStackSlotSize: get rid of the default and explicitly set this in every target that needs to change it from the default. 2013-01-23 16:22:04 +00:00
MipsMCAsmInfo.h Prune some includes 2012-03-27 07:54:11 +00:00
MipsMCCodeEmitter.cpp Fix the invalid opcode for Mips branch instructions in the assembler 2013-03-22 00:29:10 +00:00
MipsMCTargetDesc.cpp This patch implements runtime Mips specific 2013-01-30 02:16:36 +00:00
MipsMCTargetDesc.h When creating MCAsmBackend pass the CPU string as well. In X86AsmBackend 2012-09-18 16:08:49 +00:00
MipsReginfo.cpp This is a resubmittal. For some reason it broke the bots yesterday 2013-01-18 21:20:38 +00:00
MipsReginfo.h This is a resubmittal. For some reason it broke the bots yesterday 2013-01-18 21:20:38 +00:00