On Wed, 2022-07-06 at 10:35 +0800, Huacai Chen wrote:Actually, flush to zero has been removed in 3A5000.
Maybe Xuerui and Ruoyao have some misunderstanding. LSX/LASX willMy guess:
surely be upstream, this has nothing to do with cleanup VCSR16.
Because FP/LSX/LASX share the same control bits in FCSR now.
Almost all behavior of vector unit is controlled by FCSR (for example,
the rounding of both FPU and vector unit should be controlled by FCSR
altogether), except one bit similar to the bit 24 of MSACSR ("flush to
zero") is in VCSR [^1]. And "flush to zero" is not really useful so it
will be removed in 3A6000, and we'll not use it for 3A5000.
The hardware(LA464) has removed the vcsr("has but not use" is incorrect), and here are some details:
[^1]: A more bold guess: the hardware engineers could have just said
"let's wire this register called MSACSR in GS464V as FCSR16/VCSR in
LA464, maybe it will be useful and who knows?" But now in practice it's
not useful.
Am I correct?