r189190 - Tests for ARM aligned access + reserved R9

Renato Golin renato.golin at linaro.org
Sun Aug 25 06:01:50 PDT 2013


Author: rengolin
Date: Sun Aug 25 08:01:50 2013
New Revision: 189190

URL: http://llvm.org/viewvc/llvm-project?rev=189190&view=rev
Log:
Tests for ARM aligned access + reserved R9

Patch by Jeroen Hofstee.

Added:
    cfe/trunk/test/Driver/arm-alignment.c
    cfe/trunk/test/Driver/arm-fixed-r9.c

Added: cfe/trunk/test/Driver/arm-alignment.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/arm-alignment.c?rev=189190&view=auto
==============================================================================
--- cfe/trunk/test/Driver/arm-alignment.c (added)
+++ cfe/trunk/test/Driver/arm-alignment.c Sun Aug 25 08:01:50 2013
@@ -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"

Added: cfe/trunk/test/Driver/arm-fixed-r9.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/arm-fixed-r9.c?rev=189190&view=auto
==============================================================================
--- cfe/trunk/test/Driver/arm-fixed-r9.c (added)
+++ cfe/trunk/test/Driver/arm-fixed-r9.c Sun Aug 25 08:01:50 2013
@@ -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"





More information about the cfe-commits mailing list