[RISCV] Use the extensions in the canonical order (NFC)
authorEvandro Menezes <ebahapo@users.noreply.github.com>
Tue, 29 Sep 2020 22:11:12 +0000 (17:11 -0500)
committerEvandro Menezes <ebahapo@users.noreply.github.com>
Wed, 30 Sep 2020 01:03:02 +0000 (20:03 -0500)
Use the ISA extensions for specific processors in the conventional canonical order.

llvm/lib/Target/RISCV/RISCV.td

index 578b393..66eda3b 100644 (file)
@@ -231,16 +231,16 @@ def : ProcessorModel<"rocket-rv64", RocketModel, [Feature64Bit]>;
 def : ProcessorModel<"bullet-rv32", BulletModel, []>;
 def : ProcessorModel<"bullet-rv64", BulletModel, [Feature64Bit]>;
 
-def : ProcessorModel<"sifive-e31", RocketModel, [FeatureStdExtA,
-                                                 FeatureStdExtC,
-                                                 FeatureStdExtM]>;
+def : ProcessorModel<"sifive-e31", RocketModel, [FeatureStdExtM,
+                                                 FeatureStdExtA,
+                                                 FeatureStdExtC]>;
 
 def : ProcessorModel<"sifive-u54", RocketModel, [Feature64Bit,
+                                                 FeatureStdExtM,
+                                                 FeatureStdExtF,
                                                  FeatureStdExtA,
-                                                 FeatureStdExtC,
                                                  FeatureStdExtD,
-                                                 FeatureStdExtF,
-                                                 FeatureStdExtM]>;
+                                                 FeatureStdExtC]>;
 
 //===----------------------------------------------------------------------===//
 // Define the RISC-V target.