brintos

brintos / llvm-project-archived public Read only

0
0
Text · 610 B · ccad1b7 Raw
16 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc --mtriple=loongarch32 --mattr=+32s,+lsx < %s | FileCheck %s3; RUN: llc --mtriple=loongarch64 --mattr=+lsx < %s | FileCheck %s4 5declare <4 x i32> @llvm.loongarch.lsx.vpermi.w(<4 x i32>, <4 x i32>, i32)6 7define <4 x i32> @lsx_vpermi_w(<4 x i32> %va, <4 x i32> %vb) nounwind {8; CHECK-LABEL: lsx_vpermi_w:9; CHECK:       # %bb.0: # %entry10; CHECK-NEXT:    vpermi.w $vr0, $vr1, 25511; CHECK-NEXT:    ret12entry:13  %res = call <4 x i32> @llvm.loongarch.lsx.vpermi.w(<4 x i32> %va, <4 x i32> %vb, i32 255)14  ret <4 x i32> %res15}16