llvm-6502/test/MC/ARM
Saleem Abdulrasool 77b9fc127b ARM: correct handling of features in arch_extension
The subtarget information is the ultimate source of truth for the feature set
that is enabled at this point.  We would previously not propagate the feature
information to the subtarget.  While this worked for the most part (features
would be enabled/disabled as requested), if another operation that changed the
feature bits was encountered (such as a mode switch via a .arm or .thumb
directive), we would end up resetting the behaviour of the architectural
extensions.

Handling this properly requires a slightly more complicated handling.  We need
to check if the feature is now being toggled.  If so, only then do we toggle the
features.  In return, we no longer have to calculate the feature bits ourselves.

The test changes are mostly to the diagnosis, which is now more uniform (a nice
side effect!).  Add an additional test to ensure that we handle this case
properly.

Thanks to Nico Weber for alerting me to this issue!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214057 91177308-0d34-0410-b5e6-96231b3b80d8
2014-07-27 19:07:09 +00:00
..
AlignedBundling Reduce verbiage of lit.local.cfg files 2014-06-09 22:42:55 +00:00
Windows MC: adjust text section flags for WoA 2014-06-22 22:25:01 +00:00
2010-11-30-reloc-movt.s
2013-03-18-Br-to-label-named-like-reg.s
align_arm_2_thumb.s
align_thumb_2_arm.s
arm_addrmode2.s
arm_addrmode3.s
arm_fixups.s
arm_instructions.s
arm-aliases.s
arm-arithmetic-aliases.s
arm-elf-symver.s
arm-it-block.s
arm-ldrd.s
arm-memory-instructions.s
arm-qualifier-diagnostics.s
arm-shift-encoding.s
arm-thumb-cpus-default.s
arm-thumb-cpus.s
arm-thumb-trustzone.s
arm-trustzone.s
basic-arm-instructions-v8.s
basic-arm-instructions.s
basic-thumb2-instructions-v8.s
basic-thumb2-instructions.s
basic-thumb-instructions.s
big-endian-arm-fixup.s ARMEB: Additional test files for ARM fixups 2014-05-20 09:24:37 +00:00
big-endian-thumb2-fixup.s ARMEB: Additional test files for ARM fixups 2014-05-20 09:24:37 +00:00
big-endian-thumb-fixup.s ARMEB: Additional test files for ARM fixups 2014-05-20 09:24:37 +00:00
bkpt.s
bracket-darwin.s
bracket-exprs.s
cmp-immediate-fixup2.s
cmp-immediate-fixup-error2.s
cmp-immediate-fixup-error.s
cmp-immediate-fixup.s
coff-debugging-secrel.ll DebugInfo: Generalize some tests to handle variations in attribute ordering. 2014-05-23 21:11:46 +00:00
coff-file.s MC: place .file records into the correct section 2014-05-02 17:45:24 +00:00
coff-function-type-info.ll ARM: print COFF function header for Windows on ARM 2014-04-30 06:14:25 +00:00
coff-relocations.s
comment.s
complex-operands.s
crc32-thumb.s
crc32.s
cxx-global-constructor.ll
data-in-code.ll
deprecated-v8.s
diagnostics-noneon.s
diagnostics.s [ARM] Make the assembler reject unpredictable pre/post-indexed ARM STRH instructions. 2014-07-24 09:55:46 +00:00
directive-align.s
directive-arch_extension-crc.s ARM: correct handling of features in arch_extension 2014-07-27 19:07:09 +00:00
directive-arch_extension-crypto.s
directive-arch_extension-fp.s ARM: correct handling of features in arch_extension 2014-07-27 19:07:09 +00:00
directive-arch_extension-idiv.s ARM: correct handling of features in arch_extension 2014-07-27 19:07:09 +00:00
directive-arch_extension-mode-switch.s ARM: correct handling of features in arch_extension 2014-07-27 19:07:09 +00:00
directive-arch_extension-mp.s
directive-arch_extension-sec.s
directive-arch_extension-simd.s ARM: correct handling of features in arch_extension 2014-07-27 19:07:09 +00:00
directive-arch-armv2.s
directive-arch-armv2a.s
directive-arch-armv3.s
directive-arch-armv3m.s
directive-arch-armv4.s
directive-arch-armv4t.s
directive-arch-armv5.s
directive-arch-armv5t.s
directive-arch-armv5te.s
directive-arch-armv6-m.s
directive-arch-armv6.s
directive-arch-armv6j.s
directive-arch-armv6t2.s
directive-arch-armv6z.s
directive-arch-armv6zk.s
directive-arch-armv7-a.s
directive-arch-armv7-m.s
directive-arch-armv7-r.s
directive-arch-armv7.s
directive-arch-armv7a.s
directive-arch-armv7m.s
directive-arch-armv7r.s
directive-arch-armv8-a.s
directive-arch-armv8a.s
directive-arch-iwmmxt2.s
directive-arch-iwmmxt.s
directive-cpu.s
directive-eabi_attribute-2.s
directive-eabi_attribute-diagnostics.s
directive-eabi_attribute-overwrite.s
directive-eabi_attribute.s
directive-even.s
directive-fpu-multiple.s
directive-fpu-softvfp.s
directive-fpu.s
directive-literals.s
directive-object_arch-2.s
directive-object_arch-3.s
directive-object_arch-diagnostics.s
directive-object_arch.s
directive-tlsdescseq-diagnostics.s
directive-tlsdescseq.s
directive-word-diagnostics.s
dot-req-case-insensitive.s
dot-req.s
dwarf-asm-multiple-sections.s Since we're using DW_AT_string rather than DW_AT_strp for debug_info 2014-06-19 20:00:13 +00:00
dwarf-asm-no-code.s Tests for r211273 2014-06-19 16:35:19 +00:00
dwarf-asm-nonstandard-section.s Since we're using DW_AT_string rather than DW_AT_strp for debug_info 2014-06-19 20:00:13 +00:00
dwarf-asm-single-section.s Since we're using DW_AT_string rather than DW_AT_strp for debug_info 2014-06-19 20:00:13 +00:00
dwarf-cfi-initial-state.s
eh-compact-pr0.s
eh-compact-pr1.s
eh-directive-cantunwind-diagnostics.s
eh-directive-cantunwind.s
eh-directive-fnend-diagnostics.s
eh-directive-fnstart-diagnostics.s
eh-directive-handlerdata.s
eh-directive-integrated-test.s
eh-directive-movsp-diagnostics.s
eh-directive-movsp.s
eh-directive-multiple-offsets.s
eh-directive-pad-diagnostics.s
eh-directive-pad.s
eh-directive-personality-diagnostics.s
eh-directive-personality.s
eh-directive-personalityindex-diagnostics.s
eh-directive-personalityindex.s
eh-directive-save-diagnostics.s Fix spelling. 2014-05-05 17:58:46 +00:00
eh-directive-save.s
eh-directive-section-comdat.s
eh-directive-section-multiple-func.s
eh-directive-section.s
eh-directive-setfp-diagnostics.s
eh-directive-setfp.s
eh-directive-text-section-multiple-func.s
eh-directive-text-section.s
eh-directive-unwind_raw-diagnostics.s
eh-directive-unwind_raw.s
eh-directive-vsave-diagnostics.s
eh-directive-vsave.s
elf-eflags-eabi.s
elf-jump24-fixup.s
elf-movt.s
elf-reloc-01.ll
elf-reloc-02.ll
elf-reloc-03.ll
elf-reloc-condcall.s
elf-thumbfunc-reloc.ll
elf-thumbfunc-reloc.s
elf-thumbfunc.s
fconst.s
fixup-cpu-mode.s
fp-armv8.s
fp-const-errors.s
full_line_comment.s
gas-compl-copr-reg.s Added parsing co-processor names starting with "cr" 2014-06-26 13:10:53 +00:00
hilo-16bit-relocations.s
idiv.s
inst-arm-suffixes.s
inst-constant-required.s
inst-directive-emit.s
inst-directive.s
inst-overflow.s
inst-thumb-overflow-2.s
inst-thumb-overflow.s
inst-thumb-suffixes.s
invalid-barrier.s
invalid-crc32.s
invalid-fp-armv8.s
invalid-hint-arm.s
invalid-hint-thumb.s
invalid-idiv.s
invalid-neon-v8.s
invalid-vector-index.s
ldr-pseudo-darwin.s MC: support different sized constants in constant pools 2014-07-18 16:05:14 +00:00
ldr-pseudo-obj-errors.s
ldr-pseudo-parse-errors.s
ldr-pseudo.s
ldrd-strd-gnu-arm-bad-imm.s
ldrd-strd-gnu-arm.s
ldrd-strd-gnu-sp.s
ldrd-strd-gnu-thumb-bad-regs.s
ldrd-strd-gnu-thumb.s
lit.local.cfg Reduce verbiage of lit.local.cfg files 2014-06-09 22:42:55 +00:00
load-store-acquire-release-v8-thumb.s
load-store-acquire-release-v8.s
ltorg-darwin.s MC: support different sized constants in constant pools 2014-07-18 16:05:14 +00:00
ltorg.s
macho-relocs-with-addend.s ARM: when falling back to scattered relocs, keep the type. 2014-07-04 10:58:05 +00:00
mapping-within-section.s
mode-switch.s
mul-v4.s
multi-section-mapping.s
neon-abs-encoding.s
neon-absdiff-encoding.s
neon-add-encoding.s
neon-bitcount-encoding.s
neon-bitwise-encoding.s
neon-cmp-encoding.s
neon-convert-encoding.s
neon-crypto.s
neon-dup-encoding.s
neon-minmax-encoding.s
neon-mov-encoding.s
neon-mul-accum-encoding.s
neon-mul-encoding.s
neon-neg-encoding.s
neon-pairwise-encoding.s
neon-reciprocal-encoding.s
neon-reverse-encoding.s
neon-satshift-encoding.s
neon-shift-encoding.s
neon-shiftaccum-encoding.s
neon-shuffle-encoding.s
neon-sub-encoding.s
neon-table-encoding.s
neon-v8.s
neon-vld-encoding.s
neon-vld-vst-align.s
neon-vst-encoding.s
neon-vswp.s
neont2-abs-encoding.s
neont2-absdiff-encoding.s
neont2-add-encoding.s
neont2-bitcount-encoding.s
neont2-bitwise-encoding.s
neont2-cmp-encoding.s
neont2-convert-encoding.s
neont2-dup-encoding.s
neont2-minmax-encoding.s
neont2-mov-encoding.s
neont2-mul-accum-encoding.s
neont2-mul-encoding.s
neont2-neg-encoding.s
neont2-pairwise-encoding.s
neont2-reciprocal-encoding.s
neont2-reverse-encoding.s
neont2-satshift-encoding.s
neont2-shift-encoding.s
neont2-shiftaccum-encoding.s
neont2-shuffle-encoding.s
neont2-sub-encoding.s
neont2-table-encoding.s
neont2-vld-encoding.s
neont2-vst-encoding.s
not-armv4.s
obsolete-v8.s
pool.s
pr11877.s
relocated-mapping.s
simple-fp-encoding.s
single-precision-fp.s
symbol-variants-errors.s
symbol-variants.s Parse and create GOT_PREL relocations. 2014-04-29 13:42:02 +00:00
target-expressions.s
thumb2-b.w-encodingT4.s
thumb2-branches.s
thumb2-cbn-to-next-inst.s
thumb2-diagnostics.s Correction to assert statemtent to allow 32-bit unsigned numbers with the top bit set. 2014-05-01 11:37:44 +00:00
thumb2-ldrd.s
thumb2-mclass.s
thumb2-narrow-dp.ll
thumb2-pldw.s
thumb2-strd.s
thumb2be-b.w-encoding.s ARM: Additional test files for thumb fixups (checked with llvm-mv -show-encoding) 2014-05-13 17:06:51 +00:00
thumb2be-beq.w-encoding.s ARM: Additional test files for thumb fixups (checked with llvm-mv -show-encoding) 2014-05-13 17:06:51 +00:00
thumb2be-movt-encoding.s ARM: Additional test files for thumb fixups (checked with llvm-mv -show-encoding) 2014-05-13 17:06:51 +00:00
thumb2be-movw-encoding.s ARM: Additional test files for thumb fixups (checked with llvm-mv -show-encoding) 2014-05-13 17:06:51 +00:00
thumb_set-diagnostics.s
thumb_set.s Don't force symbols to be globals in .thumb_set. 2014-05-01 12:45:43 +00:00
thumb-diagnostics.s
thumb-far-jump.s
thumb-fp-armv8.s
thumb-hints.s
thumb-invalid-crypto.txt
thumb-neon-crypto.s
thumb-neon-v8.s
thumb-only-conditionals.s
thumb-shift-encoding.s
thumb-st_other.s
thumb-types.s ARM: take care not to set the ThumbFunc bit on TLS data symbols 2014-06-30 09:37:24 +00:00
thumb.s
thumbv7m.s
udf-arm-diagnostics.s ARM: implement support for the UDF mnemonic 2014-05-14 03:47:39 +00:00
udf-arm.s ARM: implement support for the UDF mnemonic 2014-05-14 03:47:39 +00:00
udf-thumb-2-diagnostics.s ARM: implement support for the UDF mnemonic 2014-05-14 03:47:39 +00:00
udf-thumb-2.s ARM: implement support for the UDF mnemonic 2014-05-14 03:47:39 +00:00
udf-thumb-diagnostics.s ARM: implement support for the UDF mnemonic 2014-05-14 03:47:39 +00:00
udf-thumb.s ARM: implement support for the UDF mnemonic 2014-05-14 03:47:39 +00:00
unwind-stack-diagnostics.s
v8_IT_manual.s
variant-diagnostics.s
vfp4.s
vfp-aliases-diagnostics.s
vfp-aliases.s
vmov-vmvn-byte-replicate.s
vmov-vmvn-illegal-cases.s
vorr-vbic-illegal-cases.s
vpush-vpop.s