-
Notifications
You must be signed in to change notification settings - Fork 11.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
- Loading branch information
1 parent
83c431f
commit 1379b15
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// RUN: llvm-mc -filetype=obj -triple aarch64-none-eabi %s | llvm-objdump -d - | FileCheck %s | ||
// RUN: llvm-mc -filetype=obj -triple aarch64_be-none-eabi %s | llvm-objdump -d - | FileCheck %s | ||
|
||
// CHECK: 0: 00 00 80 d2 mov x0, #0 | ||
// CHECK: 4: 00 00 80 d2 mov x0, #0 | ||
// CHECK: 8: 1f 20 03 d5 nop | ||
// CHECK: c: 1f 20 03 d5 nop | ||
// CHECK: 10: 00 00 80 d2 mov x0, #0 | ||
|
||
.text | ||
mov x0, #0 | ||
mov x0, #0 | ||
.p2align 4 | ||
mov x0, #0 |