2013-09-02 22:11:33 +08:00
|
|
|
// RUN: %clang -target arm-none-gnueabi -munaligned-access -### %s 2> %t
|
2014-05-06 17:51:32 +08:00
|
|
|
// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-ARM < %t %s
|
2013-08-25 21:01:50 +08:00
|
|
|
|
2013-09-02 22:11:33 +08:00
|
|
|
// RUN: %clang -target arm-none-gnueabi -mstrict-align -munaligned-access -### %s 2> %t
|
2014-05-06 17:51:32 +08:00
|
|
|
// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-ARM < %t %s
|
2013-08-29 07:56:07 +08:00
|
|
|
|
2013-09-02 22:11:33 +08:00
|
|
|
// RUN: %clang -target arm-none-gnueabi -mno-unaligned-access -munaligned-access -### %s 2> %t
|
2014-05-06 17:51:32 +08:00
|
|
|
// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-ARM < %t %s
|
2013-08-29 07:56:07 +08:00
|
|
|
|
2015-07-29 06:26:45 +08:00
|
|
|
// RUN: %clang -target armv6-apple-darwin -### %s 2> %t
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-ARM < %t %s
|
|
|
|
|
|
|
|
// RUN: %clang -target armv6-netbsd-eabi -### %s 2> %t
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-ARM < %t %s
|
|
|
|
|
|
|
|
// RUN: %clang -target armv7-unknown-linux -### %s 2> %t
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-ARM < %t %s
|
|
|
|
|
|
|
|
// RUN: %clang -target armv7-unknown-nacl-gnueabihf -### %s 2> %t
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-ARM < %t %s
|
|
|
|
|
2014-05-24 20:52:07 +08:00
|
|
|
// RUN: %clang -target aarch64-none-gnueabi -munaligned-access -### %s 2> %t
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-AARCH64 < %t %s
|
2014-05-06 17:51:32 +08:00
|
|
|
|
2014-05-24 20:52:07 +08:00
|
|
|
// RUN: %clang -target aarch64-none-gnueabi -mstrict-align -munaligned-access -### %s 2> %t
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-AARCH64 < %t %s
|
2014-05-06 17:51:32 +08:00
|
|
|
|
2014-05-24 20:52:07 +08:00
|
|
|
// RUN: %clang -target aarch64-none-gnueabi -mno-unaligned-access -munaligned-access -### %s 2> %t
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-UNALIGNED-AARCH64 < %t %s
|
2014-05-06 17:51:32 +08:00
|
|
|
|
2015-07-29 06:26:45 +08:00
|
|
|
// CHECK-UNALIGNED-ARM-NOT: "-target-feature" "+strict-align"
|
2015-07-29 22:25:58 +08:00
|
|
|
// CHECK-UNALIGNED-AARCH64-NOT: "-target-feature" "+strict-align"
|
2013-08-25 21:01:50 +08:00
|
|
|
|
2013-08-29 07:56:07 +08:00
|
|
|
|
2013-09-02 22:11:33 +08:00
|
|
|
// RUN: %clang -target arm-none-gnueabi -mno-unaligned-access -### %s 2> %t
|
2014-05-06 17:51:32 +08:00
|
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
|
2013-08-25 21:01:50 +08:00
|
|
|
|
2013-09-02 22:11:33 +08:00
|
|
|
// RUN: %clang -target arm-none-gnueabi -mstrict-align -### %s 2> %t
|
2014-05-06 17:51:32 +08:00
|
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
|
2013-08-29 07:56:07 +08:00
|
|
|
|
|
|
|
// RUN: %clang -target arm-none-gnueabi -munaligned-access -mno-unaligned-access -### %s 2> %t
|
2014-05-06 17:51:32 +08:00
|
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
|
2013-08-29 07:56:07 +08:00
|
|
|
|
|
|
|
// RUN: %clang -target arm-none-gnueabi -munaligned-access -mstrict-align -### %s 2> %t
|
2014-05-06 17:51:32 +08:00
|
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
|
|
|
|
|
2015-07-29 06:26:45 +08:00
|
|
|
// RUN: %clang -target arm-none-gnueabi -### %s 2> %t
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
|
|
|
|
|
|
|
|
// RUN: %clang -target armv5-apple-darwin -### %s 2> %t
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
|
|
|
|
|
|
|
|
// RUN: %clang -target armv5t-netbsd-eabi -### %s 2> %t
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
|
|
|
|
|
|
|
|
// RUN: %clang -target armv6-unknown-linux -### %s 2> %t
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
|
|
|
|
|
|
|
|
// RUN: %clang -target armv6-unknown-nacl-gnueabihf -### %s 2> %t
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
|
|
|
|
|
2015-10-05 20:45:10 +08:00
|
|
|
// RUN: %clang -target armv6m-apple-darwin -### %s 2> %t
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
|
|
|
|
|
|
|
|
// RUN: %clang -target armv6m-netbsd-eabi -### %s 2> %t
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-ARM < %t %s
|
|
|
|
|
2014-05-24 20:52:07 +08:00
|
|
|
// RUN: %clang -target aarch64-none-gnueabi -mno-unaligned-access -### %s 2> %t
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-AARCH64 < %t %s
|
2014-05-06 17:51:32 +08:00
|
|
|
|
2014-05-24 20:52:07 +08:00
|
|
|
// RUN: %clang -target aarch64-none-gnueabi -mstrict-align -### %s 2> %t
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-AARCH64 < %t %s
|
2014-05-06 17:51:32 +08:00
|
|
|
|
2014-05-24 20:52:07 +08:00
|
|
|
// RUN: %clang -target aarch64-none-gnueabi -munaligned-access -mno-unaligned-access -### %s 2> %t
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-AARCH64 < %t %s
|
2014-05-06 17:51:32 +08:00
|
|
|
|
2014-05-24 20:52:07 +08:00
|
|
|
// RUN: %clang -target aarch64-none-gnueabi -munaligned-access -mstrict-align -### %s 2> %t
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-AARCH64 < %t %s
|
2013-08-29 07:56:07 +08:00
|
|
|
|
2014-07-29 08:23:18 +08:00
|
|
|
// RUN: %clang -target aarch64-none-gnueabi -mkernel -mno-unaligned-access -### %s 2> %t
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-ALIGNED-AARCH64 < %t %s
|
|
|
|
|
2015-07-29 06:26:45 +08:00
|
|
|
// CHECK-ALIGNED-ARM: "-target-feature" "+strict-align"
|
2015-07-29 22:25:58 +08:00
|
|
|
// CHECK-ALIGNED-AARCH64: "-target-feature" "+strict-align"
|
2014-10-07 23:11:32 +08:00
|
|
|
|
2016-03-03 21:52:22 +08:00
|
|
|
// Make sure that v6M cores and v8M Baseline always trigger the unsupported
|
|
|
|
// aligned accesses error for all supported architecture triples.
|
2014-10-07 23:11:32 +08:00
|
|
|
// RUN: not %clang -c -target thumbv6m-none-gnueabi -mcpu=cortex-m0 -munaligned-access %s 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix CHECK-UNALIGN-NOT-SUPPORTED %s
|
|
|
|
// RUN: not %clang -c -target thumb-none-gnueabi -mcpu=cortex-m0 -munaligned-access %s 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix CHECK-UNALIGN-NOT-SUPPORTED %s
|
2016-03-03 21:52:22 +08:00
|
|
|
// RUN: not %clang -c -target thumbv8m.base-none-gnueabi -munaligned-access %s 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix CHECK-UNALIGN-NOT-SUPPORTED %s
|
2014-10-07 23:11:32 +08:00
|
|
|
|
2016-03-03 21:52:22 +08:00
|
|
|
// CHECK-UNALIGN-NOT-SUPPORTED: error: the {{.*}} sub-architecture does not support unaligned accesses
|