From 544db45f843804966bc673011c6637d0e142d6d4 Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Tue, 24 Jul 2018 22:05:55 +0000 Subject: [PATCH] Fix register usage in fabs(3) for powerpcspe This still used the FPU register definition, which gcc converted to using %r1 (stack register). Fix to use %r3. --- lib/libc/powerpcspe/gen/fabs.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/powerpcspe/gen/fabs.S b/lib/libc/powerpcspe/gen/fabs.S index da806f025394..1336745606de 100644 --- a/lib/libc/powerpcspe/gen/fabs.S +++ b/lib/libc/powerpcspe/gen/fabs.S @@ -31,7 +31,7 @@ __FBSDID("$FreeBSD$"); * double fabs(double) */ ENTRY(fabs) - efdabs %f1,%f1 + efdabs %r3,%r3 blr END(fabs)