1 // Test that default features (e.g. flagm/sb/ssbs for 8.5) can be disabled via -march.
3 // RUN: %clang --target=aarch64 -march=armv8.5-a+noflagm+nosb+nossbs -c %s -### 2>&1 | FileCheck %s
4 // CHECK: "-triple" "aarch64"
5 // CHECK-SAME: "-target-feature" "+v8.5a"
6 // CHECK-SAME: "-target-feature" "-flagm"
7 // CHECK-SAME: "-target-feature" "-sb"
8 // CHECK-SAME: "-target-feature" "-ssbs"
10 // CHECK-NOT: "-target-feature" "+flagm"
11 // CHECK-NOT: "-target-feature" "+sb"
12 // CHECK-NOT: "-target-feature" "+ssbs"