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

2015-08-03 Thread Guo, Yejun
float immediate value with %f instead of %g > -Original Message- > From: Guo, Yejun > Sent: Tuesday, August 4, 2015 10:50 AM > To: Song, Ruiling; beignet@lists.freedesktop.org > Subject: RE: [Beignet] [PATCH] output float immediate value with %f > instead of %g >

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

2015-08-03 Thread Song, Ruiling
> -Original Message- > From: Guo, Yejun > Sent: Tuesday, August 4, 2015 10:50 AM > To: Song, Ruiling; beignet@lists.freedesktop.org > Subject: RE: [Beignet] [PATCH] output float immediate value with %f instead > of %g > > Yes, it would be better, not sure why th

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

2015-08-03 Thread Guo, Yejun
H] output float immediate value with %f instead of %g > -Original Message- > From: Guo, Yejun > Sent: Sunday, August 2, 2015 10:42 AM > To: Song, Ruiling; beignet@lists.freedesktop.org > Subject: RE: [Beignet] [PATCH] output float immediate value with %f > instead of %g

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

2015-08-03 Thread Song, Ruiling
> -Original Message- > From: Guo, Yejun > Sent: Sunday, August 2, 2015 10:42 AM > To: Song, Ruiling; beignet@lists.freedesktop.org > Subject: RE: [Beignet] [PATCH] output float immediate value with %f instead > of %g > > For the kernel > > uint aaa

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

2015-08-01 Thread Guo, Yejun
value). And, to get the exact value of aaa (with real format uint), the hex format is a necessary. -Original Message- From: Song, Ruiling Sent: Friday, July 31, 2015 4:02 PM To: Guo, Yejun; beignet@lists.freedesktop.org Subject: RE: [Beignet] [PATCH] output float immediate value with %f i

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

2015-07-31 Thread Song, Ruiling
> > In disassemble, a float immediate value is printf with %g, it outputs a wrong > value with 8 bytes, change it to be %f with the correct 4 bytes. At some > cases, > the real data type is not float, so also print the value in hex format. As far as I know, %g will select %f or %e automatically,

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

2015-07-30 Thread Guo, Yejun
Ping for review, thanks. -Original Message- From: Guo, Yejun Sent: Thursday, July 23, 2015 8:48 AM To: beignet@lists.freedesktop.org Cc: Guo, Yejun Subject: [PATCH] output float immediate value with %f instead of %g In disassemble, a float immediate value is printf with %g, it outputs a

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

2015-07-23 Thread Guo Yejun
In disassemble, a float immediate value is printf with %g, it outputs a wrong value with 8 bytes, change it to be %f with the correct 4 bytes. At some cases, the real data type is not float, so also print the value in hex format. Signed-off-by: Guo Yejun --- backend/src/backend/gen/gen_mesa_disa