<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Wrong float return for i386-pc-elfiamcu target"
href="https://llvm.org/bugs/show_bug.cgi?id=26475">26475</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Wrong float return for i386-pc-elfiamcu target
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>hjl.tools@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>david.l.kreitzer@intel.com, kevin.b.smith@intel.com, llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>[hjl@gnu-6 mcu-1]$ cat float.c
float
foo (void)
{
return 68;
}
[hjl@gnu-6 mcu-1]$ make
/net/gnu-32/export/build/gnu/llvm-clang-x32-bootstrap/stage1/build-x86_64-linux-gnux32/bin/clang
-S -O -target i386-pc-elfiamcu float.c
[hjl@gnu-6 mcu-1]$ cat float.s
.text
.file "float.c"
.section .rodata.cst4,"aM",@progbits,4
.p2align 2
.LCPI0_0:
.long 1116209152 # float 68
.text
.globl foo
.p2align 4, 0x90
.type foo,@function
foo: # @foo
# BB#0:
pushl %ebp
movl %esp, %ebp
flds .LCPI0_0
popl %ebp
retl
.Lfunc_end0:
.size foo, .Lfunc_end0-foo
GCC generates:
oo:
.LFB0:
.cfi_startproc
movl .LC0, %eax
ret
.cfi_endproc
.LFE0:
.size foo, .-foo</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>