about summary refs log tree commit diff
path: root/Makerules
diff options
context:
space:
mode:
authorPaul A. Clarke <pc@us.ibm.com>2021-09-14 13:13:33 -0500
committerPaul A. Clarke <pc@us.ibm.com>2021-09-20 16:52:38 -0500
commit064b475a2e5662b6b3973fabf505eade86e61510 (patch)
treee96527d542ec7e845349f7dfaefe968337af321e /Makerules
parent7e84ac3a3ac9e7c4dc10de2ce65db971b9650e4d (diff)
downloadglibc-064b475a2e5662b6b3973fabf505eade86e61510.tar.gz
glibc-064b475a2e5662b6b3973fabf505eade86e61510.tar.xz
glibc-064b475a2e5662b6b3973fabf505eade86e61510.zip
powerpc: Fix unrecognized instruction errors with recent GCC
Recent binutils commit b25f942e18d6ecd7ec3e2d2e9930eb4f996c258a
changes the behavior of `.machine` directives to override, rather
than augment, the base CPU. This can result in _reduced_ functionality
when, for example, compiling for default machine "power8", but explicitly
asking for ".machine power5", which loses Altivec instructions.

In tst-ucontext-ppc64-vscr.c, while the instructions provoking the new
error messages are bracketed by ".machine power5", which is ostensibly
Power ISA 2.03 (POWER5), the POWER5 processor did not support the
VSX subset, so these instructions are not recognized as "power5".

Error: unrecognized opcode: `vspltisb'
Error: unrecognized opcode: `vpkuwus'
Error: unrecognized opcode: `mfvscr'
Error: unrecognized opcode: `stvx'

Manually adding the VSX subset via ".machine altivec" is sufficient.

Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Diffstat (limited to 'Makerules')
0 files changed, 0 insertions, 0 deletions