ソースを参照

[mips] The P5600 does not support N32/N64 since it's a 32-bit CPU.

Summary:

Reviewers: atanasyan

Subscribers: cfe-commits, sdardis

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


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@271877 91177308-0d34-0410-b5e6-96231b3b80d8
Daniel Sanders 9 年 前
コミット
4076bbb87b
2 ファイル変更6 行追加1 行削除
  1. 1 1
      lib/Basic/Targets.cpp
  2. 5 0
      test/Driver/mips-abi.c

+ 1 - 1
lib/Basic/Targets.cpp

@@ -7170,7 +7170,7 @@ public:
         .Case("mips64r5", true)
         .Case("mips64r6", true)
         .Case("octeon", true)
-        .Case("p5600", true)
+        .Case("p5600", !GPR64Required)
         .Default(false);
   }
   const std::string& getCPU() const { return CPU; }

+ 5 - 0
test/Driver/mips-abi.c

@@ -98,6 +98,11 @@
 // MIPS-ARCH-P5600: "-target-cpu" "p5600"
 // MIPS-ARCH-P5600: "-target-abi" "o32"
 //
+// RUN: not %clang -target mips-linux-gnu -c %s \
+// RUN:        -march=p5600 -mabi=64 2>&1 \
+// RUN:   | FileCheck -check-prefix=MIPS-ARCH-P5600-N64 %s
+// MIPS-ARCH-P5600-N64: error: unknown target ABI 'n64'
+//
 // RUN: %clang -target mips-linux-gnu -### -c %s \
 // RUN:        -march=mips64 2>&1 \
 // RUN:   | FileCheck -check-prefix=MIPS-ARCH-3264 %s