Change names for MIPS "generic" processors defined in Mips.td to match what GNU
authorAkira Hatanaka <ahatanaka@mips.com>
Tue, 29 Nov 2011 23:08:41 +0000 (23:08 +0000)
committerAkira Hatanaka <ahatanaka@mips.com>
Tue, 29 Nov 2011 23:08:41 +0000 (23:08 +0000)
tools use. Patch by Simon Atanasyan.

"mips32r1" => "mips32"
"4ke" => mips32r2"
"mips64r1" => "mips64"

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145451 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/Mips.td
lib/Target/Mips/MipsSubtarget.cpp
test/CodeGen/Mips/extins.ll
test/CodeGen/Mips/largeimmprinting.ll
test/CodeGen/Mips/mips64fpldst.ll
test/CodeGen/Mips/mips64instrs.ll
test/CodeGen/Mips/mips64intldst.ll
test/CodeGen/Mips/rotate.ll

index 39c2c164f664c9678e78b2dbe17c9be201a1604e..e9e0f60566e9cb08af57a8919f1d0999130e3b97 100644 (file)
@@ -79,9 +79,9 @@ def FeatureMips64r2    : SubtargetFeature<"mips64r2", "MipsArchVersion",
 class Proc<string Name, list<SubtargetFeature> Features>
  : Processor<Name, MipsGenericItineraries, Features>;
 
-def : Proc<"mips32r1", [FeatureMips32]>;
-def : Proc<"4ke", [FeatureMips32r2]>;
-def : Proc<"mips64r1", [FeatureMips64]>;
+def : Proc<"mips32", [FeatureMips32]>;
+def : Proc<"mips32r2", [FeatureMips32r2]>;
+def : Proc<"mips64", [FeatureMips64]>;
 def : Proc<"mips64r2", [FeatureMips64r2]>;
 
 def MipsAsmWriter : AsmWriter {
index 016d449a106715b9ff1a6074d47163e741fb639b..dc299f27830b85adf676e90732b4f2b712916c57 100644 (file)
@@ -31,7 +31,7 @@ MipsSubtarget::MipsSubtarget(const std::string &TT, const std::string &CPU,
 {
   std::string CPUName = CPU;
   if (CPUName.empty())
-    CPUName = "mips32r1";
+    CPUName = "mips32";
 
   // Parse features string.
   ParseSubtargetFeatures(CPUName, FS);
index 69f53e503f6d3a72b12c55a15fb3afa989410551..a164f7047b5cc2e9460c7eb60d4742dea13a6580 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -march=mips -mcpu=4ke < %s | FileCheck %s
+; RUN: llc -march=mips -mcpu=mips32r2 < %s | FileCheck %s
 
 define i32 @ext0_5_9(i32 %s, i32 %pos, i32 %sz) nounwind readnone {
 entry:
index fcc20f799440ffb99b1d7222fe5fdd13d319233a..2333f0789edc9b08374a4f37aec3a6029d305064 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -march=mipsel -mcpu=4ke < %s | FileCheck %s
+; RUN: llc -march=mipsel -mcpu=mips32r2 < %s | FileCheck %s
 
 %struct.S1 = type { [65536 x i8] }
 
index b8f3ca9d79855aa5c5c44243cee6ae6fd5fe3369..abeff095c41c8dc2a63b22b8aeb20aed1ad69604 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc  < %s -march=mips64el -mcpu=mips64r1 -mattr=n64 | FileCheck %s -check-prefix=CHECK-N64
-; RUN: llc  < %s -march=mips64el -mcpu=mips64r1 -mattr=n32 | FileCheck %s -check-prefix=CHECK-N32
+; RUN: llc  < %s -march=mips64el -mcpu=mips64 -mattr=n64 | FileCheck %s -check-prefix=CHECK-N64
+; RUN: llc  < %s -march=mips64el -mcpu=mips64 -mattr=n32 | FileCheck %s -check-prefix=CHECK-N32
 
 @f0 = common global float 0.000000e+00, align 4
 @d0 = common global double 0.000000e+00, align 8
index c9812a27699252e4e4ce0e08a144a7743de8a69f..9bc178c63d4f1c0ba4586ef191c1c7aa28a70323 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -march=mips64el -mcpu=mips64r1 < %s | FileCheck %s
+; RUN: llc -march=mips64el -mcpu=mips64 < %s | FileCheck %s
 
 define i64 @f0(i64 %a0, i64 %a1) nounwind readnone {
 entry:
index fdf496b19189a922cbd37c40a357ea836fac3235..af3a2f80de93a0cca2d279aeb2db75b63c9d6f9b 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc  < %s -march=mips64el -mcpu=mips64r1 -mattr=n64 | FileCheck %s -check-prefix=CHECK-N64
-; RUN: llc  < %s -march=mips64el -mcpu=mips64r1 -mattr=n32 | FileCheck %s -check-prefix=CHECK-N32
+; RUN: llc  < %s -march=mips64el -mcpu=mips64 -mattr=n64 | FileCheck %s -check-prefix=CHECK-N64
+; RUN: llc  < %s -march=mips64el -mcpu=mips64 -mattr=n32 | FileCheck %s -check-prefix=CHECK-N32
 
 @c = common global i8 0, align 4
 @s = common global i16 0, align 4
index 8e27f4aad6eb7cc6303555764d855dcec7d5e6f0..4f3cfb7df41c5a65699e6285b36dd09031c32677 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -march=mips -mcpu=4ke < %s | FileCheck %s
+; RUN: llc -march=mips -mcpu=mips32r2 < %s | FileCheck %s
 
 ; CHECK:  rotrv $2, $4
 define i32 @rot0(i32 %a, i32 %b) nounwind readnone {