Skip to content

Commit

Permalink
[SVE] Refactor sve-bitcast.ll to include all combinations for legal t…
Browse files Browse the repository at this point in the history
…ypes.

Patch enables custom lowering for MVT::nxv4bf16 because otherwise
the refactored test file triggers a selection failure.

The reason for the refactoring it to highlight cases where the
generated code is wrong.
  • Loading branch information
paulwalker-arm committed Jun 3, 2022
1 parent fe65c56 commit 2dde272
Show file tree
Hide file tree
Showing 2 changed files with 681 additions and 167 deletions.
2 changes: 1 addition & 1 deletion llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
Expand Up @@ -1136,7 +1136,7 @@ AArch64TargetLowering::AArch64TargetLowering(const TargetMachine &TM,

// Legalize unpacked bitcasts to REINTERPRET_CAST.
for (auto VT : {MVT::nxv2i16, MVT::nxv4i16, MVT::nxv2i32, MVT::nxv2bf16,
MVT::nxv2f16, MVT::nxv4f16, MVT::nxv2f32})
MVT::nxv4bf16, MVT::nxv2f16, MVT::nxv4f16, MVT::nxv2f32})
setOperationAction(ISD::BITCAST, VT, Custom);

for (auto VT :
Expand Down

0 comments on commit 2dde272

Please sign in to comment.