s390x: avoid inline assembly for vector loads for clang

... since clang does not support the instruction format for inline
assembly and also it is not required for current versions of clang.

Signed-off-by: Marius Hillenbrand <mhillen@linux.ibm.com>
This commit is contained in:
Marius Hillenbrand 2020-09-01 12:04:28 +02:00
parent a1616a0b86
commit b9b3265ec8
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ static inline vector_float vec_load_hinted(FLOAT const *restrict a) {
vector_float const *restrict addr = (vector_float const *restrict)a; vector_float const *restrict addr = (vector_float const *restrict)a;
vector_float y; vector_float y;
#if __GNUC__ < 9 #if __GNUC__ < 9 && !defined(__clang__)
// hex-encode vl %[out],%[addr],3 // hex-encode vl %[out],%[addr],3
asm(".insn vrx,0xe70000003006,%[out],%[addr],3" asm(".insn vrx,0xe70000003006,%[out],%[addr],3"
: [ out ] "=v"(y) : [ out ] "=v"(y)