1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/test/MC/ELF
Rafael Espindola abf9b1c7a5 Don't pass the code model to MC
I was surprised to see the code model being passed to MC. After all,
it assembles code, it doesn't create it.

The one place it is used is in the expansion of .cfi directives to
handle .eh_frame being more that 2gb away from the code.

As far as I can tell, gnu assembler doesn't even have an option to
enable this. Compiling a c file with gcc -mcmodel=large produces a
regular looking .eh_frame. This is probably because in practice linker
parse and recreate .eh_frames.

In llvm this is used because the JIT can place the code and .eh_frame
very far apart. Ideally we would fix the jit and delete this
option. This is hard.

Apart from confusion another problem with the current interface is
that most callers pass CodeModel::Default, which is bad since MC has
no way to map it to the target default if it actually needed to.

This patch then replaces the argument with a boolean with a default
value. The vast majority of users don't ever need to look at it. In
fact, only CodeGen and llvm-mc use it and llvm-mc just to enable more
testing.

llvm-svn: 309884
2017-08-02 20:32:26 +00:00
..
ARM Move ARM specific test to ELF/ARM dir 2017-06-05 10:53:26 +00:00
abs.s
alias-reloc.s
alias-to-local.s
alias.s
align-bss.s
align-nops.s
align-size.s
align-text.s
align-zero.s
align.s
bad-expr2.s Make this test a bit more strict. NFC. 2017-06-20 21:11:58 +00:00
bad-expr3.s Use @LINE in two more tests. 2017-07-06 21:33:23 +00:00
bad-expr.s Add a common error checking for some invalid expressions. 2017-06-22 17:25:35 +00:00
bad-relocation.s
bad-section.s
basic-elf-32.s
basic-elf-64.s
bracket-exprs.s
bracket.s
bss-large.ll
bss.ll
call-abs.s
cfi-adjust-cfa-offset.s
cfi-advance-loc2.s
cfi-def-cfa-offset.s
cfi-def-cfa-register.s
cfi-def-cfa.s
cfi-escape.s
cfi-large-model.s Don't pass the code model to MC 2017-08-02 20:32:26 +00:00
cfi-offset.s
cfi-reg.s
cfi-register.s
cfi-rel-offset2.s
cfi-rel-offset.s
cfi-remember.s
cfi-restore.s
cfi-same-value.s
cfi-sections.s
cfi-signal-frame.s
cfi-undefined.s
cfi-version.ll
cfi-window-save.s
cfi-zero-addr-delta.s
cfi.s
comdat-dup-group-name.s
comdat-reloc.s
comdat.s
common2.s
common-error1.s
common-error2.s
common-error3.s
common-redeclare.s
common.s
comp-dir.s
compression.s
debug-line2.s Speculatively revert r289925, see PR31407 2016-12-16 14:02:28 +00:00
debug-line.s Speculatively revert r289925, see PR31407 2016-12-16 14:02:28 +00:00
debug-loc.s Speculatively revert r289925, see PR31407 2016-12-16 14:02:28 +00:00
diff2.s
diff.s
discriminator.s Speculatively revert r289925, see PR31407 2016-12-16 14:02:28 +00:00
div-by-zero.s
dot-symbol-assignment.s
elf_directive_previous.s
elf_directive_section.s
empty-dwarf-lines.s Speculatively revert r289925, see PR31407 2016-12-16 14:02:28 +00:00
empty-twice.ll
empty.s
entsize.ll
entsize.s
fde.s
file-double.s
file.s
gen-dwarf.s [DWARFv5] llvm-mc support for new unit header. 2017-02-28 23:40:46 +00:00
global-offset.s
gnu-type-diagnostics.s
gnu-type.s
got-relaxed-i386.s
got-relaxed-no-relax.s
got-relaxed-rex.s
got-relaxed.s
got.s
ident.s
ifunc-reloc.s
invalid-symver.s
lcomm.s
leb128.s
lit.local.cfg
local-reloc.s
many-sections-2.s
many-sections-3.s
many-sections.s
merge.s
n_bytes.s
no-fixup.s
no-reloc.s
nocompression.s
noexec.s
norelocation.s
offset.s
org.s
pic-diff.s
plt.s
popsection.s
pr9292.s
pr19430.s
pr19582.s
relax-all-flag.s
relax-arith2.s
relax-arith3.s
relax-arith4.s
relax-arith.s
relax-crash.s
relax.s
reloc-same-name-section.s
relocation-386.s
relocation-pc.s
relocation-tls.s
relocation.s
rename.s
section-metadata-err1.s Change section flag character for SHF_LINK_ORDER to "o". 2017-04-04 22:35:08 +00:00
section-metadata-err2.s Change section flag character for SHF_LINK_ORDER to "o". 2017-04-04 22:35:08 +00:00
section-metadata-err3.s Change section flag character for SHF_LINK_ORDER to "o". 2017-04-04 22:35:08 +00:00
section-metadata-err4.s Change section flag character for SHF_LINK_ORDER to "o". 2017-04-04 22:35:08 +00:00
section-numeric-flag.s Add missing triple target for numeric section flag test 2016-12-15 10:20:48 +00:00
section-numeric-invalid-type.s Add llvm::object::getELFSectionTypeName(). 2017-05-02 14:04:52 +00:00
section-numeric-type.s [MC] Accept a numeric value as an ELF section header's type 2017-03-10 08:22:13 +00:00
section-quoting.s
section-sym2.s
section-sym-err2.s Disallow redefinition of section symbols. 2017-02-24 21:44:58 +00:00
section-sym-err.s Disallow redefinition of section symbols. 2017-02-24 21:44:58 +00:00
section-sym.s
section-unique-err1.s
section-unique-err2.s
section-unique-err3.s
section-unique-err4.s
section-unique.s
section.s MC, Object: Reserve a section type, SHT_LLVM_ODRTAB, for the ODR table. 2017-06-14 18:52:12 +00:00
set.s
size.s
sleb.s
strtab-suffix-opt.s
subsection.s
subtraction-error.s
symbol-names.s
symver-msvc.s
symver-pr23914.s
symver.s
tls-i386.s
tls.s
type-propagate.s
type.s
uleb.s
undef-temp.s
undef.s
undefined-directional.s
version.s
weak-diff.s
weak-relocation.s
weak.s
weakref-plt.s
weakref-reloc.s
weakref.s
x86_64-reloc-sizetest.s
zero.s