brintos

brintos / llvm-project-archived public Read only

0
0
Text · 722 B · 71faf23 Raw
24 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA323; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA644 5define i32 @icmpimm(i32 %x) {6; LA32-LABEL: icmpimm:7; LA32:       # %bb.0:8; LA32-NEXT:    srli.w $a0, $a0, 129; LA32-NEXT:    addi.w $a0, $a0, -110; LA32-NEXT:    sltui $a0, $a0, 111; LA32-NEXT:    ret12;13; LA64-LABEL: icmpimm:14; LA64:       # %bb.0:15; LA64-NEXT:    bstrpick.d $a0, $a0, 31, 1216; LA64-NEXT:    addi.d $a0, $a0, -117; LA64-NEXT:    sltui $a0, $a0, 118; LA64-NEXT:    ret19  %1 = and i32 %x, -409620  %2 = icmp eq i32 %1, 409621  %3 = zext i1 %2 to i3222  ret i32 %323}24