]> granicus.if.org Git - clang/commitdiff
Tests for ARM aligned access + reserved R9
authorRenato Golin <renato.golin@linaro.org>
Sun, 25 Aug 2013 13:01:50 +0000 (13:01 +0000)
committerRenato Golin <renato.golin@linaro.org>
Sun, 25 Aug 2013 13:01:50 +0000 (13:01 +0000)
Patch by Jeroen Hofstee.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189190 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/arm-alignment.c [new file with mode: 0644]
test/Driver/arm-fixed-r9.c [new file with mode: 0644]

diff --git a/test/Driver/arm-alignment.c b/test/Driver/arm-alignment.c
new file mode 100644 (file)
index 0000000..024c46b
--- /dev/null
@@ -0,0 +1,9 @@
+// RUN: %clang -target arm-none-gnueeabi -munaligned-access -### %s 2> %t
+// RUN: FileCheck --check-prefix=CHECK-UNALIGNED < %t %s
+
+// CHECK-UNALIGNED: "-backend-option" "-arm-no-strict-align"
+
+// RUN: %clang -target arm-none-gnueeabi -mno-unaligned-access -### %s 2> %t
+// RUN: FileCheck --check-prefix=CHECK-ALIGNED < %t %s
+
+// CHECK-ALIGNED: "-backend-option" "-arm-strict-align"
diff --git a/test/Driver/arm-fixed-r9.c b/test/Driver/arm-fixed-r9.c
new file mode 100644 (file)
index 0000000..0a95d87
--- /dev/null
@@ -0,0 +1,4 @@
+// RUN: %clang -target arm-none-gnueeabi -ffixed-r9 -### %s 2> %t
+// RUN: FileCheck --check-prefix=CHECK-FIXED-R9 < %t %s
+
+// CHECK-FIXED-R9: "-backend-option" "-arm-reserve-r9"