From ed0059cde265033f7f93dacad1cac87fa2b9a8c6 Mon Sep 17 00:00:00 2001 From: Renato Golin Date: Sun, 25 Aug 2013 13:01:50 +0000 Subject: [PATCH] Tests for ARM aligned access + reserved R9 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 | 9 +++++++++ test/Driver/arm-fixed-r9.c | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 test/Driver/arm-alignment.c create mode 100644 test/Driver/arm-fixed-r9.c diff --git a/test/Driver/arm-alignment.c b/test/Driver/arm-alignment.c new file mode 100644 index 0000000000..024c46be74 --- /dev/null +++ b/test/Driver/arm-alignment.c @@ -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 index 0000000000..0a95d87797 --- /dev/null +++ b/test/Driver/arm-fixed-r9.c @@ -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" -- 2.40.0