This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Avoid emitting MOVID when NEON is disabled
ClosedPublic

Authored by arichardson on May 9 2022, 8:10 AM.

Details

Summary

Previously, creating a zero floating-point constant used MOVID even when
NEON was disabled which resulted in the following fatal error:
Attempting to emit MOVID instruction but the Feature_HasNEON predicate(s) are not met

Diff Detail

Event Timeline

arichardson created this revision.May 9 2022, 8:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 9 2022, 8:10 AM
arichardson requested review of this revision.May 9 2022, 8:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 9 2022, 8:10 AM
dmgreen accepted this revision.May 10 2022, 3:11 AM

Sounds good to me.

llvm/test/CodeGen/AArch64/movid-no-neon.ll
3

These tests don't usually need -O0 or -filetype=asm

This revision is now accepted and ready to land.May 10 2022, 3:11 AM
This revision was landed with ongoing or failed builds.May 14 2022, 7:43 AM
This revision was automatically updated to reflect the committed changes.