[PATCH] D153326: [CSKY] Optimize subtraction with SUBI32/SUBI16
Ben Shi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 20 03:05:30 PDT 2023
benshi001 added inline comments.
================
Comment at: llvm/test/CodeGen/CSKY/base-i.ll:46
+; CHECK: # %bb.0: # %entry
+; CHECK-NEXT: addi32 a0, a0, 4096
+; CHECK-NEXT: rts16
----------------
4096 is the upper boundary of `ADDI32`.
================
Comment at: llvm/test/CodeGen/CSKY/base-i.ll:272
+define i32 @subRI_4096(i32 %x) {
+; CHECK-LABEL: subRI_4096:
----------------
4096 is upper boundary of `SUBI32`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153326/new/
https://reviews.llvm.org/D153326
More information about the llvm-commits
mailing list