1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s
4 define signext i32 @sext_icmp(i32 signext %x, i32 signext %y) {
5 ; CHECK-LABEL: sext_icmp:
7 ; CHECK-NEXT: addi.w $a0, $a0, 1
8 ; CHECK-NEXT: xor $a0, $a0, $a1
9 ; CHECK-NEXT: sltu $a0, $zero, $a0
11 %1 = add nsw i32 %x, 1
12 %2 = icmp ne i32 %1, %y
13 %3 = zext i1 %2 to i32