r308432 - [mips] Add warning test for -mgpopt option.

Simon Dardis via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 19 03:39:15 PDT 2017


Author: sdardis
Date: Wed Jul 19 03:39:15 2017
New Revision: 308432

URL: http://llvm.org/viewvc/llvm-project?rev=308432&view=rev
Log:
[mips] Add warning test for -mgpopt option.

Added:
    cfe/trunk/test/Driver/mips-gpopt-warning.c

Added: cfe/trunk/test/Driver/mips-gpopt-warning.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/mips-gpopt-warning.c?rev=308432&view=auto
==============================================================================
--- cfe/trunk/test/Driver/mips-gpopt-warning.c (added)
+++ cfe/trunk/test/Driver/mips-gpopt-warning.c Wed Jul 19 03:39:15 2017
@@ -0,0 +1,6 @@
+// REQUIRES: mips-registered-target
+// RUN: %clang -### -c -target mips-mti-elf %s -mgpopt 2>&1 | FileCheck -check-prefix=IMPLICIT %s
+// IMPLICIT: warning: ignoring '-mgpopt' option as it cannot be used with the implicit usage of-mabicalls
+
+// RUN: %clang -### -c -target mips-mti-elf %s -mgpopt -mabicalls 2>&1 | FileCheck -check-prefix=EXPLICIT %s
+// EXPLICIT: warning: ignoring '-mgpopt' option as it cannot be used with -mabicalls




More information about the cfe-commits mailing list