2015-07-16 08:43:00 +08:00
|
|
|
// RUN: %clang -target armv7-apple-darwin -### %s 2>&1 \
|
|
|
|
// RUN: | FileCheck %s -check-prefix CHECK-DEFAULT
|
|
|
|
|
|
|
|
// RUN: %clang -target armv7-apple-darwin -mkernel -### %s 2>&1 \
|
|
|
|
// RUN: | FileCheck %s -check-prefix CHECK-KERNEL
|
|
|
|
|
Add -fno-movt frontend option, to disable movt/movw on ARM
Summary:
In rL256641, @davide turned off movt generation by default for FreeBSD.
This was because our ld is very old, and did not support the relocations
for it. However, Ian Lepore added the support very recently, so we
would like to revert rL256641, and replace it with a new `-fno-movt`
frontend option. This way, it can be turned off when needed.
Reviewers: dexonsmith, echristo, emaste, davide
Subscribers: andrew, aemerson, rengolin, davide, cfe-commits, ahatanak, emaste
Differential Revision: http://reviews.llvm.org/D15899
llvm-svn: 256920
2016-01-06 15:42:18 +08:00
|
|
|
// RUN: %clang -target armv7-none-gnueabi -mno-movt -### %s 2>&1 \
|
|
|
|
// RUN: | FileCheck %s -check-prefix CHECK-NO-MOVT
|
2015-12-30 21:53:25 +08:00
|
|
|
|
2015-07-16 08:43:00 +08:00
|
|
|
// CHECK-DEFAULT-NOT: "-target-feature" "+no-movt"
|
|
|
|
|
|
|
|
// CHECK-KERNEL: "-target-feature" "+no-movt"
|
2015-12-30 21:53:25 +08:00
|
|
|
|
Add -fno-movt frontend option, to disable movt/movw on ARM
Summary:
In rL256641, @davide turned off movt generation by default for FreeBSD.
This was because our ld is very old, and did not support the relocations
for it. However, Ian Lepore added the support very recently, so we
would like to revert rL256641, and replace it with a new `-fno-movt`
frontend option. This way, it can be turned off when needed.
Reviewers: dexonsmith, echristo, emaste, davide
Subscribers: andrew, aemerson, rengolin, davide, cfe-commits, ahatanak, emaste
Differential Revision: http://reviews.llvm.org/D15899
llvm-svn: 256920
2016-01-06 15:42:18 +08:00
|
|
|
// CHECK-NO-MOVT: "-target-feature" "+no-movt"
|