Changeset View
Changeset View
Standalone View
Standalone View
clang/test/Driver/riscv-arch.c
Show First 20 Lines • Show All 446 Lines • ▼ Show 20 Lines | |||||
// RV32-EXPERIMENTAL-ZBB-ZBP-UNDERSCORE: error: invalid arch name 'rv32izbb1p0zbp0p93', unsupported version number 0.93 for extension 'zbb1p0zbp' | // RV32-EXPERIMENTAL-ZBB-ZBP-UNDERSCORE: error: invalid arch name 'rv32izbb1p0zbp0p93', unsupported version number 0.93 for extension 'zbb1p0zbp' | ||||
// RUN: %clang --target=riscv32-unknown-elf -march=rv32izba1p0 -### %s \ | // RUN: %clang --target=riscv32-unknown-elf -march=rv32izba1p0 -### %s \ | ||||
// RUN: -fsyntax-only 2>&1 | FileCheck -check-prefix=RV32-ZBA %s | // RUN: -fsyntax-only 2>&1 | FileCheck -check-prefix=RV32-ZBA %s | ||||
// RUN: %clang --target=riscv32-unknown-elf -march=rv32izba -### %s \ | // RUN: %clang --target=riscv32-unknown-elf -march=rv32izba -### %s \ | ||||
// RUN: -fsyntax-only 2>&1 | FileCheck -check-prefix=RV32-ZBA %s | // RUN: -fsyntax-only 2>&1 | FileCheck -check-prefix=RV32-ZBA %s | ||||
// RV32-ZBA: "-target-feature" "+zba" | // RV32-ZBA: "-target-feature" "+zba" | ||||
// RUN: %clang -target riscv32-unknown-elf -march=rv32izbpbo -### %s -c 2>&1 | \ | |||||
// RUN: FileCheck -check-prefix=RV32-EXPERIMENTAL-ZBPBO-NOFLAG %s | |||||
// RV32-EXPERIMENTAL-ZBPBO-NOFLAG: error: invalid arch name 'rv32izbpbo' | |||||
// RV32-EXPERIMENTAL-ZBPBO-NOFLAG: requires '-menable-experimental-extensions' | |||||
// RUN: %clang -target riscv32-unknown-elf -march=rv32izbpbo -menable-experimental-extensions -### %s -c 2>&1 | \ | |||||
// RUN: FileCheck -check-prefix=RV32-EXPERIMENTAL-ZBPBO-NOVERS %s | |||||
// RV32-EXPERIMENTAL-ZBPBO-NOVERS: error: invalid arch name 'rv32izbpbo' | |||||
// RV32-EXPERIMENTAL-ZBPBO-NOVERS: experimental extension requires explicit version number | |||||
// RUN: %clang -target riscv32-unknown-elf -march=rv32izbpbo0p1 -menable-experimental-extensions -### %s -c 2>&1 | \ | |||||
// RUN: FileCheck -check-prefix=RV32-EXPERIMENTAL-ZBPBO-BADVERS %s | |||||
// RV32-EXPERIMENTAL-ZBPBO-BADVERS: error: invalid arch name 'rv32izbpbo0p1' | |||||
// RV32-EXPERIMENTAL-ZBPBO-BADVERS: unsupported version number 0.1 for experimental extension | |||||
// RUN: %clang -target riscv32-unknown-elf -march=rv32izbpbo0p911 -menable-experimental-extensions -### %s -c 2>&1 | \ | |||||
// RUN: FileCheck -check-prefix=RV32-EXPERIMENTAL-ZBPBO-GOODVERS %s | |||||
// RV32-EXPERIMENTAL-ZBPBO-GOODVERS: "-target-feature" "+experimental-zbpbo" | |||||
// RUN: %clang --target=riscv32-unknown-elf -march=rv32iv0p1 -### %s -c 2>&1 | \ | // RUN: %clang --target=riscv32-unknown-elf -march=rv32iv0p1 -### %s -c 2>&1 | \ | ||||
// RUN: FileCheck -check-prefix=RV32-V-BADVERS %s | // RUN: FileCheck -check-prefix=RV32-V-BADVERS %s | ||||
// RV32-V-BADVERS: error: invalid arch name 'rv32iv0p1' | // RV32-V-BADVERS: error: invalid arch name 'rv32iv0p1' | ||||
// RV32-V-BADVERS: unsupported version number 0.1 for extension 'v' | // RV32-V-BADVERS: unsupported version number 0.1 for extension 'v' | ||||
// RUN: %clang --target=riscv32-unknown-elf -march=rv32iv1p0 -### %s -c 2>&1 | \ | // RUN: %clang --target=riscv32-unknown-elf -march=rv32iv1p0 -### %s -c 2>&1 | \ | ||||
// RUN: FileCheck -check-prefix=RV32-V-GOODVERS %s | // RUN: FileCheck -check-prefix=RV32-V-GOODVERS %s | ||||
// RV32-V-GOODVERS: "-target-feature" "+v" | // RV32-V-GOODVERS: "-target-feature" "+v" | ||||
▲ Show 20 Lines • Show All 119 Lines • Show Last 20 Lines |