Skip to content

Commit b9b3265

Browse files
committed
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 <[email protected]>
1 parent a1616a0 commit b9b3265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/zarch/gemm_vec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static inline vector_float vec_load_hinted(FLOAT const *restrict a) {
172172
vector_float const *restrict addr = (vector_float const *restrict)a;
173173
vector_float y;
174174

175-
#if __GNUC__ < 9
175+
#if __GNUC__ < 9 && !defined(__clang__)
176176
// hex-encode vl %[out],%[addr],3
177177
asm(".insn vrx,0xe70000003006,%[out],%[addr],3"
178178
: [ out ] "=v"(y)

0 commit comments

Comments
 (0)