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.vfrsqrt.s(<4 x float>)
6 define <4 x float> @lsx_vfrsqrt_s(<4 x float> %va) nounwind {
7 ; CHECK-LABEL: lsx_vfrsqrt_s:
8 ; CHECK: # %bb.0: # %entry
9 ; CHECK-NEXT: vfrsqrt.s $vr0, $vr0
12 %res = call <4 x float> @llvm.loongarch.lsx.vfrsqrt.s(<4 x float> %va)
16 declare <2 x double> @llvm.loongarch.lsx.vfrsqrt.d(<2 x double>)
18 define <2 x double> @lsx_vfrsqrt_d(<2 x double> %va) nounwind {
19 ; CHECK-LABEL: lsx_vfrsqrt_d:
20 ; CHECK: # %bb.0: # %entry
21 ; CHECK-NEXT: vfrsqrt.d $vr0, $vr0
24 %res = call <2 x double> @llvm.loongarch.lsx.vfrsqrt.d(<2 x double> %va)