Power/GAS: Don't set VLE annotation for non-VLE processors/instructions
authorMaciej W. Rozycki <macro@codesourcery.com>
Fri, 22 Aug 2014 15:52:20 +0000 (16:52 +0100)
committerMaciej W. Rozycki <macro@codesourcery.com>
Fri, 22 Aug 2014 15:52:20 +0000 (16:52 +0100)
commitfbd940576f6c0891cebb4173f64968b7c50ed642
tree1825bc914bffb212d3c1afff4f5cd5ac63df715c
parent84919466a87f5ce10cc1af8ef51d7ab9ea66ff5e
Power/GAS: Don't set VLE annotation for non-VLE processors/instructions

Only set the VLE flag if the instruction has been pulled via the VLE
instruction set.  This way the flag is guaranteed to be set for VLE-only
instructions or for VLE-only processors, however it'll remain clear for
dual-mode instructions on dual-mode and, more importantly, standard-mode
processors.

gas/
* config/tc-ppc.c (md_assemble): Only set the PPC_APUINFO_VLE
flag if both the processor and opcode flags match.

ld/testsuite/
* ld-powerpc/apuinfo-vle.rd: New test.
* ld-powerpc/apuinfo-vle.s: New test source.
* ld-powerpc/apuinfo.rd: Adjust according to GAS PPC_APUINFO_VLE
handling change.
* ld-powerpc/powerpc.exp: Run the new test.
gas/ChangeLog
gas/config/tc-ppc.c
ld/testsuite/ChangeLog
ld/testsuite/ld-powerpc/apuinfo-vle.rd [new file with mode: 0644]
ld/testsuite/ld-powerpc/apuinfo-vle.s [new file with mode: 0644]
ld/testsuite/ld-powerpc/apuinfo.rd
ld/testsuite/ld-powerpc/powerpc.exp