summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2016-08-30 01:07:03 +0000
committerHal Finkel <hfinkel@anl.gov>2016-08-30 01:07:03 +0000
commit5fe93df78c1c5ebcadaafaa0747183694186881e (patch)
tree46e961e67e60ea64c16f31413de0a733faa840f0 /clang/test
parentb074a608ceb2514ff5c8967b0f36c168fb54576e (diff)
downloadbcm5719-llvm-5fe93df78c1c5ebcadaafaa0747183694186881e.tar.gz
bcm5719-llvm-5fe93df78c1c5ebcadaafaa0747183694186881e.zip
[PowerPC] Add support for -mlongcall
Add support for GCC's PowerPC -mlongcall option; the backend supports the corresponding target feature as of r280040. Fixes PR19098. llvm-svn: 280041
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Driver/ppc-features.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Driver/ppc-features.cpp b/clang/test/Driver/ppc-features.cpp
index 34c1ce5cc4d..3b2b02c6e89 100644
--- a/clang/test/Driver/ppc-features.cpp
+++ b/clang/test/Driver/ppc-features.cpp
@@ -163,6 +163,12 @@
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-crbits -mcrbits -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-CRBITS %s
// CHECK-CRBITS: "-target-feature" "+crbits"
+// RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-longcall -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOLONGCALL %s
+// CHECK-NOLONGCALL: "-target-feature" "-longcall"
+
+// RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-longcall -mlongcall -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-LONGCALL %s
+// CHECK-LONGCALL: "-target-feature" "+longcall"
+
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-invariant-function-descriptors -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOINVFUNCDESC %s
// CHECK-NOINVFUNCDESC: "-target-feature" "-invariant-function-descriptors"
OpenPOWER on IntegriCloud