brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 7472c1c Raw
30 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc --mtriple=loongarch32 -mattr=+d --mcpu=generic < %s \3; RUN:   | FileCheck %s --check-prefix=LA324; RUN: llc --mtriple=loongarch32 -mattr=+d --mcpu=generic-la32 < %s \5; RUN:   | FileCheck %s --check-prefix=LA326; RUN: llc --mtriple=loongarch64 -mattr=+d --mcpu=generic < %s \7; RUN:   | FileCheck %s --check-prefix=LA648; RUN: llc --mtriple=loongarch64 -mattr=+d --mcpu=generic-la64 < %s \9; RUN:   | FileCheck %s --check-prefix=LA6410 11;; The CPU name "generic" should map to the corresponding concrete names12;; according to the target triple's bitness.13define i64 @f(i64 signext %a, i64 signext %b) {14; LA32-LABEL: f:15; LA32:       # %bb.0:16; LA32-NEXT:    add.w $a1, $a1, $a317; LA32-NEXT:    add.w $a2, $a0, $a218; LA32-NEXT:    sltu $a0, $a2, $a019; LA32-NEXT:    add.w $a1, $a1, $a020; LA32-NEXT:    move $a0, $a221; LA32-NEXT:    ret22;23; LA64-LABEL: f:24; LA64:       # %bb.0:25; LA64-NEXT:    add.d $a0, $a0, $a126; LA64-NEXT:    ret27  %1 = add nsw i64 %a, %b28  ret i64 %129}30