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

Sign extend from <4 x i1> to <4 x i64> - wrong code generated

Open delena opened this issue 13 years ago • 2 comments

Bugzilla Link 15267
Resolution FIXED
Resolved on Sep 12, 2015 10:39
Version trunk
OS All
CC @RKSimon,@darkbuck

Extended Description

The generated code for this testcase is wrong.

define <4 x i64> @​test3(<4 x i1>* %in) nounwind { %wide.load35 = load <4 x i1>* %in, align 1 %sext = sext <4 x i1> %wide.load35 to <4 x i64> ret <4 x i64> %sext }

    movzbl  (%rcx), %eax
    shlq    $63, %rax
    sarq    $63, %rax
    vmovd   %rax, %xmm0
    vbroadcastsd    %xmm0, %ymm0
    ret

delena avatar Feb 14 '13 16:02 delena

This has been fixed for some time. Added vector i1 sextload tests at rL247509.

RKSimon avatar Sep 12 '15 17:09 RKSimon

patch is submitted for review at http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20130218/166183.html

darkbuck avatar Feb 20 '13 08:02 darkbuck