1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/test/MC
Rafael Espindola a193e28818 Accept subtractions involving a weak symbol.
When a symbol S shows up in an expression in assembly there are two
possible interpretations
* The expression is referring to the value of S in this file.
* The expression is referring to the value after symbol resolution.

In the first case the assembler can reason about the value and try to
produce a relocation.
In the second case, that is only possible if the symbol cannot be
preempted.

Assemblers are not very consistent about which interpretation gets used.
This changes MC to agree with GAS in the case of an expression of the
form "Sym - WeakSym".

llvm-svn: 258329
2016-01-20 18:57:48 +00:00
..
AArch64 Accept subtractions involving a weak symbol. 2016-01-20 18:57:48 +00:00
AMDGPU AMDGPU/SI: Fix encoding of flat instructions on VI 2015-12-24 03:18:18 +00:00
ARM Accept subtractions involving a weak symbol. 2016-01-20 18:57:48 +00:00
AsmParser [MC] Use LShr for constant evaluation of ">>" on non-arm64 darwin. 2015-11-11 00:51:36 +00:00
COFF Make WinCOFFObjectWriter.cpp's timestamp writing not use ENABLE_TIMESTAMPS 2016-01-06 19:05:19 +00:00
Disassembler # This is a combination of 2 commits. 2016-01-15 18:31:29 +00:00
ELF Accept subtractions involving a weak symbol. 2016-01-20 18:57:48 +00:00
Hexagon Fix several accidental DOS line endings in source files 2016-01-03 17:22:03 +00:00
MachO Form reform for MCDwarf. 2015-12-23 01:57:31 +00:00
Markup
Mips [MC, COFF] Add .reloc support for WinCOFF 2016-01-19 23:05:27 +00:00
PowerPC Relax a few more overspecified tests. 2015-11-03 19:38:19 +00:00
Sparc Update test to take into account for r251271. 2015-10-26 03:34:29 +00:00
SystemZ [SystemZ] Sort relocs to avoid code corruption by linker optimization 2015-12-16 18:12:40 +00:00
X86 [MC, COFF] Add .reloc support for WinCOFF 2016-01-19 23:05:27 +00:00