[llvm] [LoongArch][ISel] Check the number of sign bits in `PatGprGpr_32` (PR #107432)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 5 21:38:23 PDT 2024


================
@@ -189,8 +189,6 @@ define signext i32 @sdiv_si32_ui32_ui32(i32 %a, i32 %b) {
 ;
 ; LA64-LABEL: sdiv_si32_ui32_ui32:
 ; LA64:       # %bb.0: # %entry
-; LA64-NEXT:    addi.w $a1, $a1, 0
----------------
dtcxzyw wrote:

FYI RISC-V ISel doesn't generate `sext.w`: https://godbolt.org/z/af8vhhjeM


https://github.com/llvm/llvm-project/pull/107432


More information about the llvm-commits mailing list