A recent RISCV commit broke ARM internal tests
| Bugzilla Link | 43183 |
| Resolution | FIXED |
| Resolved on | Sep 02, 2019 21:13 |
| Version | trunk |
| OS | Linux |
| Attachments | Frontend invocation, LLVM IR which causes an llc crash |
| CC | @miyuki,@ShivaChen |
Extended Description
Starting with commit:
commit b39876d8cddb3d16b69481810151604ab6afa542 Author: Shiva Chen [email protected] Date: Wed Aug 28 23:40:37 2019 +0000
[RISCV] Avoid generating AssertZext for LP64 ABI when lowering floating LibCall
...
Differential Revision: https://reviews.llvm.org/D65497
llvm-svn: 370275
some Arm internal tests broke. The following code causes the compiler to crash:
$ cat test.c int a; void fn1() { 0.0 * a && 0.0; }
Unfortunately our downstream compiler driver is quite different from upstream, so I could not find a set of clang driver options which would cause the crash. However I have attached the direct frontend invocation that reproduces the crash (cc1.sh) and also an llvm IR file (test.ll) which causes llc to crash.
Hi Mikhail,
Thanks for your help to narrow down the issue. Really appreciate that.
The test is now passing. Thanks for a prompt fix.
Hi Mikhail,
Thanks for the report and sorry for the inconvenient. I committed the following patch to fix the issue. [TargetLowering] Fix Bugzilla ID 43183 to avoid soften comparison broken with constant inputs Could you help me to check whether the patch could pass the internal test cases?