Tests for ARM aligned access + reserved R9

Patch by Jeroen Hofstee.

llvm-svn: 189190
This commit is contained in:
Renato Golin 2013-08-25 13:01:50 +00:00
parent f8f478b19d
commit 171b6b19f1
2 changed files with 13 additions and 0 deletions

View File

@ -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"

View File

@ -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"