<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - generating the "__floatunditf" for arm64 ."
href="https://bugs.llvm.org/show_bug.cgi?id=50432">50432</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>generating the "__floatunditf" for arm64 .
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C11
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>umesh.kalappa0@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>compiler emits the "__floatunditf" call for arm64 i.e
$cat test.c
double funct(unsigned long long num)
{
long double test_number = 1.8;
return (double) (test_number / num) ;
}
int main_test_error(void)
{
funct(178394848);
return 0;
}
$clang --target=aarch64-arm-none-eabi -S test.c -O2
$cat test.s
funct: // @funct
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
mov x29, sp
bl __floatunditf
adrp x8, .LCPI0_0
mov v1.16b, v0.16b
ldr q0, [x8, :lo12:.LCPI0_0]
bl __divtf3
bl __trunctfdf2
ldp x29, x30, [sp], #16 // 16-byte Folded Reload
ret
.Lfunc_end0:
the calls like "__floatunditf" ,"__divtf3" and "__trunctfdf2" is not part
compiler_rt builtins for arm /arm 64 .
we believe that the compiler should generate the call "__aeabi_ul2d" and
"__aeabi_ddiv" for arm and we conclude its bug in compiler and we can fix the
same .</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>