[clang][test][RISCV] Fix precision of CHECK-NOT lines in riscv-target-features.c
authorAlex Bradbury <asb@igalia.com>
Tue, 14 Feb 2023 16:52:26 +0000 (16:52 +0000)
committerAlex Bradbury <asb@igalia.com>
Tue, 14 Feb 2023 16:55:03 +0000 (16:55 +0000)
commit574d0c2ec107cd3bfb753424150624276fe43813
treee288c871a7342ce8cbe5dfad4affd314d656e560
parentf4d8b8781de9b0efbaf79621ff66c16964bb1df2
[clang][test][RISCV] Fix precision of CHECK-NOT lines in riscv-target-features.c

`CHECK-NOT: __riscv_f 2000000{{$}}` was overly precise, in that it
wouldn't test what we want it to if the version of the F extension was
bumped. Meanwhile, lines like `CHECK-NOT: __riscv_d` were too imprecise,
as they would match any define with that prefix (e.g.
`__riscv_dsomethingelse`).

This patch just updates these lines to check for `__riscv_foo {{.*$}}`.
clang/test/Preprocessor/riscv-target-features.c