From e97929e20b2f52e6cfc046c1302324d1b24d95e3 Mon Sep 17 00:00:00 2001 From: Carl Love Date: Wed, 25 Mar 2020 18:33:37 -0500 Subject: [PATCH] [PATCH] rs6000: vec_rlnm fix to make builtin work according to ABI gcc/ChangeLog 2020-03-25 Carl Love PR target/93819 * gcc/config/rs6000/altivec.h: Fixed swapped arguments for vec_rlnm define. --- gcc/config/rs6000/altivec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/rs6000/altivec.h b/gcc/config/rs6000/altivec.h index e0b6547c61a..5f1f5924488 100644 --- a/gcc/config/rs6000/altivec.h +++ b/gcc/config/rs6000/altivec.h @@ -182,7 +182,7 @@ #define vec_recipdiv __builtin_vec_recipdiv #define vec_rlmi __builtin_vec_rlmi #define vec_vrlnm __builtin_vec_rlnm -#define vec_rlnm(a,b,c) (__builtin_vec_rlnm((a),((b)<<8)|(c))) +#define vec_rlnm(a,b,c) (__builtin_vec_rlnm((a),((c)<<8)|(b))) #define vec_rsqrt __builtin_vec_rsqrt #define vec_rsqrte __builtin_vec_rsqrte #define vec_signed __builtin_vec_vsigned -- 2.30.2