Linux SPARSE checker discussions
 help / color / mirror / Atom feed
* Potential linearizer over simplication
@ 2017-03-15  0:00 Dibyendu Majumdar
  2017-03-16 11:16 ` Dibyendu Majumdar
  2017-03-16 17:30 ` Luc Van Oostenryck
  0 siblings, 2 replies; 4+ messages in thread
From: Dibyendu Majumdar @ 2017-03-15  0:00 UTC (permalink / raw)
  To: Linux-Sparse

Hi,

I am investigating a test that is failing. I noticed that the
linearized output for:

static double cbrtl (double x)
{
    int hx;
    double r,s,w;
    double lt;
    unsigned sign;
    union {
 double t;
 unsigned pt[2];
    } ut, ux;
    int n0;
    ut.t = 1.0;
    n0 = (ut.pt[0] == 0);
    ut.t = 0.0;
    ux.t = x;

is this:

cbrtl:
.L0:
 <entry-point>
 load.32     %r2 <- 0[ut]
 seteq.32    %r3 <- %r2, $0
 set.64      %r4 <- 0.000000
 store.64    %r4 -> 0[ut]
 store.64    %arg1 -> 0[ux]

The assignment of 1.0 to ut.t has been skipped. Does this look
correct? Is there a way to switch off optimisation / simplification?

Thanks and Regards
Dibyendu

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-16 17:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-15  0:00 Potential linearizer over simplication Dibyendu Majumdar
2017-03-16 11:16 ` Dibyendu Majumdar
2017-03-16 11:27   ` Dibyendu Majumdar
2017-03-16 17:30 ` Luc Van Oostenryck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox