Clang Project

clang_source_code/test/Driver/riscv-features.c
1// RUN: %clang -target riscv32-unknown-elf -### %s -fsyntax-only 2>&1 | FileCheck %s
2// RUN: %clang -target riscv64-unknown-elf -### %s -fsyntax-only 2>&1 | FileCheck %s
3
4// CHECK: fno-signed-char
5
6// RUN: %clang -target riscv32-unknown-elf -### %s -mrelax 2>&1 | FileCheck %s -check-prefix=RELAX
7// RUN: %clang -target riscv32-unknown-elf -### %s -mno-relax 2>&1 | FileCheck %s -check-prefix=NO-RELAX
8// RUN: %clang -target riscv32-unknown-elf -### %s 2>&1 | FileCheck %s -check-prefix=DEFAULT
9
10// RELAX: "-target-feature" "+relax"
11// NO-RELAX: "-target-feature" "-relax"
12// DEFAULT: "-target-feature" "+relax"
13// DEFAULT-NOT: "-target-feature" "-relax"
14