summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AArch64/selectcc-to-shiftand.ll
diff options
context:
space:
mode:
authorEli Friedman <efriedma@quicinc.com>2019-03-25 21:25:28 +0000
committerEli Friedman <efriedma@quicinc.com>2019-03-25 21:25:28 +0000
commit92d0d133661f6c1bcc3dd37c7a6435a2c0733f81 (patch)
treefd283e47226841aa0869a6b7827c6c2f475db7a3 /llvm/test/CodeGen/AArch64/selectcc-to-shiftand.ll
parent4dcf3acce6d7455fd079d8e57441906ca2bad254 (diff)
downloadbcm5719-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/selectcc-to-shiftand.ll')
-rw-r--r--llvm/test/CodeGen/AArch64/selectcc-to-shiftand.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/AArch64/selectcc-to-shiftand.ll b/llvm/test/CodeGen/AArch64/selectcc-to-shiftand.ll
index 99190633547..6735a1e0bc0 100644
--- a/llvm/test/CodeGen/AArch64/selectcc-to-shiftand.ll
+++ b/llvm/test/CodeGen/AArch64/selectcc-to-shiftand.ll
@@ -75,7 +75,7 @@ define i32 @pos_sel_constants(i32 %a) {
define i32 @pos_sel_special_constant(i32 %a) {
; CHECK-LABEL: pos_sel_special_constant:
; CHECK: // %bb.0:
-; CHECK-NEXT: orr w8, wzr, #0x200
+; CHECK-NEXT: mov w8, #512
; CHECK-NEXT: bic w0, w8, w0, lsr #22
; CHECK-NEXT: ret
;
OpenPOWER on IntegriCloud