blob: e3ab276212a3122386d6931790642fc54f2468ca [file] [log] [blame]
Renato Golin47aeab52013-09-02 14:11:33 +00001// RUN: %clang -target arm-none-gnueabi -munaligned-access -### %s 2> %t
Renato Golin171b6b12013-08-25 13:01:50 +00002// RUN: FileCheck --check-prefix=CHECK-UNALIGNED < %t %s
3
Renato Golin47aeab52013-09-02 14:11:33 +00004// RUN: %clang -target arm-none-gnueabi -mstrict-align -munaligned-access -### %s 2> %t
Renato Golin8d5f3142013-08-28 23:56:07 +00005// RUN: FileCheck --check-prefix=CHECK-UNALIGNED < %t %s
6
Renato Golin47aeab52013-09-02 14:11:33 +00007// RUN: %clang -target arm-none-gnueabi -mno-unaligned-access -munaligned-access -### %s 2> %t
Renato Golin8d5f3142013-08-28 23:56:07 +00008// RUN: FileCheck --check-prefix=CHECK-UNALIGNED < %t %s
9
Renato Golin171b6b12013-08-25 13:01:50 +000010// CHECK-UNALIGNED: "-backend-option" "-arm-no-strict-align"
11
Renato Golin8d5f3142013-08-28 23:56:07 +000012
Renato Golin47aeab52013-09-02 14:11:33 +000013// RUN: %clang -target arm-none-gnueabi -mno-unaligned-access -### %s 2> %t
Renato Golin171b6b12013-08-25 13:01:50 +000014// RUN: FileCheck --check-prefix=CHECK-ALIGNED < %t %s
15
Renato Golin47aeab52013-09-02 14:11:33 +000016// RUN: %clang -target arm-none-gnueabi -mstrict-align -### %s 2> %t
Renato Golin8d5f3142013-08-28 23:56:07 +000017// 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
Renato Golin171b6b12013-08-25 13:01:50 +000025// CHECK-ALIGNED: "-backend-option" "-arm-strict-align"