Re: [PATCH] MIPS: Add conditions for use of the -mmips16e2 and -mips16 option.

2025-01-16 Thread Rong Zhang
On Thu, 2025-01-16 at 11:41 +, Maciej W. Rozycki wrote: > On Thu, 16 Jan 2025, Jie Mei wrote: > > > Make -mmips16e2 imply -mips16 as the ASE requires, so users won't > > be surprised even if they expect it to. Meanwhile, check if > > mips_isa_rev <= 5 when -mips16 is effective and >= 1 when -m

Re: [PATCH] MIPS: Add conditions for use of the -mmips16e2 and -mips16 option.

2025-01-16 Thread Maciej W. Rozycki
On Thu, 16 Jan 2025, Jie Mei wrote: > Make -mmips16e2 imply -mips16 as the ASE requires, so users won't > be surprised even if they expect it to. Meanwhile, check if > mips_isa_rev <= 5 when -mips16 is effective and >= 1 when -mmips16e2 > is effective. MIPSr1 is incompatible with MIPS16e2, and t

[PATCH] MIPS: Add conditions for use of the -mmips16e2 and -mips16 option.

2025-01-15 Thread Jie Mei
MIPS16e2 ASE is a superset of MIPS16e ASE, which is again a superset of MIPS16 ASE. Later, all of them are forbidden in Release 6. Make -mmips16e2 imply -mips16 as the ASE requires, so users won't be surprised even if they expect it to. Meanwhile, check if mips_isa_rev <= 5 when -mips16 is effecti