-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
Description
The GOMIPS_softfloat and GOMIPS64_softfloat defines can be used to conditionally compile floating-point context save/restore. It would be nice if assembler would error out when trying to use FP registers when targeting softfloat. Currently we silently end up with floating-point instructions in softfloat binaries.
go/src/runtime/preempt_mips64x.s
Lines 40 to 45 in cd9fd64
| MOVV FCR31, R1 | |
| MOVV R1, 224(R29) | |
| MOVD F0, 232(R29) | |
| MOVD F1, 240(R29) | |
| MOVD F2, 248(R29) | |
| MOVD F3, 256(R29) |
go/src/runtime/preempt_mipsx.s
Lines 40 to 45 in cd9fd64
| MOVW FCR31, R1 | |
| MOVW R1, 112(R29) | |
| MOVF F0, 116(R29) | |
| MOVF F1, 120(R29) | |
| MOVF F2, 124(R29) | |
| MOVF F3, 128(R29) |