[PATCH] rs6000: vec_rlnm fix to make builtin work according to ABI
authorCarl Love <carll@us.ibm.com>
Wed, 25 Mar 2020 23:33:37 +0000 (18:33 -0500)
committerCarl Love <carll@us.ibm.com>
Wed, 25 Mar 2020 23:33:57 +0000 (18:33 -0500)
gcc/ChangeLog

2020-03-25  Carl Love  <cel@us.ibm.com>

PR target/93819
* gcc/config/rs6000/altivec.h:
Fixed swapped arguments for vec_rlnm define.

gcc/config/rs6000/altivec.h

index e0b6547c61a4fdcf20f7dbea7ad11da81963b29b..5f1f5924488b94c95e354e1cecb799153275cfe4 100644 (file)
 #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