Browse Source
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.binutils-2_25-branch
7 changed files with 35 additions and 6 deletions
@ -0,0 +1,5 @@ |
|||
Hex dump of section '\.PPC\.EMB\.apuinfo': |
|||
0x00000000 (?:00000008|08000000) (?:00000020|20000000) (?:00000002|02000000) 41505569 .*APUi |
|||
0x00000010 6e666f00 (?:00420001|01004200) (?:00430001|01004300) (?:00410001|01004100) nfo.* |
|||
0x00000020 (?:01020001|01000201) (?:01040001|01000401) (?:01010001|01000101) (?:00400001|01004000) .* |
|||
0x00000030 01000001 .* |
|||
@ -0,0 +1,4 @@ |
|||
.text |
|||
.global apuinfo_vle |
|||
apuinfo_vle: |
|||
se_blr |
|||
Loading…
Reference in new issue