s390: Fix expansion of vec_step

Message ID 20231204101408.570468-1-stefansf@linux.ibm.com
State Committed
Commit cd3c1cfde73ac946be218eaa5d1fdf4e0cb2d61b
Headers
Series s390: Fix expansion of vec_step |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gcc_build--master-arm success Testing passed
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_gcc_check--master-aarch64 success Testing passed

Commit Message

Stefan Schulze Frielinghaus Dec. 4, 2023, 10:14 a.m. UTC
  Add missing "s390" while expanding vec_step to __builtin_s390_vec_step.

gcc/ChangeLog:

	* config/s390/vecintrin.h (vec_step): Expand vec_step to
	__builtin_s390_vec_step.
---
 gcc/config/s390/vecintrin.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Comments

Andreas Krebbel Dec. 7, 2023, 7:53 a.m. UTC | #1
On 12/4/23 11:14, Stefan Schulze Frielinghaus wrote:
> Add missing "s390" while expanding vec_step to __builtin_s390_vec_step.
> 
> gcc/ChangeLog:
> 
> 	* config/s390/vecintrin.h (vec_step): Expand vec_step to
> 	__builtin_s390_vec_step.

Ok, Thanks!

Andreas
  

Patch

diff --git a/gcc/config/s390/vecintrin.h b/gcc/config/s390/vecintrin.h
index 133492c5b19..7cd1db57aec 100644
--- a/gcc/config/s390/vecintrin.h
+++ b/gcc/config/s390/vecintrin.h
@@ -59,8 +59,8 @@  along with GCC; see the file COPYING3.  If not see
 				    | __VEC_CLASS_FP_INFINITY)
 
 /* This also accepts a type for its parameter, so it is not enough
-   to #define vec_step to __builtin_vec_step.  */
-#define vec_step(x) __builtin_vec_step (* (__typeof__ (x) *) 0)
+   to #define vec_step to __builtin_s390_vec_step.  */
+#define vec_step(x) __builtin_s390_vec_step (* (__typeof__ (x) *) 0)
 
 static inline int
 __lcbb(const void *ptr, int bndry)