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/fabs.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/fabs.ll')
-rw-r--r-- | llvm/test/CodeGen/AArch64/fabs.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/AArch64/fabs.ll b/llvm/test/CodeGen/AArch64/fabs.ll index 58f047afa77..e702040f8e6 100644 --- a/llvm/test/CodeGen/AArch64/fabs.ll +++ b/llvm/test/CodeGen/AArch64/fabs.ll @@ -22,7 +22,7 @@ define double @not_fabs(double %x) #0 { define float @still_not_fabs(float %x) #0 { ; CHECK-LABEL: still_not_fabs: ; CHECK: // %bb.0: -; CHECK-NEXT: orr w8, wzr, #0x80000000 +; CHECK-NEXT: mov w8, #-2147483648 ; CHECK-NEXT: fmov s2, w8 ; CHECK-NEXT: fneg s1, s0 ; CHECK-NEXT: fcmp s0, s2 @@ -72,7 +72,7 @@ define <4 x float> @nabsv4f32(<4 x float> %a) { define <2 x double> @nabsv2d64(<2 x double> %a) { ; CHECK-LABEL: nabsv2d64: ; CHECK: // %bb.0: -; CHECK-NEXT: orr x8, xzr, #0x8000000000000000 +; CHECK-NEXT: mov x8, #-9223372036854775808 ; CHECK-NEXT: dup v1.2d, x8 ; CHECK-NEXT: orr v0.16b, v0.16b, v1.16b ; CHECK-NEXT: ret |