|
9 | 9 |
|
10 | 10 | // RUN: %clang --target=riscv32 -### -c %s 2>&1 -mcpu=syntacore-scr1-base | FileCheck -check-prefix=MCPU-SYNTACORE-SCR1-BASE %s |
11 | 11 | // MCPU-SYNTACORE-SCR1-BASE: "-target-cpu" "syntacore-scr1-base" |
12 | | -// MCPU-SYNTACORE-SCR1-BASE: "-target-feature" "+c" "-target-feature" "-64bit" |
| 12 | +// MCPU-SYNTACORE-SCR1-BASE: "-target-feature" "+c" |
| 13 | +// MCPU-SYNTACORE-SCR1-BASE: "-target-feature" "-64bit" |
13 | 14 | // MCPU-SYNTACORE-SCR1-BASE: "-target-abi" "ilp32" |
14 | 15 |
|
15 | 16 | // RUN: %clang --target=riscv32 -### -c %s 2>&1 -mcpu=syntacore-scr1-max | FileCheck -check-prefix=MCPU-SYNTACORE-SCR1-MAX %s |
16 | 17 | // MCPU-SYNTACORE-SCR1-MAX: "-target-cpu" "syntacore-scr1-max" |
17 | | -// MCPU-SYNTACORE-SCR1-MAX: "-target-feature" "+m" "-target-feature" "+c" "-target-feature" "-64bit" |
| 18 | +// MCPU-SYNTACORE-SCR1-MAX: "-target-feature" "+m" "-target-feature" "+c" |
| 19 | +// MCPU-SYNTACORE-SCR1-MAX: "-target-feature" "-64bit" |
18 | 20 | // MCPU-SYNTACORE-SCR1-MAX: "-target-abi" "ilp32" |
19 | 21 |
|
20 | 22 | // We cannot check much for -mcpu=native, but it should be replaced by a valid CPU string. |
|
80 | 82 | // RUN: %clang --target=riscv64 -### -c %s 2>&1 -mcpu=sifive-s21 -mabi=lp64 | FileCheck -check-prefix=MCPU-ABI-SIFIVE-S21 %s |
81 | 83 | // MCPU-ABI-SIFIVE-S21: "-nostdsysteminc" "-target-cpu" "sifive-s21" |
82 | 84 | // MCPU-ABI-SIFIVE-S21: "-target-feature" "+m" "-target-feature" "+a" |
83 | | -// MCPU-ABI-SIFIVE-S21: "-target-feature" "+c" "-target-feature" "+64bit" |
| 85 | +// MCPU-ABI-SIFIVE-S21: "-target-feature" "+c" |
| 86 | +// MCPU-ABI-SIFIVE-S21: "-target-feature" "+64bit" |
84 | 87 | // MCPU-ABI-SIFIVE-S21: "-target-abi" "lp64" |
85 | 88 |
|
86 | 89 | // mcpu with mabi option |
87 | 90 | // RUN: %clang --target=riscv64 -### -c %s 2>&1 -mcpu=sifive-s51 -mabi=lp64 | FileCheck -check-prefix=MCPU-ABI-SIFIVE-S51 %s |
88 | 91 | // MCPU-ABI-SIFIVE-S51: "-nostdsysteminc" "-target-cpu" "sifive-s51" |
89 | 92 | // MCPU-ABI-SIFIVE-S51: "-target-feature" "+m" "-target-feature" "+a" |
90 | | -// MCPU-ABI-SIFIVE-S51: "-target-feature" "+c" "-target-feature" "+64bit" |
| 93 | +// MCPU-ABI-SIFIVE-S51: "-target-feature" "+c" |
| 94 | +// MCPU-ABI-SIFIVE-S51: "-target-feature" "+64bit" |
91 | 95 | // MCPU-ABI-SIFIVE-S51: "-target-abi" "lp64" |
92 | 96 |
|
93 | 97 | // mcpu with default march |
94 | 98 | // RUN: %clang --target=riscv64 -### -c %s 2>&1 -mcpu=sifive-s54 | FileCheck -check-prefix=MCPU-SIFIVE-S54 %s |
95 | 99 | // MCPU-SIFIVE-S54: "-nostdsysteminc" "-target-cpu" "sifive-s54" |
96 | 100 | // MCPU-SIFIVE-S54: "-target-feature" "+m" "-target-feature" "+a" "-target-feature" "+f" "-target-feature" "+d" |
97 | | -// MCPU-SIFIVE-S54: "-target-feature" "+c" "-target-feature" "+64bit" |
| 101 | +// MCPU-SIFIVE-S54: "-target-feature" "+c" |
| 102 | +// MCPU-SIFIVE-S54: "-target-feature" "+64bit" |
98 | 103 | // MCPU-SIFIVE-S54: "-target-abi" "lp64d" |
99 | 104 |
|
100 | 105 | // mcpu with mabi option |
101 | 106 | // RUN: %clang --target=riscv64 -### -c %s 2>&1 -mcpu=sifive-s76 | FileCheck -check-prefix=MCPU-SIFIVE-S76 %s |
102 | 107 | // MCPU-SIFIVE-S76: "-nostdsysteminc" "-target-cpu" "sifive-s76" |
103 | 108 | // MCPU-SIFIVE-S76: "-target-feature" "+m" "-target-feature" "+a" "-target-feature" "+f" "-target-feature" "+d" |
104 | | -// MCPU-SIFIVE-S76: "-target-feature" "+c" "-target-feature" "+64bit" |
| 109 | +// MCPU-SIFIVE-S76: "-target-feature" "+c" |
| 110 | +// MCPU-SIFIVE-S76: "-target-feature" "+64bit" |
105 | 111 | // MCPU-SIFIVE-S76: "-target-abi" "lp64d" |
106 | 112 |
|
107 | 113 | // mcpu with default march |
108 | 114 | // RUN: %clang --target=riscv64 -### -c %s 2>&1 -mcpu=sifive-u54 | FileCheck -check-prefix=MCPU-SIFIVE-U54 %s |
109 | 115 | // MCPU-SIFIVE-U54: "-nostdsysteminc" "-target-cpu" "sifive-u54" |
110 | 116 | // MCPU-SIFIVE-U54: "-target-feature" "+m" "-target-feature" "+a" "-target-feature" "+f" "-target-feature" "+d" |
111 | | -// MCPU-SIFIVE-U54: "-target-feature" "+c" "-target-feature" "+64bit" |
| 117 | +// MCPU-SIFIVE-U54: "-target-feature" "+c" |
| 118 | +// MCPU-SIFIVE-U54: "-target-feature" "+64bit" |
112 | 119 | // MCPU-SIFIVE-U54: "-target-abi" "lp64d" |
113 | 120 |
|
114 | 121 | // mcpu with mabi option |
115 | 122 | // RUN: %clang --target=riscv64 -### -c %s 2>&1 -mcpu=sifive-u54 -mabi=lp64 | FileCheck -check-prefix=MCPU-ABI-SIFIVE-U54 %s |
116 | 123 | // MCPU-ABI-SIFIVE-U54: "-nostdsysteminc" "-target-cpu" "sifive-u54" |
117 | 124 | // MCPU-ABI-SIFIVE-U54: "-target-feature" "+m" "-target-feature" "+a" "-target-feature" "+f" "-target-feature" "+d" |
118 | | -// MCPU-ABI-SIFIVE-U54: "-target-feature" "+c" "-target-feature" "+64bit" |
| 125 | +// MCPU-ABI-SIFIVE-U54: "-target-feature" "+c" |
| 126 | +// MCPU-ABI-SIFIVE-U54: "-target-feature" "+64bit" |
119 | 127 | // MCPU-ABI-SIFIVE-U54: "-target-abi" "lp64" |
120 | 128 |
|
121 | 129 | // mcpu with default march |
|
129 | 137 | // RUN: %clang --target=riscv64 -### -c %s 2>&1 -mcpu=sifive-u74 -mabi=lp64 | FileCheck -check-prefix=MCPU-ABI-SIFIVE-U74 %s |
130 | 138 | // MCPU-ABI-SIFIVE-U74: "-nostdsysteminc" "-target-cpu" "sifive-u74" |
131 | 139 | // MCPU-ABI-SIFIVE-U74: "-target-feature" "+m" "-target-feature" "+a" "-target-feature" "+f" "-target-feature" "+d" |
132 | | -// MCPU-ABI-SIFIVE-U74: "-target-feature" "+c" "-target-feature" "+64bit" |
| 140 | +// MCPU-ABI-SIFIVE-U74: "-target-feature" "+c" |
| 141 | +// MCPU-ABI-SIFIVE-U74: "-target-feature" "+64bit" |
133 | 142 | // MCPU-ABI-SIFIVE-U74: "-target-abi" "lp64" |
134 | 143 |
|
135 | 144 | // march overwrite mcpu's default march |
|
0 commit comments