blob: 5133db7f79aa99cfff133fa4943e8475416279f3 [file] [log] [blame]
Renato Golin47aeab52013-09-02 14:11:33 +00001// RUN: %clang -target arm-none-gnueabi -munaligned-access -### %s 2> %t
Kevin Qine5cee2602014-05-06 09:51:32 +00002// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-ARM < %t %s
Renato Golin171b6b12013-08-25 13:01:50 +00003
Renato Golin47aeab52013-09-02 14:11:33 +00004// RUN: %clang -target arm-none-gnueabi -mstrict-align -munaligned-access -### %s 2> %t
Kevin Qine5cee2602014-05-06 09:51:32 +00005// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-ARM < %t %s
Renato Golin8d5f3142013-08-28 23:56:07 +00006
Renato Golin47aeab52013-09-02 14:11:33 +00007// RUN: %clang -target arm-none-gnueabi -mno-unaligned-access -munaligned-access -### %s 2> %t
Kevin Qine5cee2602014-05-06 09:51:32 +00008// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-ARM < %t %s
Renato Golin8d5f3142013-08-28 23:56:07 +00009
Kevin Qine5cee2602014-05-06 09:51:32 +000010// RUN: %clang -target arm64-none-gnueabi -munaligned-access -### %s 2> %t
11// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-ARM64 < %t %s
12
13// RUN: %clang -target arm64-none-gnueabi -mstrict-align -munaligned-access -### %s 2> %t
14// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-ARM64 < %t %s
15
16// RUN: %clang -target arm64-none-gnueabi -mno-unaligned-access -munaligned-access -### %s 2> %t
17// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-ARM64 < %t %s
18
19// CHECK-UNALIGNED-ARM: "-backend-option" "-arm-no-strict-align"
20// CHECK-UNALIGNED-ARM64: "-backend-option" "-arm64-no-strict-align"
Renato Golin171b6b12013-08-25 13:01:50 +000021
Renato Golin8d5f3142013-08-28 23:56:07 +000022
Renato Golin47aeab52013-09-02 14:11:33 +000023// RUN: %clang -target arm-none-gnueabi -mno-unaligned-access -### %s 2> %t
Kevin Qine5cee2602014-05-06 09:51:32 +000024// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
Renato Golin171b6b12013-08-25 13:01:50 +000025
Renato Golin47aeab52013-09-02 14:11:33 +000026// RUN: %clang -target arm-none-gnueabi -mstrict-align -### %s 2> %t
Kevin Qine5cee2602014-05-06 09:51:32 +000027// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
Renato Golin8d5f3142013-08-28 23:56:07 +000028
29// RUN: %clang -target arm-none-gnueabi -munaligned-access -mno-unaligned-access -### %s 2> %t
Kevin Qine5cee2602014-05-06 09:51:32 +000030// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
Renato Golin8d5f3142013-08-28 23:56:07 +000031
32// RUN: %clang -target arm-none-gnueabi -munaligned-access -mstrict-align -### %s 2> %t
Kevin Qine5cee2602014-05-06 09:51:32 +000033// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
Renato Golin8d5f3142013-08-28 23:56:07 +000034
Kevin Qine5cee2602014-05-06 09:51:32 +000035// RUN: %clang -target arm64-none-gnueabi -mno-unaligned-access -### %s 2> %t
36// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM64 < %t %s
37
38// RUN: %clang -target arm64-none-gnueabi -mstrict-align -### %s 2> %t
39// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM64 < %t %s
40
41// RUN: %clang -target arm64-none-gnueabi -munaligned-access -mno-unaligned-access -### %s 2> %t
42// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM64 < %t %s
43
44// RUN: %clang -target arm64-none-gnueabi -munaligned-access -mstrict-align -### %s 2> %t
45// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM64 < %t %s
46
47// CHECK-ALIGNED-ARM: "-backend-option" "-arm-strict-align"
48// CHECK-ALIGNED-ARM64: "-backend-option" "-arm64-strict-align"