Add regress for powerpc* AltiVec with subnormal floats
authorgkoehler <gkoehler@openbsd.org>
Sat, 22 Oct 2022 17:50:28 +0000 (17:50 +0000)
committergkoehler <gkoehler@openbsd.org>
Sat, 22 Oct 2022 17:50:28 +0000 (17:50 +0000)
commit1a8619957bf72939f00b6d60234974b173f9c70e
treeba9af449fa9a4d2110db099bdc0399c01d498f36
parent5c45b740173b07f96b647f6a42446c6b04858cac
Add regress for powerpc* AltiVec with subnormal floats

Older CPUs do an AltiVec assist trap, EXC_VECAST_G4 or EXC_VECAST_G5
in /sys/arch/powerpc/powerpc/trap.c; newer CPUs (like POWER9) don't
trap.  The trap's emulation of subnormal floats should give almost the
same results as the POWER9.

This test is only for powerpc or powerpc64 with AltiVec.  anton@
explained how to skip the test if we're on the wrong arch or don't
have AltiVec.

ok anton@
regress/sys/Makefile
regress/sys/altivec_ast/Makefile [new file with mode: 0644]
regress/sys/altivec_ast/vecast.c [new file with mode: 0644]