llvm-project/clang/test/Driver/arm-long-calls.c
Akira Hatanaka 3fb33a5d18 [ARM] Pass subtarget feature "+long-calls" instead of passing backend option
"-arm-long-calls".

This change allows using -mlong-calls/-mno-long-calls for LTO and enabling or
disabling long call on a per-function basis.

rdar://problem/21529937

Differential Revision: http://reviews.llvm.org/D9414

llvm-svn: 241565
2015-07-07 06:42:05 +00:00

16 lines
533 B
C

// RUN: %clang -target armv7-eabi -### %s 2>&1 \
// RUN: | FileCheck %s -check-prefix CHECK-DEFAULT
// RUN: %clang -target armv7-eabi -### -mlong-calls %s 2>&1 \
// RUN: | FileCheck %s -check-prefix CHECK-LONG-CALLS
// RUN: %clang -target armv7-eabi -### -mlong-calls -mno-long-calls %s 2>&1 \
// RUN: | FileCheck %s -check-prefix CHECK-NO-LONG-CALLS
// CHECK-DEFAULT-NOT: "-target-feature" "+long-calls"
// CHECK-LONG-CALLS: "-target-feature" "+long-calls"
// CHECK-NO-LONG-CALLS-NOT: "-target-feature" "+long-calls"