<div dir="ltr">Hi all,<div><br></div><div>I'm trying to compile LLVM on the Chromebook and it was all ok last week, but now I keep getting this error:</div><div><br></div><div>opt: <stdin>:56:15: error: floating point constant invalid for type<br>

</div><div><div>  store float 1.0, float* %tmpcast2, align 4</div><div><br></div><div><div>Searching the list, I found that it has to do with how LLVM represents floating points in the IR, and frankly, I'm at a loss. Above, opt seems to be requiring an hexa literal, while the error below is requiring the numeric literal:<br>

</div></div><div><br></div><div><div><div>2011-11-11-EmptyStruct.ll:10:10: error: expected string not found in input</div><div>; CHECK: ret double 1.0</div><div>         ^</div><div><stdin>:4:23: note: scanning from here</div>

<div>define double @test() nounwind uwtable ssp {</div><div>                      ^</div><div><stdin>:6:2: note: possible intended match here</div><div> ret double 0x3FF7ED38F90</div><div> ^</div></div></div><div><br>

</div><div>The post I found about this issue said things about 32-bit float being represented by 64-bit literals, which doesn't help matters.</div><div><br></div><div>I'm configuring it with the same line as the buildbots, the ABI is the same and everything. The Ubuntu distribution is slightly different, so that might be doing some evil.</div>
<div><br></div><div style>Any pointers?</div><div style><br></div><div style>cheers,</div><div style>--renato</div></div></div>