Skip to content

[AArch64] Suspect code near ICE on memset call. #20521

@llvmbot

Description

@llvmbot
Bugzilla Link 20147
Version trunk
OS Linux
Reporter LLVM Bugzilla Contributor
CC @jmolloy,@TNorthover

Extended Description

In r211960, I fixed an ICE in getMemsetValue.

The segment of code just below the fix looks suspect as well, but I was unable to generate a test case in my quick attempt.

Specifically, line 3638 seems to assume the VT of a vector element is either f32 or f64.

3636 else if (VT.isVector()) {
3637 unsigned NumElts = VT.getVectorNumElements();
3638 MVT EltVT = (VT.getVectorElementType() == MVT::f32) ? MVT::i32 : MVT::i64;
3639 return DAG.getNode(ISD::BITCAST, dl, VT,
3640 DAG.getConstant(0, EVT::getVectorVT(*DAG.getContext(),
3641 EltVT, NumElts)));
3642 } else

Hoping someone wouldn't mind taking a look.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillacrashPrefer [crash-on-valid] or [crash-on-invalid]llvm:SelectionDAGSelectionDAGISel as well

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions