[all-commits] [llvm/llvm-project] 574d0c: [clang][test][RISCV] Fix precision of CHECK-NOT li...

Alex Bradbury via All-commits all-commits at lists.llvm.org
Tue Feb 14 08:59:07 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 574d0c2ec107cd3bfb753424150624276fe43813
      https://github.com/llvm/llvm-project/commit/574d0c2ec107cd3bfb753424150624276fe43813
  Author: Alex Bradbury <asb at igalia.com>
  Date:   2023-02-14 (Tue, 14 Feb 2023)

  Changed paths:
    M clang/test/Preprocessor/riscv-target-features.c

  Log Message:
  -----------
  [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 {{.*$}}`.




More information about the All-commits mailing list