[PATCH] D147221: [LoongArch][NFC] Add tests of additions with immediates (for D147222)

Lu Weining via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 30 07:30:15 PDT 2023


SixWeining added inline comments.


================
Comment at: llvm/test/CodeGen/LoongArch/ir-instruction/add.ll:719
+; LA64-NEXT:    ret
+  %add = add i32 %x, 4080
+  ret i32 %add
----------------
Besides +-4080, it’s better to add tests for the boundary, i.e. [-4096,-2049] or [2048,4094].


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147221/new/

https://reviews.llvm.org/D147221



More information about the llvm-commits mailing list