Skip to content

[AArch64] AArch64TargetLowering::computeKnownBitsForTargetNode - add support for AArch64ISD::MOV/MVN constants #153159

@RKSimon

Description

@RKSimon

Followup to #148596

AArch64TargetLowering::computeKnownBitsForTargetNode is still missing for the following constant nodes:

  case AArch64ISD::MOVIedit:
  case AArch64ISD::MOVImsl:
  case AArch64ISD::MVNIshift:
  case AArch64ISD::MVNImsl:

As its tricky to get codegen folds to consistently use these, it might be easiest to add test coverage to AArch64SelectionDAGTest.cpp (there are already some computeKnownBits tests in there) - adding unit test coverage for the existing AArch64ISD::MOVI and AArch64ISD::MOVIshift handling would be useful there as well.

CC @aabhinavg1

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions