blob: dad66ba58942347bff1daea2268d613fd60bf75e [file] [log] [blame]
Renato Golin171b6b12013-08-25 13:01:50 +00001// RUN: %clang -target arm-none-gnueeabi -munaligned-access -### %s 2> %t
2// RUN: FileCheck --check-prefix=CHECK-UNALIGNED < %t %s
3
Renato Golin8d5f3142013-08-28 23:56:07 +00004// RUN: %clang -target arm-none-gnueeabi -mstrict-align -munaligned-access -### %s 2> %t
5// RUN: FileCheck --check-prefix=CHECK-UNALIGNED < %t %s
6
7// RUN: %clang -target arm-none-gnueeabi -mno-unaligned-access -munaligned-access -### %s 2> %t
8// 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 Golin171b6b12013-08-25 13:01:50 +000013// RUN: %clang -target arm-none-gnueeabi -mno-unaligned-access -### %s 2> %t
14// RUN: FileCheck --check-prefix=CHECK-ALIGNED < %t %s
15
Renato Golin8d5f3142013-08-28 23:56:07 +000016// RUN: %clang -target arm-none-gnueeabi -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
Renato Golin171b6b12013-08-25 13:01:50 +000025// CHECK-ALIGNED: "-backend-option" "-arm-strict-align"