1 ; RUN: llc < %s -mtriple=aarch64 -mattr=+v8.5a | FileCheck %s
3 declare float @llvm.aarch64.frint32z.f32(float)
4 declare double @llvm.aarch64.frint32z.f64(double)
5 declare float @llvm.aarch64.frint64z.f32(float)
6 declare double @llvm.aarch64.frint64z.f64(double)
8 define dso_local float @t_frint32z(float %a) {
9 ; CHECK-LABEL: t_frint32z:
10 ; CHECK: frint32z s0, s0
13 %val = tail call float @llvm.aarch64.frint32z.f32(float %a)
17 define dso_local double @t_frint32zf(double %a) {
18 ; CHECK-LABEL: t_frint32zf:
19 ; CHECK: frint32z d0, d0
22 %val = tail call double @llvm.aarch64.frint32z.f64(double %a)
26 define dso_local float @t_frint64z(float %a) {
27 ; CHECK-LABEL: t_frint64z:
28 ; CHECK: frint64z s0, s0
31 %val = tail call float @llvm.aarch64.frint64z.f32(float %a)
35 define dso_local double @t_frint64zf(double %a) {
36 ; CHECK-LABEL: t_frint64zf:
37 ; CHECK: frint64z d0, d0
40 %val = tail call double @llvm.aarch64.frint64z.f64(double %a)
44 declare float @llvm.aarch64.frint32x.f32(float)
45 declare double @llvm.aarch64.frint32x.f64(double)
46 declare float @llvm.aarch64.frint64x.f32(float)
47 declare double @llvm.aarch64.frint64x.f64(double)
49 define dso_local float @t_frint32x(float %a) {
50 ; CHECK-LABEL: t_frint32x:
51 ; CHECK: frint32x s0, s0
54 %val = tail call float @llvm.aarch64.frint32x.f32(float %a)
58 define dso_local double @t_frint32xf(double %a) {
59 ; CHECK-LABEL: t_frint32xf:
60 ; CHECK: frint32x d0, d0
63 %val = tail call double @llvm.aarch64.frint32x.f64(double %a)
67 define dso_local float @t_frint64x(float %a) {
68 ; CHECK-LABEL: t_frint64x:
69 ; CHECK: frint64x s0, s0
72 %val = tail call float @llvm.aarch64.frint64x.f32(float %a)
76 define dso_local double @t_frint64xf(double %a) {
77 ; CHECK-LABEL: t_frint64xf:
78 ; CHECK: frint64x d0, d0
81 %val = tail call double @llvm.aarch64.frint64x.f64(double %a)