From: Weiming Zhao Date: Wed, 13 Nov 2013 21:40:17 +0000 (+0000) Subject: Add test case for r194593 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea88107869edaa94959d13d635d8077561942557;p=clang Add test case for r194593 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194606 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/arm-restrict-it.c b/test/Driver/arm-restrict-it.c new file mode 100644 index 0000000000..c2a776046b --- /dev/null +++ b/test/Driver/arm-restrict-it.c @@ -0,0 +1,15 @@ +// RUN: %clang -target arm-none-gnueabi -mrestrict-it -### %s 2> %t +// RUN: FileCheck --check-prefix=CHECK-RESTRICTED < %t %s + +// RUN: %clang -target armv8a-none-gnueabi -mrestrict-it -### %s 2> %t +// RUN: FileCheck --check-prefix=CHECK-RESTRICTED < %t %s + +// CHECK-RESTRICTED: "-backend-option" "-arm-restrict-it" + +// RUN: %clang -target arm-none-gnueabi -mno-restrict-it -### %s 2> %t +// RUN: FileCheck --check-prefix=CHECK-NO-RESTRICTED < %t %s + +// RUN: %clang -target armv8a-none-gnueabi -mno-restrict-it -### %s 2> %t +// RUN: FileCheck --check-prefix=CHECK-NO-RESTRICTED < %t %s + +// CHECK-NO-RESTRICTED: "-backend-option" "-arm-no-restrict-it"