xref: /llvm-project/llvm/test/CodeGen/LoongArch/lsx/intrinsic-and.ll (revision f3aa4416319aed198841401c6c9dc2e49afe2507)
1*f3aa4416Schenli; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2*f3aa4416Schenli; RUN: llc --mtriple=loongarch64 --mattr=+lsx < %s | FileCheck %s
3*f3aa4416Schenli
4*f3aa4416Schenlideclare <16 x i8> @llvm.loongarch.lsx.vand.v(<16 x i8>, <16 x i8>)
5*f3aa4416Schenli
6*f3aa4416Schenlidefine <16 x i8> @lsx_vand_v(<16 x i8> %va, <16 x i8> %vb) nounwind {
7*f3aa4416Schenli; CHECK-LABEL: lsx_vand_v:
8*f3aa4416Schenli; CHECK:       # %bb.0: # %entry
9*f3aa4416Schenli; CHECK-NEXT:    vand.v $vr0, $vr0, $vr1
10*f3aa4416Schenli; CHECK-NEXT:    ret
11*f3aa4416Schenlientry:
12*f3aa4416Schenli  %res = call <16 x i8> @llvm.loongarch.lsx.vand.v(<16 x i8> %va, <16 x i8> %vb)
13*f3aa4416Schenli  ret <16 x i8> %res
14*f3aa4416Schenli}
15