[Beignet] [PATCH] output float immediate value with %f instead of %g

Song, Ruiling ruiling.song at intel.com
Mon Aug 3 21:40:45 PDT 2015



> -----Original Message-----
> From: Guo, Yejun
> Sent: Tuesday, August 4, 2015 10:50 AM
> To: Song, Ruiling; beignet at lists.freedesktop.org
> Subject: RE: [Beignet] [PATCH] output float immediate value with %f instead
> of %g
> 
> Yes, it would be better, not sure why the current code generates "F" for the mov
> instruction, I'll take a look.
The code generator select float type instead of integer type because IVB has more floating point ALU over integer ones.
See LoadImm pattern in gen_insn_selection.cpp
But I don't think this is a performance sensitive point.

Thanks!
Ruiling


More information about the Beignet mailing list