blob: e7b7ac34874d3211bb18dab34e477ba3675a0d63 [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
Tim Northover573cbee2014-05-24 12:52:07 +000010// RUN: %clang -target aarch64-none-gnueabi -munaligned-access -### %s 2> %t
11// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-AARCH64 < %t %s
Kevin Qine5cee2602014-05-06 09:51:32 +000012
Tim Northover573cbee2014-05-24 12:52:07 +000013// RUN: %clang -target aarch64-none-gnueabi -mstrict-align -munaligned-access -### %s 2> %t
14// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-AARCH64 < %t %s
Kevin Qine5cee2602014-05-06 09:51:32 +000015
Tim Northover573cbee2014-05-24 12:52:07 +000016// RUN: %clang -target aarch64-none-gnueabi -mno-unaligned-access -munaligned-access -### %s 2> %t
17// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-AARCH64 < %t %s
Kevin Qine5cee2602014-05-06 09:51:32 +000018
19// CHECK-UNALIGNED-ARM: "-backend-option" "-arm-no-strict-align"
Tim Northover573cbee2014-05-24 12:52:07 +000020// CHECK-UNALIGNED-AARCH64: "-backend-option" "-aarch64-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
Tim Northover573cbee2014-05-24 12:52:07 +000035// RUN: %clang -target aarch64-none-gnueabi -mno-unaligned-access -### %s 2> %t
36// RUN: FileCheck --check-prefix=CHECK-ALIGNED-AARCH64 < %t %s
Kevin Qine5cee2602014-05-06 09:51:32 +000037
Tim Northover573cbee2014-05-24 12:52:07 +000038// RUN: %clang -target aarch64-none-gnueabi -mstrict-align -### %s 2> %t
39// RUN: FileCheck --check-prefix=CHECK-ALIGNED-AARCH64 < %t %s
Kevin Qine5cee2602014-05-06 09:51:32 +000040
Tim Northover573cbee2014-05-24 12:52:07 +000041// RUN: %clang -target aarch64-none-gnueabi -munaligned-access -mno-unaligned-access -### %s 2> %t
42// RUN: FileCheck --check-prefix=CHECK-ALIGNED-AARCH64 < %t %s
Kevin Qine5cee2602014-05-06 09:51:32 +000043
Tim Northover573cbee2014-05-24 12:52:07 +000044// RUN: %clang -target aarch64-none-gnueabi -munaligned-access -mstrict-align -### %s 2> %t
45// RUN: FileCheck --check-prefix=CHECK-ALIGNED-AARCH64 < %t %s
Kevin Qine5cee2602014-05-06 09:51:32 +000046
Bob Wilson0874e532014-07-29 00:23:18 +000047// RUN: %clang -target aarch64-none-gnueabi -mkernel -mno-unaligned-access -### %s 2> %t
48// RUN: FileCheck --check-prefix=CHECK-ALIGNED-AARCH64 < %t %s
49
Kevin Qine5cee2602014-05-06 09:51:32 +000050// CHECK-ALIGNED-ARM: "-backend-option" "-arm-strict-align"
Tim Northover573cbee2014-05-24 12:52:07 +000051// CHECK-ALIGNED-AARCH64: "-backend-option" "-aarch64-strict-align"