PowerPC SPE targets don't have spe
target feature enabled
#138960
Labels
A-target-feature
Area: Enabling/disabling target features like AVX, Neon, etc.
C-bug
Category: This is a bug.
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
O-PowerPC
Target: PowerPC processors
I tried this code when targeting any of the PowerPC SPE targets such as
powerpc-unknown-linux-muslspe
(compiler explorer):I expected to see this happen: The assembly to use SPE instructions as this is an SPE target.
Instead, this happened: The assembly uses regular PowerPC FPU floating point instructions, as none of the three
powerpc-*spe
targets actually have thespe
target feature enabled. According to the Debian PowerPCSPEPort wiki page, PowerPC SPE lacks the standard PowerPC FPU, and the Signal Processing Engine (SPE) Programming Environments Manual doesn't listfadds
(which the targets currently compile thex + y
to) as an SPE instruction, so the status quo is almost certainly incorrect.cc @BKPepe as target maintainer of
powerpc-unknown-linux-muslspe
. Also cc @glaubitz who addedpowerpc-unknown-linux-gnuspe
in #48484 and @BaoshanPang who addedpowerpc-wrs-vxworks-spe
in #61946, as neither of those two targets have any target maintainers.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: