llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

A recent RISCV commit broke ARM internal tests

Open miyuki opened this issue 7 years ago • 3 comments

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.

miyuki avatar Aug 30 '19 17:08 miyuki

Hi Mikhail,

Thanks for your help to narrow down the issue. Really appreciate that.

ShivaChen avatar Sep 03 '19 04:09 ShivaChen

The test is now passing. Thanks for a prompt fix.

miyuki avatar Sep 02 '19 16:09 miyuki

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?

ShivaChen avatar Sep 01 '19 05:09 ShivaChen