llvm-mirror/test/MC
Sagar Thakur 5eb36c5e30 [MIPS][LLVM-MC] Fix Disassemble of Negative Offset
Patch by Nitesh Jain.

Summary: The type of Imm in MipsDisassembler.cpp was incorrect since SignExtend64 return int64_t type.As per the MIPSr6 doc ,the offset is added to the address of the instruction following the branch (not the branch itself), to form a PC-relative effective target address hence “4” is added to the offset. The offset of some test case are update to reflect the changes due to “ + 4 ” offset and new test case for negative offset are added.

Reviewers: dsanders, vkalintiris
Differential Revision: http://reviews.llvm.org/D17540

llvm-svn: 270542
2016-05-24 09:57:10 +00:00
..
AArch64 add support for -print-imm-hex for AArch64 2016-05-13 18:00:09 +00:00
AMDGPU [AMDGPU] Assembler: refactor parsing of modifiers and immediates. Allow modifiers for imms. 2016-05-23 09:59:02 +00:00
ARM Don't pass relocation-model= to tests that don't need it. 2016-05-18 00:27:17 +00:00
AsmParser [LLVM] Remove unwanted --check-prefix=CHECK from unit tests. NFC. 2016-04-19 23:51:52 +00:00
COFF [MC] Create unique .pdata sections for every .text section 2016-05-02 23:22:18 +00:00
Disassembler [MIPS][LLVM-MC] Fix Disassemble of Negative Offset 2016-05-24 09:57:10 +00:00
ELF Temporarily revert r270070 2016-05-19 15:58:05 +00:00
Hexagon [Hexagon] Use pipe instead of temporary files in tests 2016-05-20 14:01:34 +00:00
Lanai [lanai] isBrImm should accept any non-constant immediate. 2016-03-31 17:58:55 +00:00
MachO CodeGen: Use PLT relocations for relative references to unnamed_addr functions. 2016-04-22 20:40:10 +00:00
Markup
Mips ps][microMIPS] Add R_MICROMIPS_PC21_S1 relocation 2016-05-19 12:20:40 +00:00
PowerPC Don't pass relocation-model= to tests that don't need it. 2016-05-18 00:27:17 +00:00
Sparc Don't pass a Reloc::Model to MC. 2016-05-18 11:58:50 +00:00
SystemZ [SystemZ] Support LRVH and STRVH opcodes 2016-05-16 20:32:22 +00:00
X86 [MCExpr] avoid UB via negation of INT_MIN 2016-05-20 14:09:41 +00:00