brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 8a7c718 Raw
30 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s \3; RUN:   | FileCheck --check-prefixes=NO-PREFER-W-INST %s4; RUN: llc --mtriple=loongarch64 -mattr=+d --loongarch-disable-cvt-to-d-suffix --verify-machineinstrs < %s \5; RUN:   | FileCheck --check-prefixes=NO-CVT-D-INST %s6; RUN: llc --mtriple=loongarch64 --mattr=+prefer-w-inst --verify-machineinstrs < %s \7; RUN:   | FileCheck --check-prefixes=PREFER-W-INST %s8 9define signext i32 @addw(i32 %x) {10; NO-PREFER-W-INST-LABEL: addw:11; NO-PREFER-W-INST:       # %bb.0:12; NO-PREFER-W-INST-NEXT:    addi.d $a0, $a0, 204713; NO-PREFER-W-INST-NEXT:    addi.w $a0, $a0, 203314; NO-PREFER-W-INST-NEXT:    ret15;16; NO-CVT-D-INST-LABEL: addw:17; NO-CVT-D-INST:       # %bb.0:18; NO-CVT-D-INST-NEXT:    addi.w $a0, $a0, 204719; NO-CVT-D-INST-NEXT:    addi.w $a0, $a0, 203320; NO-CVT-D-INST-NEXT:    ret21;22; PREFER-W-INST-LABEL: addw:23; PREFER-W-INST:       # %bb.0:24; PREFER-W-INST-NEXT:    addi.w $a0, $a0, 204725; PREFER-W-INST-NEXT:    addi.w $a0, $a0, 203326; PREFER-W-INST-NEXT:    ret27  %add = add i32 %x, 408028  ret i32 %add29}30