]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Driver/arm-alignment.c
Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / Driver / arm-alignment.c
1 // RUN: %clang -target arm-none-gnueabi -munaligned-access -### %s 2> %t
2 // RUN: FileCheck --check-prefix=CHECK-UNALIGNED < %t %s
3
4 // RUN: %clang -target arm-none-gnueabi -mstrict-align -munaligned-access -### %s 2> %t
5 // RUN: FileCheck --check-prefix=CHECK-UNALIGNED < %t %s
6
7 // RUN: %clang -target arm-none-gnueabi -mno-unaligned-access -munaligned-access -### %s 2> %t
8 // RUN: FileCheck --check-prefix=CHECK-UNALIGNED < %t %s
9
10 // CHECK-UNALIGNED: "-backend-option" "-arm-no-strict-align"
11
12
13 // RUN: %clang -target arm-none-gnueabi -mno-unaligned-access -### %s 2> %t
14 // RUN: FileCheck --check-prefix=CHECK-ALIGNED < %t %s
15
16 // RUN: %clang -target arm-none-gnueabi -mstrict-align -### %s 2> %t
17 // RUN: FileCheck --check-prefix=CHECK-ALIGNED < %t %s
18
19 // RUN: %clang -target arm-none-gnueabi -munaligned-access -mno-unaligned-access -### %s 2> %t
20 // RUN: FileCheck --check-prefix=CHECK-ALIGNED < %t %s
21
22 // RUN: %clang -target arm-none-gnueabi -munaligned-access -mstrict-align -### %s 2> %t
23 // RUN: FileCheck --check-prefix=CHECK-ALIGNED < %t %s
24
25 // CHECK-ALIGNED: "-backend-option" "-arm-strict-align"