[AArch64] Fix the generation of BE Nops
authorDavid Green <david.green@arm.com>
Fri, 20 May 2022 08:31:00 +0000 (09:31 +0100)
committerDavid Green <david.green@arm.com>
Fri, 20 May 2022 08:31:00 +0000 (09:31 +0100)
commit1379b150991f70a5782e9a143c2ba5308da1161c
tree9d0dcea79f08bfd143045e386435dd149b1db725
parent83c431fb9e72abbd2eddf26388245eb4963370e2
[AArch64] Fix the generation of BE Nops

Big endian Nops were being generated as d5 03 20 1f   fnmadd  s21, s30,
s0, s0, getting the bytes of the NOP in the wrong order. This switches
the bytes to not be dependant on the endianness.

Differential Revision: https://reviews.llvm.org/D125980
llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
llvm/test/MC/AArch64/align.s [new file with mode: 0644]