Skip to content

Commit

Permalink
[Clang][RISCV] test clang driver about rvv 0.7.1 target feature
Browse files Browse the repository at this point in the history
  • Loading branch information
imkiva committed Jul 24, 2023
1 parent 8c0c414 commit 38976e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clang/test/Driver/riscv-arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,10 @@
// RUN: FileCheck -check-prefix=RV32-V-GOODVERS %s
// RV32-V-GOODVERS: "-target-feature" "+v"

// RUN: %clang --target=riscv32-unknown-elf -march=rv32iv0p7 -### %s -c 2>&1 | \
// RUN: FileCheck -check-prefix=RV32-V0P7-GOODVERS %s
// RV32-V0P7-GOODVERS: "-target-feature" "+v0p7"

// RUN: %clang --target=riscv32-unknown-elf -march=rv32iv1p0_zvl32b0p1 -### %s -c 2>&1 | \
// RUN: FileCheck -check-prefix=RV32-ZVL-BADVERS %s
// RV32-ZVL-BADVERS: error: invalid arch name 'rv32iv1p0_zvl32b0p1'
Expand Down

0 comments on commit 38976e2

Please sign in to comment.