llvm-project
llvm-project copied to clipboard
Miscompilation in code which LLVM partially vectorizes
| Bugzilla Link | 36079 |
| Resolution | FIXED |
| Resolved on | Feb 20, 2018 09:26 |
| Version | trunk |
| OS | Linux |
| Attachments | minimal testcase |
| CC | @miyuki |
Extended Description
The attached test program is miscompiled by LLVM, when targeting Arm architecture, which includes NEON instructions, at optimisation levels -02, -O3, -Os and -Oz. All the elements of the array c are expected to be set to 1, however the last one (c[3]) stays 3.
Fixed in https://reviews.llvm.org/D43282
assigned to @miyuki