From: Carl Love Date: Wed, 25 Mar 2020 23:33:37 +0000 (-0500) Subject: [PATCH] rs6000: vec_rlnm fix to make builtin work according to ABI X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e97929e20b2f52e6cfc046c1302324d1b24d95e3;p=gcc.git [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. --- 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