diff options
author | Eli Friedman <efriedma@quicinc.com> | 2019-03-25 21:25:28 +0000 |
---|---|---|
committer | Eli Friedman <efriedma@quicinc.com> | 2019-03-25 21:25:28 +0000 |
commit | 92d0d133661f6c1bcc3dd37c7a6435a2c0733f81 (patch) | |
tree | fd283e47226841aa0869a6b7827c6c2f475db7a3 /llvm/test/CodeGen/AArch64/branch-relax-asm.ll | |
parent | 4dcf3acce6d7455fd079d8e57441906ca2bad254 (diff) | |
download | bcm5719-llvm-92d0d133661f6c1bcc3dd37c7a6435a2c0733f81.tar.gz bcm5719-llvm-92d0d133661f6c1bcc3dd37c7a6435a2c0733f81.zip |
[AArch64] Prefer "mov" over "orr" to materialize constants.
This is generally more readable due to the way the assembler aliases
work.
(This causes a lot of test changes, but it's not really as scary as it
looks at first glance; it's just mechanically changing a bunch of checks
for orr to check for mov instead.)
Differential Revision: https://reviews.llvm.org/D59720
llvm-svn: 356954
Diffstat (limited to 'llvm/test/CodeGen/AArch64/branch-relax-asm.ll')
-rw-r--r-- | llvm/test/CodeGen/AArch64/branch-relax-asm.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/AArch64/branch-relax-asm.ll b/llvm/test/CodeGen/AArch64/branch-relax-asm.ll index 7409c84e618..89d0529c966 100644 --- a/llvm/test/CodeGen/AArch64/branch-relax-asm.ll +++ b/llvm/test/CodeGen/AArch64/branch-relax-asm.ll @@ -10,7 +10,7 @@ define i32 @test_asm_length(i32 %in) { ; CHECK: b [[FALSE:LBB[0-9]+_[0-9]+]] ; CHECK: [[TRUE]]: -; CHECK: orr w0, wzr, #0x4 +; CHECK: mov w0, #4 ; CHECK: nop ; CHECK: nop ; CHECK: nop |