|
7 | 7 | // MCPU-ROCKET64: "-nostdsysteminc" "-target-cpu" "rocket-rv64"
|
8 | 8 | // MCPU-ROCKET64: "-target-feature" "+64bit"
|
9 | 9 |
|
10 |
| -// RUN: %clang -target riscv32 -### -c %s 2>&1 -mcpu=bullet-rv32 | FileCheck -check-prefix=MCPU-BULLET32 %s |
11 |
| -// MCPU-BULLET32: "-nostdsysteminc" "-target-cpu" "bullet-rv32" |
| 10 | +// RUN: %clang -target riscv32 -### -c %s 2>&1 -mcpu=sifive-7-rv32 | FileCheck -check-prefix=MCPU-SIFIVE7-32 %s |
| 11 | +// MCPU-SIFIVE7-32: "-nostdsysteminc" "-target-cpu" "sifive-7-rv32" |
12 | 12 |
|
13 |
| -// RUN: %clang -target riscv64 -### -c %s 2>&1 -mcpu=bullet-rv64 | FileCheck -check-prefix=MCPU-BULLET64 %s |
14 |
| -// MCPU-BULLET64: "-nostdsysteminc" "-target-cpu" "bullet-rv64" |
15 |
| -// MCPU-BULLET64: "-target-feature" "+64bit" |
| 13 | +// RUN: %clang -target riscv64 -### -c %s 2>&1 -mcpu=sifive-7-rv64 | FileCheck -check-prefix=MCPU-SIFIVE7-64 %s |
| 14 | +// MCPU-SIFIVE7-64: "-nostdsysteminc" "-target-cpu" "sifive-7-rv64" |
| 15 | +// MCPU-SIFIVE7-64: "-target-feature" "+64bit" |
16 | 16 |
|
17 | 17 | // mcpu with default march
|
18 | 18 | // RUN: %clang -target riscv64 -### -c %s 2>&1 -mcpu=sifive-u54 | FileCheck -check-prefix=MCPU-SIFIVE-U54 %s
|
|
28 | 28 | // MCPU-ABI-SIFIVE-U54: "-target-feature" "+c" "-target-feature" "+64bit"
|
29 | 29 | // MCPU-ABI-SIFIVE-U54: "-target-abi" "lp64"
|
30 | 30 |
|
| 31 | +// mcpu with default march |
| 32 | +// RUN: %clang -target riscv64 -### -c %s 2>&1 -mcpu=sifive-e76 | FileCheck -check-prefix=MCPU-SIFIVE-E76 %s |
| 33 | +// MCPU-SIFIVE-E76: "-nostdsysteminc" "-target-cpu" "sifive-e76" |
| 34 | +// MCPU-SIFIVE-E76: "-target-feature" "+m" "-target-feature" "+a" "-target-feature" "+f" "-target-feature" "+d" |
| 35 | +// MCPU-SIFIVE-E76: "-target-feature" "+c" |
| 36 | +// MCPU-SIFIVE-E76: "-target-abi" "lp64d" |
| 37 | + |
| 38 | +// mcpu with mabi option |
| 39 | +// RUN: %clang -target riscv64 -### -c %s 2>&1 -mcpu=sifive-u74 -mabi=lp64 | FileCheck -check-prefix=MCPU-ABI-SIFIVE-U74 %s |
| 40 | +// MCPU-ABI-SIFIVE-U74: "-nostdsysteminc" "-target-cpu" "sifive-u74" |
| 41 | +// MCPU-ABI-SIFIVE-U74: "-target-feature" "+m" "-target-feature" "+a" "-target-feature" "+f" "-target-feature" "+d" |
| 42 | +// MCPU-ABI-SIFIVE-U74: "-target-feature" "+c" "-target-feature" "+64bit" |
| 43 | +// MCPU-ABI-SIFIVE-U74: "-target-abi" "lp64" |
| 44 | + |
31 | 45 | // march overwrite mcpu's default march
|
32 | 46 | // RUN: %clang -target riscv32 -### -c %s 2>&1 -mcpu=sifive-e31 -march=rv32imc | FileCheck -check-prefix=MCPU-MARCH %s
|
33 | 47 | // MCPU-MARCH: "-nostdsysteminc" "-target-cpu" "sifive-e31" "-target-feature" "+m" "-target-feature" "+c"
|
|
0 commit comments