| 1 | // RUN: %clang -### -target arm-none-none-eabi -march=armv8a+sb %s 2>&1 | FileCheck %s |
| 2 | // RUN: %clang -### -target aarch64-none-none-eabi -march=armv8a+sb %s 2>&1 | FileCheck %s |
| 3 | // CHECK: "-target-feature" "+sb" |
| 4 | // CHECK-NOT: "-target-feature" "-sb" |
| 5 | |
| 6 | // RUN: %clang -### -target arm-none-none-eabi -march=armv8.5a+nosb %s 2>&1 | FileCheck %s --check-prefix=NOSB |
| 7 | // RUN: %clang -### -target aarch64-none-none-eabi -march=armv8.5a+nosb %s 2>&1 | FileCheck %s --check-prefix=NOSB |
| 8 | // NOSB: "-target-feature" "-sb" |
| 9 | // NOSB-NOT: "-target-feature" "+sb" |
| 10 | |
| 11 | // RUN: %clang -### -target arm-none-none-eabi %s 2>&1 | FileCheck %s --check-prefix=ABSENT |
| 12 | // RUN: %clang -### -target aarch64-none-none-eabi %s 2>&1 | FileCheck %s --check-prefix=ABSENT |
| 13 | // ABSENT-NOT: "-target-feature" "+sb" |
| 14 | // ABSENT-NOT: "-target-feature" "-sb" |
| 15 | |