Skip to content

Commit 4da48d6

Browse files
committed
Revert "MIPS: Add conditions for use of the -mmips16e2 and -mips16 option."
This reverts commit f731fa5.
1 parent 5a4a419 commit 4da48d6

File tree

5 files changed

+4
-23
lines changed

5 files changed

+4
-23
lines changed

gcc/config/mips/mips.cc

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20433,16 +20433,6 @@ mips_option_override (void)
2043320433
if (TARGET_MICROMIPS && TARGET_MIPS16)
2043420434
error ("unsupported combination: %s", "-mips16 -mmicromips");
2043520435

20436-
/* Make -mmips16e2 imply -mips16 and forbid its coexistence with
20437-
-mmicromips as the ASE requires. */
20438-
if (TARGET_MIPS16E2)
20439-
{
20440-
if (TARGET_MICROMIPS)
20441-
error ("unsupported combination: %s", "-mmips16e2 -mmicromips");
20442-
20443-
target_flags |= MASK_MIPS16;
20444-
}
20445-
2044620436
/* Prohibit Paired-Single and MSA combination. This is software restriction
2044720437
rather than architectural. */
2044820438
if (ISA_HAS_MSA && TARGET_PAIRED_SINGLE_FLOAT)
@@ -20695,15 +20685,6 @@ mips_option_override (void)
2069520685
"-mcompact-branches=never");
2069620686
}
2069720687

20698-
/* MIPS16* ASE is forbidden in Release 6, so -mips16 is not available
20699-
for MIPS R6 onwards. */
20700-
if ((mips_base_compression_flags & MASK_MIPS16) && mips_isa_rev >= 6)
20701-
error ("MIPS16* ASE is forbidden in Release 6");
20702-
20703-
/* Make sure that the user use Release[2,5] when using -mmips16e2. */
20704-
if (TARGET_MIPS16E2 && mips_isa_rev < 2)
20705-
error ("%<-mmips16e2%> requires Release[2,5]");
20706-
2070720688
/* Require explicit relocs for MIPS R6 onwards. This enables simplification
2070820689
of the compact branch and jump support through the backend. */
2070920690
if (!TARGET_EXPLICIT_RELOCS && mips_isa_rev >= 6)

gcc/testsuite/gcc.target/mips/mips16e2-cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* { dg-options "-mno-abicalls -mgpopt -G8 -mabi=32 isa_rev>=2 -mmips16e2" } */
1+
/* { dg-options "-mno-abicalls -mgpopt -G8 -mabi=32 -mips32r2 -mips16 -mmips16e2" } */
22
/* { dg-skip-if "naming registers makes this a code quality test" { *-*-* } { "-O0" } { "" } } */
33

44
/* Test cache. */

gcc/testsuite/gcc.target/mips/mips16e2-cmov.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* { dg-options "-mno-abicalls -mgpopt -G8 -mabi=32 isa_rev>=2 -mmips16e2 -mbranch-cost=2" } */
1+
/* { dg-options "-mno-abicalls -mgpopt -G8 -mabi=32 -mips16 -mmips16e2 -mbranch-cost=2" } */
22
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
33

44
/* Test MOVN. */

gcc/testsuite/gcc.target/mips/mips16e2-gp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* { dg-options "-mno-abicalls -mgpopt -G8 -mabi=32 isa_rev>=2 -mmips16e2" } */
1+
/* { dg-options "-mno-abicalls -mgpopt -G8 -mabi=32 -mips16 -mmips16e2" } */
22
/* { dg-skip-if "per-function expected output" { *-*-* } { "-flto" } { "" } } */
33

44
/* Generate GP-relative ADDIU. */

gcc/testsuite/gcc.target/mips/mips16e2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* { dg-options "-mno-abicalls -mgpopt -G8 -mabi=32 isa_rev>=2 -mmips16e2" } */
1+
/* { dg-options "-mno-abicalls -mgpopt -G8 -mabi=32 -mips16 -mmips16e2" } */
22
/* { dg-skip-if "per-function expected output" { *-*-* } { "-flto" } { "" } } */
33

44
/* ANDI is a two operand instruction. Hence, it won't be generated if src and

0 commit comments

Comments
 (0)