diff options
author | Marius Hillenbrand <mhillen@linux.ibm.com> | 2021-06-16 18:26:48 +0200 |
---|---|---|
committer | Marius Hillenbrand <mhillen@linux.ibm.com> | 2021-06-17 11:14:23 +0200 |
commit | a4fc63e0c3c6c7b895225c883137d152743be7fc (patch) | |
tree | ad0367c9175c6c3f3beff9bdd9a1e977c24d59ca /gcc/config/s390 | |
parent | 53c55d3204a69c4cce4cc5a982c42cec91178346 (diff) | |
download | gcc-a4fc63e0c3c6c7b895225c883137d152743be7fc.zip gcc-a4fc63e0c3c6c7b895225c883137d152743be7fc.tar.gz gcc-a4fc63e0c3c6c7b895225c883137d152743be7fc.tar.bz2 |
IBM Z: Fix vector intrinsics vec_double and vec_floate
Fix the mapping of vec_double and vec_floate to builtins.
gcc/ChangeLog:
PR target/100871
* config/s390/vecintrin.h (vec_doublee): Fix to use
__builtin_s390_vflls.
(vec_floate): Fix to use __builtin_s390_vflrd.
gcc/testsuite/ChangeLog:
* gcc.target/s390/zvector/vec-doublee.c: New test.
* gcc.target/s390/zvector/vec-floate.c: New test.
Diffstat (limited to 'gcc/config/s390')
-rw-r--r-- | gcc/config/s390/vecintrin.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/s390/vecintrin.h b/gcc/config/s390/vecintrin.h index 6bd26f8..9a3f7c3 100644 --- a/gcc/config/s390/vecintrin.h +++ b/gcc/config/s390/vecintrin.h @@ -109,8 +109,8 @@ __lcbb(const void *ptr, int bndry) #define vec_rint(X) __builtin_s390_vfi((X), 0, 0) #define vec_roundc(X) __builtin_s390_vfi((X), 4, 0) #define vec_round(X) __builtin_s390_vfi((X), 4, 4) -#define vec_doublee(X) __builtin_s390_vfll((X)) -#define vec_floate(X) __builtin_s390_vflr((X), 0, 0) +#define vec_doublee(X) __builtin_s390_vflls((X)) +#define vec_floate(X) __builtin_s390_vflrd((X), 0, 0) #define vec_load_len_r(X,L) \ (__vector unsigned char)__builtin_s390_vlrlr((L),(X)) #define vec_store_len_r(X,Y,L) \ |