Issue 75730
Summary Clang-18 crash: Assertion `LC != RTLIB::UNKNOWN_LIBCALL && "Don't know how to expand this XINT_TO_FP!"' failed.
Labels new issue
Assignees
Reporter iamanonymouscs
    Clang-18 with -frounding-math crashes on the test case.
Compiler explorer(assertion trunck): https://godbolt.org/z/MsY6YbGE5
```
$cat mutant.c
float a (void)
{
  return 0x353eab28b46b03ea99b84f9736cd8dbe5e986915a0383c3cb381c0da41e31b3621c75fd53262bfcb1b0e6251dbf00f3988784e29b08b65640c263e4d0959832a20e2ff5245be1e60uwb;
}

$clang-18 -frounding-math mutant.c
mutant.c:3:10: warning: '_BitInt' suffix for literals is a C23 extension [-Wc23-extensions]
    3 |   return 0x353eab28b46b03ea99b84f9736cd8dbe5e986915a0383c3cb381c0da41e31b3621c75fd53262bfcb1b0e6251dbf00f3988784e29b08b65640c263e4d0959832a20e2ff5245be1e60uwb;
 |          ^
fatal error: error in backend: Unsupported library call operation!
clang-18: error: clang frontend command failed with exit code 70 (use -v to see invocation)
Ubuntu clang version 18.0.0 (++20231018091808+48a53509e851-1~exp1~20231018091910.1571)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-18: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-18: note: diagnostic msg: /tmp/mutant-31d0f6.c
clang-18: note: diagnostic msg: /tmp/mutant-31d0f6.sh
clang-18: note: diagnostic msg: 

********************
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to