mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 06:10:12 +00:00
0810739d4c
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
15 lines
500 B
C
15 lines
500 B
C
// 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
|
|
|
|
// RUN: %clang -target armv7-none-gnueabi -mno-movt -### %s 2>&1 \
|
|
// RUN: | FileCheck %s -check-prefix CHECK-NO-MOVT
|
|
|
|
// CHECK-DEFAULT-NOT: "-target-feature" "+no-movt"
|
|
|
|
// CHECK-KERNEL: "-target-feature" "+no-movt"
|
|
|
|
// CHECK-NO-MOVT: "-target-feature" "+no-movt"
|