1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve2 < %s | FileCheck %s
3 ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sme -force-streaming < %s | FileCheck %s
9 define <vscale x 4 x float> @fcvtlt_f32_f16(<vscale x 4 x float> %a, <vscale x 4 x i1> %pg, <vscale x 8 x half> %b) {
10 ; CHECK-LABEL: fcvtlt_f32_f16:
12 ; CHECK-NEXT: fcvtlt z0.s, p0/m, z1.h
14 %out = call <vscale x 4 x float> @llvm.aarch64.sve.fcvtlt.f32f16(<vscale x 4 x float> %a,
15 <vscale x 4 x i1> %pg,
16 <vscale x 8 x half> %b)
17 ret <vscale x 4 x float> %out
20 define <vscale x 2 x double> @fcvtlt_f64_f32(<vscale x 2 x double> %a, <vscale x 2 x i1> %pg, <vscale x 4 x float> %b) {
21 ; CHECK-LABEL: fcvtlt_f64_f32:
23 ; CHECK-NEXT: fcvtlt z0.d, p0/m, z1.s
25 %out = call <vscale x 2 x double> @llvm.aarch64.sve.fcvtlt.f64f32(<vscale x 2 x double> %a,
26 <vscale x 2 x i1> %pg,
27 <vscale x 4 x float> %b)
28 ret <vscale x 2 x double> %out
35 define <vscale x 8 x half> @fcvtnt_f16_f32(<vscale x 8 x half> %a, <vscale x 4 x i1> %pg, <vscale x 4 x float> %b) {
36 ; CHECK-LABEL: fcvtnt_f16_f32:
38 ; CHECK-NEXT: fcvtnt z0.h, p0/m, z1.s
40 %out = call <vscale x 8 x half> @llvm.aarch64.sve.fcvtnt.f16f32(<vscale x 8 x half> %a,
41 <vscale x 4 x i1> %pg,
42 <vscale x 4 x float> %b)
43 ret <vscale x 8 x half> %out
46 define <vscale x 4 x float> @fcvtnt_f32_f64(<vscale x 4 x float> %a, <vscale x 2 x i1> %pg, <vscale x 2 x double> %b) {
47 ; CHECK-LABEL: fcvtnt_f32_f64:
49 ; CHECK-NEXT: fcvtnt z0.s, p0/m, z1.d
51 %out = call <vscale x 4 x float> @llvm.aarch64.sve.fcvtnt.f32f64(<vscale x 4 x float> %a,
52 <vscale x 2 x i1> %pg,
53 <vscale x 2 x double> %b)
54 ret <vscale x 4 x float> %out
61 define <vscale x 4 x float> @fcvtx_f32_f64(<vscale x 4 x float> %a, <vscale x 2 x i1> %pg, <vscale x 2 x double> %b) {
62 ; CHECK-LABEL: fcvtx_f32_f64:
64 ; CHECK-NEXT: fcvtx z0.s, p0/m, z1.d
66 %out = call <vscale x 4 x float> @llvm.aarch64.sve.fcvtx.f32f64(<vscale x 4 x float> %a,
67 <vscale x 2 x i1> %pg,
68 <vscale x 2 x double> %b)
69 ret <vscale x 4 x float> %out
76 define <vscale x 4 x float> @fcvtxnt_f32_f64(<vscale x 4 x float> %a, <vscale x 2 x i1> %pg, <vscale x 2 x double> %b) {
77 ; CHECK-LABEL: fcvtxnt_f32_f64:
79 ; CHECK-NEXT: fcvtxnt z0.s, p0/m, z1.d
81 %out = call <vscale x 4 x float> @llvm.aarch64.sve.fcvtxnt.f32f64(<vscale x 4 x float> %a,
82 <vscale x 2 x i1> %pg,
83 <vscale x 2 x double> %b)
84 ret <vscale x 4 x float> %out
87 declare <vscale x 4 x float> @llvm.aarch64.sve.fcvtlt.f32f16(<vscale x 4 x float>, <vscale x 4 x i1>, <vscale x 8 x half>)
88 declare <vscale x 2 x double> @llvm.aarch64.sve.fcvtlt.f64f32(<vscale x 2 x double>, <vscale x 2 x i1>, <vscale x 4 x float>)
89 declare <vscale x 8 x half> @llvm.aarch64.sve.fcvtnt.f16f32(<vscale x 8 x half>, <vscale x 4 x i1>, <vscale x 4 x float>)
90 declare <vscale x 4 x float> @llvm.aarch64.sve.fcvtnt.f32f64(<vscale x 4 x float>, <vscale x 2 x i1>, <vscale x 2 x double>)
91 declare <vscale x 4 x float> @llvm.aarch64.sve.fcvtx.f32f64(<vscale x 4 x float>, <vscale x 2 x i1>, <vscale x 2 x double>)
92 declare <vscale x 4 x float> @llvm.aarch64.sve.fcvtxnt.f32f64(<vscale x 4 x float>, <vscale x 2 x i1>, <vscale x 2 x double>)