linux/tools/testing/selftests/riscv
Ignacio Encinas 79ba5c1c77
selftests: riscv: fix v_exec_initval_nolibc.c
Vector registers are zero initialized by the kernel. Stop accepting
"all ones" as a clean value.

Note that this was not working as expected given that
	value == 0xff
can be assumed to be always false by the compiler as value's range is
[-128, 127]. Both GCC (-Wtype-limits) and clang
(-Wtautological-constant-out-of-range-compare) warn about this.

Reviewed-by: Charlie Jenkins <charlie@rivosinc.com>
Tested-by: Charlie Jenkins <charlie@rivosinc.com>
Signed-off-by: Ignacio Encinas <ignacio@iencinas.com>
Link: https://lore.kernel.org/r/20250306-fix-v_exec_initval_nolibc-v2-1-97f9dc8a7faf@iencinas.com
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
2025-04-01 07:03:04 +00:00
..
abi riscv: selftests: Fix warnings pointer masking test 2024-12-17 14:23:18 -08:00
hwprobe RISC-V: selftests: Add TEST_ZICBOM into CBO tests 2025-03-18 12:44:17 +00:00
mm riscv: selftests: Remove mmap hint address checks 2024-08-29 06:03:28 -07:00
sigreturn riscv: selftests: Fix vsetivli args for clang 2024-07-03 13:04:54 -07:00
vector selftests: riscv: fix v_exec_initval_nolibc.c 2025-04-01 07:03:04 +00:00
Makefile riscv: selftests: Add a pointer masking test 2024-10-24 14:12:58 -07:00