RISC-V: testsuite: Fix strcmp-run.c test.
commitb1474da1bb9cc829cbf597f9a51393795108419f
authorRobin Dapp <rdapp@ventanamicro.com>
Mon, 11 Dec 2023 13:16:04 +0000 (11 14:16 +0100)
committerRobin Dapp <rdapp@ventanamicro.com>
Mon, 11 Dec 2023 14:31:59 +0000 (11 15:31 +0100)
tree25fc1c72ab6dfde89878566af1e1dfc171344f91
parent055f08feee3424a29403047a7049af467f2b26cd
RISC-V: testsuite: Fix strcmp-run.c test.

This fixes expectations in the strcmp-run test which would sometimes
fail with newlib.  The test expects libc strcmp return values and
asserts the vectorized result is similar to those.  Therefore hard-code
the expected results instead of relying on a strcmp call.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/autovec/builtin/strcmp-run.c: Adjust test
expectation and target selector.
* gcc.target/riscv/rvv/autovec/builtin/strlen-run.c: Adjust
target selector.
* gcc.target/riscv/rvv/autovec/builtin/strncmp-run.c: Ditto.
gcc/testsuite/gcc.target/riscv/rvv/autovec/builtin/strcmp-run.c
gcc/testsuite/gcc.target/riscv/rvv/autovec/builtin/strlen-run.c
gcc/testsuite/gcc.target/riscv/rvv/autovec/builtin/strncmp-run.c