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

Miscompilation in code which LLVM partially vectorizes

Open momchil-velikov opened this issue 8 years ago • 2 comments

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.

momchil-velikov avatar Jan 24 '18 17:01 momchil-velikov

Fixed in https://reviews.llvm.org/D43282

miyuki avatar Feb 20 '18 17:02 miyuki

assigned to @miyuki

momchil-velikov avatar Jan 24 '18 17:01 momchil-velikov