From 952359d59e087523e47896d539150ea69a15e3da Mon Sep 17 00:00:00 2001 From: Simon Atanasyan Date: Thu, 10 Aug 2017 15:42:31 +0000 Subject: [PATCH] [mips] Group all `-mabicalls` related checks in the single place. NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310615 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Driver/mips-abicalls-warning.c | 6 ++++++ test/Driver/mips-longcalls-warning.c | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 test/Driver/mips-longcalls-warning.c diff --git a/test/Driver/mips-abicalls-warning.c b/test/Driver/mips-abicalls-warning.c index 6bfa961b72..848a5bfce5 100644 --- a/test/Driver/mips-abicalls-warning.c +++ b/test/Driver/mips-abicalls-warning.c @@ -1,3 +1,9 @@ // REQUIRES: mips-registered-target // RUN: %clang -### -c -target mips64-mti-elf -fno-PIC -mabicalls %s 2>&1 | FileCheck %s // CHECK: warning: ignoring '-mabicalls' option as it cannot be used with non position-independent code and the N64 ABI + +// RUN: %clang -### -c -target mips-mti-elf -mlong-calls %s 2>&1 | FileCheck -check-prefix=LONGCALL-IMP %s +// LONGCALL-IMP: warning: ignoring '-mlong-calls' option as it is not currently supported with the implicit usage of -mabicalls + +// RUN: %clang -### -c -target mips-mti-elf -mlong-calls -mabicalls %s 2>&1 | FileCheck -check-prefix=LONGCALL-EXP %s +// LONGCALL-EXP: warning: ignoring '-mlong-calls' option as it is not currently supported with -mabicalls diff --git a/test/Driver/mips-longcalls-warning.c b/test/Driver/mips-longcalls-warning.c deleted file mode 100644 index c19d6d8c0c..0000000000 --- a/test/Driver/mips-longcalls-warning.c +++ /dev/null @@ -1,6 +0,0 @@ -// REQUIRES: mips-registered-target -// RUN: %clang -### -c -target mips-mti-elf -mlong-calls %s 2>&1 | FileCheck -check-prefix=IMPLICIT %s -// IMPLICIT: warning: ignoring '-mlong-calls' option as it is not currently supported with the implicit usage of -mabicalls - -// RUN: %clang -### -c -target mips-mti-elf -mlong-calls -mabicalls %s 2>&1 | FileCheck -check-prefix=EXPLICIT %s -// EXPLICIT: warning: ignoring '-mlong-calls' option as it is not currently supported with -mabicalls -- 2.40.0