1 // RUN: %clang -target arm-none-gnueabi -mrestrict-it -### %s 2> %t
2 // RUN: FileCheck --check-prefix=CHECK-RESTRICTED < %t %s
4 // RUN: %clang -target armv8a-none-gnueabi -mrestrict-it -### %s 2> %t
5 // RUN: FileCheck --check-prefix=CHECK-RESTRICTED < %t %s
7 // CHECK-RESTRICTED: "-mllvm" "-arm-restrict-it"
9 // RUN: %clang -target arm-none-gnueabi -mno-restrict-it -### %s 2> %t
10 // RUN: FileCheck --check-prefix=CHECK-NO-RESTRICTED < %t %s
12 // RUN: %clang -target armv8a-none-gnueabi -mno-restrict-it -### %s 2> %t
13 // RUN: FileCheck --check-prefix=CHECK-NO-RESTRICTED < %t %s
15 // CHECK-NO-RESTRICTED: "-mllvm" "-arm-default-it"