r194606 - Add test case for r194593
Weiming Zhao
weimingz at codeaurora.org
Wed Nov 13 13:40:17 PST 2013
Author: weimingz
Date: Wed Nov 13 15:40:17 2013
New Revision: 194606
URL: http://llvm.org/viewvc/llvm-project?rev=194606&view=rev
Log:
Add test case for r194593
Added:
cfe/trunk/test/Driver/arm-restrict-it.c
Added: cfe/trunk/test/Driver/arm-restrict-it.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/arm-restrict-it.c?rev=194606&view=auto
==============================================================================
--- cfe/trunk/test/Driver/arm-restrict-it.c (added)
+++ cfe/trunk/test/Driver/arm-restrict-it.c Wed Nov 13 15:40:17 2013
@@ -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"
More information about the cfe-commits
mailing list