Linux SPARSE checker discussions
 help / color / mirror / Atom feed
* Cast to double being removed
@ 2017-03-17  0:00 Dibyendu Majumdar
  2017-03-17  0:24 ` Linus Torvalds
  2017-03-19 15:22 ` Luc Van Oostenryck
  0 siblings, 2 replies; 9+ messages in thread
From: Dibyendu Majumdar @ 2017-03-17  0:00 UTC (permalink / raw)
  To: Linux-Sparse

Hi,

In this simple example:

extern int printf(const char *, ...);
int main(void)
{
    printf("%f\n", (double)-1);
    return 0;
}

The linearized output is:

main:
.L0:
        <entry-point>
        symaddr.64  %r1 <- <anon symbol:000001BAAB487258>
        call.32     %r2 <- printf, %r1, $-1
        ret.32      $0

The cast to double has been removed. I am trying to understand where
this is happening as it seems to happen quite early on. Any tips on
where I should look?

Thanks and Regards
Dibyendu

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

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

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-17  0:00 Cast to double being removed Dibyendu Majumdar
2017-03-17  0:24 ` Linus Torvalds
2017-03-17  9:31   ` [PATCH] fix: expansion of integers to floats Luc Van Oostenryck
2017-03-17 10:38   ` Cast to double being removed Dibyendu Majumdar
2017-03-18  1:30     ` Dibyendu Majumdar
2017-03-19 15:22 ` Luc Van Oostenryck
2017-03-19 15:43   ` Dibyendu Majumdar
2017-03-19 15:54     ` Luc Van Oostenryck
2017-03-19 15:59       ` Dibyendu Majumdar

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