llvm-6502/test/MC
Bill Wendling ef920552d4 Add .pushsection', .popsection', and `.previous' directives to Darwin ASM.
There are situations where inline ASM may want to change the section -- for
instance, to create a variable in the .data section. However, it cannot do this
without (potentially) restoring to the wrong section. E.g.:

  asm volatile (".section __DATA, __data\n\t"
                ".globl _fnord\n\t"
                "_fnord: .quad 1f\n\t"
                ".text\n\t"
                "1:" :::);

This may be wrong if this is inlined into a function that has a "section"
attribute. The user should use `.pushsection' and `.popsection' here instead.

The addition of `.previous' is added for completeness.
<rdar://problem/12048387>


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161477 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-08 06:30:30 +00:00
..
ARM Support fpv4 for ARM Cortex-M4. 2012-08-02 08:35:55 +00:00
AsmParser Keep empty assembly macro argument values in the middle of the list. 2012-07-30 22:44:17 +00:00
COFF Continue cleanup of LIT, getting rid of the remaining artifacts from dejagnu 2012-03-25 09:02:19 +00:00
Disassembler Fix #13035, a bug around Thumb instruction LDRD/STRD with negative #0 offset index issue. 2012-08-02 08:29:50 +00:00
ELF ELF: Add support for the asm .version directive. 2012-05-12 14:30:47 +00:00
MachO Add .pushsection', .popsection', and `.previous' directives to Darwin ASM. 2012-08-08 06:30:30 +00:00
MBlaze Continue cleanup of LIT, getting rid of the remaining artifacts from dejagnu 2012-03-25 09:02:19 +00:00
Mips The define for 64 bit sign extension neglected to 2012-08-07 00:35:22 +00:00
X86 Make l/q suffixes on AVX forms of scalar convert instructions consistent with their non-AVX forms. 2012-07-26 07:48:28 +00:00