Skip to content

Commit 3582ce0

Browse files
charlie-rivospalmer-dabbelt
authored andcommitted
riscv: selftests: Fix vsetivli args for clang
Clang does not support implicit LMUL in the vset* instruction sequences. Introduce an explicit LMUL in the vsetivli instruction. Signed-off-by: Charlie Jenkins <[email protected]> Fixes: 9d5328e ("riscv: selftests: Add signal handling vector tests") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 210ac17 commit 3582ce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/riscv/sigreturn/sigreturn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static int vector_sigreturn(int data, void (*handler)(int, siginfo_t *, void *))
5151

5252
asm(".option push \n\
5353
.option arch, +v \n\
54-
vsetivli x0, 1, e32, ta, ma \n\
54+
vsetivli x0, 1, e32, m1, ta, ma \n\
5555
vmv.s.x v0, %1 \n\
5656
# Generate SIGSEGV \n\
5757
lw a0, 0(x0) \n\

0 commit comments

Comments
 (0)