File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,11 @@ FORCEINLINE void vec_load_pair(vec_f32 *dst, vec_f32 *src)
46
46
{
47
47
#ifdef USE_VECTOR_PAIRS
48
48
__vector_pair vy0p ;
49
+ #ifdef __clang__
50
+ vy0p = __builtin_vsx_lxvp (0L , (const __vector_pair * )(src ));
51
+ #else
49
52
vy0p = * (__vector_pair * )(src );
53
+ #endif
50
54
__builtin_vsx_disassemble_pair ((void * )(dst ), & vy0p );
51
55
#else
52
56
dst [0 ] = src [0 ];
@@ -59,7 +63,11 @@ FORCEINLINE void vec_store_pair(vec_f32 *dst, vec_f32 *src)
59
63
#ifdef USE_VECTOR_PAIRS
60
64
__vector_pair vy0p ;
61
65
__builtin_vsx_assemble_pair2 (& vy0p , (vec_uc8 )src [1 ], (vec_uc8 )src [0 ]);
66
+ #ifdef __clang__
67
+ __builtin_vsx_stxvp (vy0p , 0L , (__vector_pair * )(dst ));
68
+ #else
62
69
* (__vector_pair * )(dst ) = vy0p ;
70
+ #endif
63
71
#else
64
72
dst [0 ] = src [0 ];
65
73
dst [1 ] = src [1 ];
You can’t perform that action at this time.
0 commit comments