diff options
Diffstat (limited to 'test/Driver/arm-alignment.c')
-rw-r--r-- | test/Driver/arm-alignment.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/Driver/arm-alignment.c b/test/Driver/arm-alignment.c new file mode 100644 index 0000000..e3ab276 --- /dev/null +++ b/test/Driver/arm-alignment.c @@ -0,0 +1,25 @@ +// RUN: %clang -target arm-none-gnueabi -munaligned-access -### %s 2> %t +// RUN: FileCheck --check-prefix=CHECK-UNALIGNED < %t %s + +// RUN: %clang -target arm-none-gnueabi -mstrict-align -munaligned-access -### %s 2> %t +// RUN: FileCheck --check-prefix=CHECK-UNALIGNED < %t %s + +// RUN: %clang -target arm-none-gnueabi -mno-unaligned-access -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-gnueabi -mno-unaligned-access -### %s 2> %t +// RUN: FileCheck --check-prefix=CHECK-ALIGNED < %t %s + +// RUN: %clang -target arm-none-gnueabi -mstrict-align -### %s 2> %t +// RUN: FileCheck --check-prefix=CHECK-ALIGNED < %t %s + +// RUN: %clang -target arm-none-gnueabi -munaligned-access -mno-unaligned-access -### %s 2> %t +// RUN: FileCheck --check-prefix=CHECK-ALIGNED < %t %s + +// RUN: %clang -target arm-none-gnueabi -munaligned-access -mstrict-align -### %s 2> %t +// RUN: FileCheck --check-prefix=CHECK-ALIGNED < %t %s + +// CHECK-ALIGNED: "-backend-option" "-arm-strict-align" |