1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc --mtriple=loongarch64 --mattr=+lsx < %s | FileCheck %s
4 declare <4 x float> @llvm.loongarch.lsx.vfmul.s(<4 x float>, <4 x float>)
6 define <4 x float> @lsx_vfmul_s(<4 x float> %va, <4 x float> %vb) nounwind {
7 ; CHECK-LABEL: lsx_vfmul_s:
8 ; CHECK: # %bb.0: # %entry
9 ; CHECK-NEXT: vfmul.s $vr0, $vr0, $vr1
12 %res = call <4 x float> @llvm.loongarch.lsx.vfmul.s(<4 x float> %va, <4 x float> %vb)
16 declare <2 x double> @llvm.loongarch.lsx.vfmul.d(<2 x double>, <2 x double>)
18 define <2 x double> @lsx_vfmul_d(<2 x double> %va, <2 x double> %vb) nounwind {
19 ; CHECK-LABEL: lsx_vfmul_d:
20 ; CHECK: # %bb.0: # %entry
21 ; CHECK-NEXT: vfmul.d $vr0, $vr0, $vr1
24 %res = call <2 x double> @llvm.loongarch.lsx.vfmul.d(<2 x double> %va, <2 x double> %vb)