Alex Bradbury | febf5cb | 2018-01-11 13:36:56 +0000 | [diff] [blame] | 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 |
Shiva Chen | 2c6477e | 2018-05-29 00:44:15 +0000 | [diff] [blame] | 5 | |
Sam Elliott | 9c1491f | 2019-06-21 10:03:31 +0000 | [diff] [blame] | 6 | // RUN: %clang -target riscv32-unknown-elf -### %s 2>&1 | FileCheck %s -check-prefix=DEFAULT |
| 7 | |
Shiva Chen | 2c6477e | 2018-05-29 00:44:15 +0000 | [diff] [blame] | 8 | // RUN: %clang -target riscv32-unknown-elf -### %s -mrelax 2>&1 | FileCheck %s -check-prefix=RELAX |
| 9 | // RUN: %clang -target riscv32-unknown-elf -### %s -mno-relax 2>&1 | FileCheck %s -check-prefix=NO-RELAX |
Shiva Chen | 2c6477e | 2018-05-29 00:44:15 +0000 | [diff] [blame] | 10 | |
| 11 | // RELAX: "-target-feature" "+relax" |
| 12 | // NO-RELAX: "-target-feature" "-relax" |
Shiva Chen | c551f90 | 2019-02-17 16:05:51 +0000 | [diff] [blame] | 13 | // DEFAULT: "-target-feature" "+relax" |
Shiva Chen | 2c6477e | 2018-05-29 00:44:15 +0000 | [diff] [blame] | 14 | // DEFAULT-NOT: "-target-feature" "-relax" |
Sam Elliott | 9c1491f | 2019-06-21 10:03:31 +0000 | [diff] [blame] | 15 | |
| 16 | // RUN: %clang -target riscv32-unknown-elf -### %s -msave-restore 2>&1 | FileCheck %s -check-prefix=SAVE-RESTORE |
| 17 | // RUN: %clang -target riscv32-unknown-elf -### %s -mno-save-restore 2>&1 | FileCheck %s -check-prefix=NO-SAVE-RESTORE |
| 18 | |
| 19 | // SAVE-RESTORE: warning: the clang compiler does not support '-msave-restore' |
Sam Elliott | 44f7b2c | 2019-07-01 14:53:56 +0000 | [diff] [blame] | 20 | // NO-SAVE-RESTORE-NOT: warning: the clang compiler does not support |
Roger Ferrer Ibanez | 47ae2a0 | 2019-09-10 08:16:24 +0000 | [diff] [blame] | 21 | // DEFAULT-NOT: warning: the clang compiler does not support |
| 22 | |
| 23 | // RUN: %clang -target riscv32-linux -### %s -fsyntax-only 2>&1 \ |
| 24 | // RUN: | FileCheck %s -check-prefix=DEFAULT-LINUX |
| 25 | // RUN: %clang -target riscv64-linux -### %s -fsyntax-only 2>&1 \ |
| 26 | // RUN: | FileCheck %s -check-prefix=DEFAULT-LINUX |
| 27 | |
| 28 | // DEFAULT-LINUX: "-target-feature" "+m" |
| 29 | // DEFAULT-LINUX-SAME: "-target-feature" "+a" |
| 30 | // DEFAULT-LINUX-SAME: "-target-feature" "+f" |
| 31 | // DEFAULT-LINUX-SAME: "-target-feature" "+d" |
| 32 | // DEFAULT-LINUX-SAME: "-target-feature" "+c" |