CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
278 lines
15 KiB
LLVM
278 lines
15 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
|
|
; RUN: opt -passes=pre-isel-intrinsic-lowering -mattr=+sve -S < %s | FileCheck %s
|
|
target triple = "aarch64"
|
|
|
|
define <vscale x 4 x float> @scalable_vec_acos(<vscale x 4 x float> %input) {
|
|
; CHECK-LABEL: define <vscale x 4 x float> @scalable_vec_acos(
|
|
; CHECK-SAME: <vscale x 4 x float> [[INPUT:%.*]]) #[[ATTR0:[0-9]+]] {
|
|
; CHECK-NEXT: [[TMP1:%.*]] = call i64 @llvm.vscale.i64()
|
|
; CHECK-NEXT: [[TMP2:%.*]] = mul nuw i64 [[TMP1]], 4
|
|
; CHECK-NEXT: br label %[[BB3:.*]]
|
|
; CHECK: [[BB3]]:
|
|
; CHECK-NEXT: [[TMP4:%.*]] = phi i64 [ 0, [[TMP0:%.*]] ], [ [[TMP9:%.*]], %[[BB3]] ]
|
|
; CHECK-NEXT: [[TMP5:%.*]] = phi <vscale x 4 x float> [ [[INPUT]], [[TMP0]] ], [ [[TMP8:%.*]], %[[BB3]] ]
|
|
; CHECK-NEXT: [[TMP6:%.*]] = extractelement <vscale x 4 x float> [[TMP5]], i64 [[TMP4]]
|
|
; CHECK-NEXT: [[TMP7:%.*]] = call float @llvm.acos.f32(float [[TMP6]])
|
|
; CHECK-NEXT: [[TMP8]] = insertelement <vscale x 4 x float> [[TMP5]], float [[TMP7]], i64 [[TMP4]]
|
|
; CHECK-NEXT: [[TMP9]] = add i64 [[TMP4]], 1
|
|
; CHECK-NEXT: [[TMP10:%.*]] = icmp eq i64 [[TMP9]], [[TMP2]]
|
|
; CHECK-NEXT: br i1 [[TMP10]], label %[[BB11:.*]], label %[[BB3]]
|
|
; CHECK: [[BB11]]:
|
|
; CHECK-NEXT: ret <vscale x 4 x float> [[TMP8]]
|
|
;
|
|
%output = call <vscale x 4 x float> @llvm.acos.nxv4f32(<vscale x 4 x float> %input)
|
|
ret <vscale x 4 x float> %output
|
|
}
|
|
|
|
define <vscale x 4 x float> @scalable_vec_asin(<vscale x 4 x float> %input) {
|
|
; CHECK-LABEL: define <vscale x 4 x float> @scalable_vec_asin(
|
|
; CHECK-SAME: <vscale x 4 x float> [[INPUT:%.*]]) #[[ATTR0]] {
|
|
; CHECK-NEXT: [[TMP1:%.*]] = call i64 @llvm.vscale.i64()
|
|
; CHECK-NEXT: [[TMP2:%.*]] = mul nuw i64 [[TMP1]], 4
|
|
; CHECK-NEXT: br label %[[BB3:.*]]
|
|
; CHECK: [[BB3]]:
|
|
; CHECK-NEXT: [[TMP4:%.*]] = phi i64 [ 0, [[TMP0:%.*]] ], [ [[TMP9:%.*]], %[[BB3]] ]
|
|
; CHECK-NEXT: [[TMP5:%.*]] = phi <vscale x 4 x float> [ [[INPUT]], [[TMP0]] ], [ [[TMP8:%.*]], %[[BB3]] ]
|
|
; CHECK-NEXT: [[TMP6:%.*]] = extractelement <vscale x 4 x float> [[TMP5]], i64 [[TMP4]]
|
|
; CHECK-NEXT: [[TMP7:%.*]] = call float @llvm.asin.f32(float [[TMP6]])
|
|
; CHECK-NEXT: [[TMP8]] = insertelement <vscale x 4 x float> [[TMP5]], float [[TMP7]], i64 [[TMP4]]
|
|
; CHECK-NEXT: [[TMP9]] = add i64 [[TMP4]], 1
|
|
; CHECK-NEXT: [[TMP10:%.*]] = icmp eq i64 [[TMP9]], [[TMP2]]
|
|
; CHECK-NEXT: br i1 [[TMP10]], label %[[BB11:.*]], label %[[BB3]]
|
|
; CHECK: [[BB11]]:
|
|
; CHECK-NEXT: ret <vscale x 4 x float> [[TMP8]]
|
|
;
|
|
%output = call <vscale x 4 x float> @llvm.asin.nxv4f32(<vscale x 4 x float> %input)
|
|
ret <vscale x 4 x float> %output
|
|
}
|
|
|
|
define <vscale x 4 x float> @scalable_vec_atan(<vscale x 4 x float> %input) {
|
|
; CHECK-LABEL: define <vscale x 4 x float> @scalable_vec_atan(
|
|
; CHECK-SAME: <vscale x 4 x float> [[INPUT:%.*]]) #[[ATTR0]] {
|
|
; CHECK-NEXT: [[TMP1:%.*]] = call i64 @llvm.vscale.i64()
|
|
; CHECK-NEXT: [[TMP2:%.*]] = mul nuw i64 [[TMP1]], 4
|
|
; CHECK-NEXT: br label %[[BB3:.*]]
|
|
; CHECK: [[BB3]]:
|
|
; CHECK-NEXT: [[TMP4:%.*]] = phi i64 [ 0, [[TMP0:%.*]] ], [ [[TMP9:%.*]], %[[BB3]] ]
|
|
; CHECK-NEXT: [[TMP5:%.*]] = phi <vscale x 4 x float> [ [[INPUT]], [[TMP0]] ], [ [[TMP8:%.*]], %[[BB3]] ]
|
|
; CHECK-NEXT: [[TMP6:%.*]] = extractelement <vscale x 4 x float> [[TMP5]], i64 [[TMP4]]
|
|
; CHECK-NEXT: [[TMP7:%.*]] = call float @llvm.atan.f32(float [[TMP6]])
|
|
; CHECK-NEXT: [[TMP8]] = insertelement <vscale x 4 x float> [[TMP5]], float [[TMP7]], i64 [[TMP4]]
|
|
; CHECK-NEXT: [[TMP9]] = add i64 [[TMP4]], 1
|
|
; CHECK-NEXT: [[TMP10:%.*]] = icmp eq i64 [[TMP9]], [[TMP2]]
|
|
; CHECK-NEXT: br i1 [[TMP10]], label %[[BB11:.*]], label %[[BB3]]
|
|
; CHECK: [[BB11]]:
|
|
; CHECK-NEXT: ret <vscale x 4 x float> [[TMP8]]
|
|
;
|
|
%output = call <vscale x 4 x float> @llvm.atan.nxv4f32(<vscale x 4 x float> %input)
|
|
ret <vscale x 4 x float> %output
|
|
}
|
|
|
|
define <vscale x 4 x float> @scalable_vec_canonicalize(<vscale x 4 x float> %input) {
|
|
; CHECK-LABEL: define <vscale x 4 x float> @scalable_vec_canonicalize(
|
|
; CHECK-SAME: <vscale x 4 x float> [[INPUT:%.*]]) #[[ATTR0]] {
|
|
; CHECK-NEXT: [[TMP8:%.*]] = call <vscale x 4 x float> @llvm.canonicalize.nxv4f32(<vscale x 4 x float> [[INPUT]])
|
|
; CHECK-NEXT: ret <vscale x 4 x float> [[TMP8]]
|
|
;
|
|
%output = call <vscale x 4 x float> @llvm.canonicalize.nxv4f32(<vscale x 4 x float> %input)
|
|
ret <vscale x 4 x float> %output
|
|
}
|
|
|
|
define <vscale x 4 x float> @scalable_vec_cos(<vscale x 4 x float> %input) {
|
|
; CHECK-LABEL: define <vscale x 4 x float> @scalable_vec_cos(
|
|
; CHECK-SAME: <vscale x 4 x float> [[INPUT:%.*]]) #[[ATTR0]] {
|
|
; CHECK-NEXT: [[TMP1:%.*]] = call i64 @llvm.vscale.i64()
|
|
; CHECK-NEXT: [[TMP2:%.*]] = mul nuw i64 [[TMP1]], 4
|
|
; CHECK-NEXT: br label %[[BB3:.*]]
|
|
; CHECK: [[BB3]]:
|
|
; CHECK-NEXT: [[TMP4:%.*]] = phi i64 [ 0, [[TMP0:%.*]] ], [ [[TMP9:%.*]], %[[BB3]] ]
|
|
; CHECK-NEXT: [[TMP5:%.*]] = phi <vscale x 4 x float> [ [[INPUT]], [[TMP0]] ], [ [[TMP8:%.*]], %[[BB3]] ]
|
|
; CHECK-NEXT: [[TMP6:%.*]] = extractelement <vscale x 4 x float> [[TMP5]], i64 [[TMP4]]
|
|
; CHECK-NEXT: [[TMP7:%.*]] = call float @llvm.cos.f32(float [[TMP6]])
|
|
; CHECK-NEXT: [[TMP8]] = insertelement <vscale x 4 x float> [[TMP5]], float [[TMP7]], i64 [[TMP4]]
|
|
; CHECK-NEXT: [[TMP9]] = add i64 [[TMP4]], 1
|
|
; CHECK-NEXT: [[TMP10:%.*]] = icmp eq i64 [[TMP9]], [[TMP2]]
|
|
; CHECK-NEXT: br i1 [[TMP10]], label %[[BB11:.*]], label %[[BB3]]
|
|
; CHECK: [[BB11]]:
|
|
; CHECK-NEXT: ret <vscale x 4 x float> [[TMP8]]
|
|
;
|
|
%output = call <vscale x 4 x float> @llvm.cos.nxv4f32(<vscale x 4 x float> %input)
|
|
ret <vscale x 4 x float> %output
|
|
}
|
|
|
|
define <vscale x 4 x float> @scalable_vec_cosh(<vscale x 4 x float> %input) {
|
|
; CHECK-LABEL: define <vscale x 4 x float> @scalable_vec_cosh(
|
|
; CHECK-SAME: <vscale x 4 x float> [[INPUT:%.*]]) #[[ATTR0]] {
|
|
; CHECK-NEXT: [[TMP1:%.*]] = call i64 @llvm.vscale.i64()
|
|
; CHECK-NEXT: [[TMP2:%.*]] = mul nuw i64 [[TMP1]], 4
|
|
; CHECK-NEXT: br label %[[BB3:.*]]
|
|
; CHECK: [[BB3]]:
|
|
; CHECK-NEXT: [[TMP4:%.*]] = phi i64 [ 0, [[TMP0:%.*]] ], [ [[TMP9:%.*]], %[[BB3]] ]
|
|
; CHECK-NEXT: [[TMP5:%.*]] = phi <vscale x 4 x float> [ [[INPUT]], [[TMP0]] ], [ [[TMP8:%.*]], %[[BB3]] ]
|
|
; CHECK-NEXT: [[TMP6:%.*]] = extractelement <vscale x 4 x float> [[TMP5]], i64 [[TMP4]]
|
|
; CHECK-NEXT: [[TMP7:%.*]] = call float @llvm.cosh.f32(float [[TMP6]])
|
|
; CHECK-NEXT: [[TMP8]] = insertelement <vscale x 4 x float> [[TMP5]], float [[TMP7]], i64 [[TMP4]]
|
|
; CHECK-NEXT: [[TMP9]] = add i64 [[TMP4]], 1
|
|
; CHECK-NEXT: [[TMP10:%.*]] = icmp eq i64 [[TMP9]], [[TMP2]]
|
|
; CHECK-NEXT: br i1 [[TMP10]], label %[[BB11:.*]], label %[[BB3]]
|
|
; CHECK: [[BB11]]:
|
|
; CHECK-NEXT: ret <vscale x 4 x float> [[TMP8]]
|
|
;
|
|
%output = call <vscale x 4 x float> @llvm.cosh.nxv4f32(<vscale x 4 x float> %input)
|
|
ret <vscale x 4 x float> %output
|
|
}
|
|
|
|
define <vscale x 4 x float> @scalable_vec_exp10(<vscale x 4 x float> %input) {
|
|
; CHECK-LABEL: define <vscale x 4 x float> @scalable_vec_exp10(
|
|
; CHECK-SAME: <vscale x 4 x float> [[INPUT:%.*]]) #[[ATTR0]] {
|
|
; CHECK-NEXT: [[TMP1:%.*]] = call i64 @llvm.vscale.i64()
|
|
; CHECK-NEXT: [[TMP2:%.*]] = mul nuw i64 [[TMP1]], 4
|
|
; CHECK-NEXT: br label %[[BB3:.*]]
|
|
; CHECK: [[BB3]]:
|
|
; CHECK-NEXT: [[TMP4:%.*]] = phi i64 [ 0, [[TMP0:%.*]] ], [ [[TMP9:%.*]], %[[BB3]] ]
|
|
; CHECK-NEXT: [[TMP5:%.*]] = phi <vscale x 4 x float> [ [[INPUT]], [[TMP0]] ], [ [[TMP8:%.*]], %[[BB3]] ]
|
|
; CHECK-NEXT: [[TMP6:%.*]] = extractelement <vscale x 4 x float> [[TMP5]], i64 [[TMP4]]
|
|
; CHECK-NEXT: [[TMP7:%.*]] = call float @llvm.exp10.f32(float [[TMP6]])
|
|
; CHECK-NEXT: [[TMP8]] = insertelement <vscale x 4 x float> [[TMP5]], float [[TMP7]], i64 [[TMP4]]
|
|
; CHECK-NEXT: [[TMP9]] = add i64 [[TMP4]], 1
|
|
; CHECK-NEXT: [[TMP10:%.*]] = icmp eq i64 [[TMP9]], [[TMP2]]
|
|
; CHECK-NEXT: br i1 [[TMP10]], label %[[BB11:.*]], label %[[BB3]]
|
|
; CHECK: [[BB11]]:
|
|
; CHECK-NEXT: ret <vscale x 4 x float> [[TMP8]]
|
|
;
|
|
%output = call <vscale x 4 x float> @llvm.exp10.nxv4f32(<vscale x 4 x float> %input)
|
|
ret <vscale x 4 x float> %output
|
|
}
|
|
|
|
define <vscale x 4 x float> @scalable_vec_log2(<vscale x 4 x float> %input) {
|
|
; CHECK-LABEL: define <vscale x 4 x float> @scalable_vec_log2(
|
|
; CHECK-SAME: <vscale x 4 x float> [[INPUT:%.*]]) #[[ATTR0]] {
|
|
; CHECK-NEXT: [[TMP1:%.*]] = call i64 @llvm.vscale.i64()
|
|
; CHECK-NEXT: [[TMP2:%.*]] = mul nuw i64 [[TMP1]], 4
|
|
; CHECK-NEXT: br label %[[BB3:.*]]
|
|
; CHECK: [[BB3]]:
|
|
; CHECK-NEXT: [[TMP4:%.*]] = phi i64 [ 0, [[TMP0:%.*]] ], [ [[TMP9:%.*]], %[[BB3]] ]
|
|
; CHECK-NEXT: [[TMP5:%.*]] = phi <vscale x 4 x float> [ [[INPUT]], [[TMP0]] ], [ [[TMP8:%.*]], %[[BB3]] ]
|
|
; CHECK-NEXT: [[TMP6:%.*]] = extractelement <vscale x 4 x float> [[TMP5]], i64 [[TMP4]]
|
|
; CHECK-NEXT: [[TMP7:%.*]] = call float @llvm.log2.f32(float [[TMP6]])
|
|
; CHECK-NEXT: [[TMP8]] = insertelement <vscale x 4 x float> [[TMP5]], float [[TMP7]], i64 [[TMP4]]
|
|
; CHECK-NEXT: [[TMP9]] = add i64 [[TMP4]], 1
|
|
; CHECK-NEXT: [[TMP10:%.*]] = icmp eq i64 [[TMP9]], [[TMP2]]
|
|
; CHECK-NEXT: br i1 [[TMP10]], label %[[BB11:.*]], label %[[BB3]]
|
|
; CHECK: [[BB11]]:
|
|
; CHECK-NEXT: ret <vscale x 4 x float> [[TMP8]]
|
|
;
|
|
%output = call <vscale x 4 x float> @llvm.log2.nxv4f32(<vscale x 4 x float> %input)
|
|
ret <vscale x 4 x float> %output
|
|
}
|
|
|
|
define <vscale x 4 x float> @scalable_vec_log10(<vscale x 4 x float> %input) {
|
|
; CHECK-LABEL: define <vscale x 4 x float> @scalable_vec_log10(
|
|
; CHECK-SAME: <vscale x 4 x float> [[INPUT:%.*]]) #[[ATTR0]] {
|
|
; CHECK-NEXT: [[TMP1:%.*]] = call i64 @llvm.vscale.i64()
|
|
; CHECK-NEXT: [[TMP2:%.*]] = mul nuw i64 [[TMP1]], 4
|
|
; CHECK-NEXT: br label %[[BB3:.*]]
|
|
; CHECK: [[BB3]]:
|
|
; CHECK-NEXT: [[TMP4:%.*]] = phi i64 [ 0, [[TMP0:%.*]] ], [ [[TMP9:%.*]], %[[BB3]] ]
|
|
; CHECK-NEXT: [[TMP5:%.*]] = phi <vscale x 4 x float> [ [[INPUT]], [[TMP0]] ], [ [[TMP8:%.*]], %[[BB3]] ]
|
|
; CHECK-NEXT: [[TMP6:%.*]] = extractelement <vscale x 4 x float> [[TMP5]], i64 [[TMP4]]
|
|
; CHECK-NEXT: [[TMP7:%.*]] = call float @llvm.log10.f32(float [[TMP6]])
|
|
; CHECK-NEXT: [[TMP8]] = insertelement <vscale x 4 x float> [[TMP5]], float [[TMP7]], i64 [[TMP4]]
|
|
; CHECK-NEXT: [[TMP9]] = add i64 [[TMP4]], 1
|
|
; CHECK-NEXT: [[TMP10:%.*]] = icmp eq i64 [[TMP9]], [[TMP2]]
|
|
; CHECK-NEXT: br i1 [[TMP10]], label %[[BB11:.*]], label %[[BB3]]
|
|
; CHECK: [[BB11]]:
|
|
; CHECK-NEXT: ret <vscale x 4 x float> [[TMP8]]
|
|
;
|
|
%output = call <vscale x 4 x float> @llvm.log10.nxv4f32(<vscale x 4 x float> %input)
|
|
ret <vscale x 4 x float> %output
|
|
}
|
|
|
|
define <vscale x 4 x float> @scalable_vec_sin(<vscale x 4 x float> %input) {
|
|
; CHECK-LABEL: define <vscale x 4 x float> @scalable_vec_sin(
|
|
; CHECK-SAME: <vscale x 4 x float> [[INPUT:%.*]]) #[[ATTR0]] {
|
|
; CHECK-NEXT: [[TMP1:%.*]] = call i64 @llvm.vscale.i64()
|
|
; CHECK-NEXT: [[TMP2:%.*]] = mul nuw i64 [[TMP1]], 4
|
|
; CHECK-NEXT: br label %[[BB3:.*]]
|
|
; CHECK: [[BB3]]:
|
|
; CHECK-NEXT: [[TMP4:%.*]] = phi i64 [ 0, [[TMP0:%.*]] ], [ [[TMP9:%.*]], %[[BB3]] ]
|
|
; CHECK-NEXT: [[TMP5:%.*]] = phi <vscale x 4 x float> [ [[INPUT]], [[TMP0]] ], [ [[TMP8:%.*]], %[[BB3]] ]
|
|
; CHECK-NEXT: [[TMP6:%.*]] = extractelement <vscale x 4 x float> [[TMP5]], i64 [[TMP4]]
|
|
; CHECK-NEXT: [[TMP7:%.*]] = call float @llvm.sin.f32(float [[TMP6]])
|
|
; CHECK-NEXT: [[TMP8]] = insertelement <vscale x 4 x float> [[TMP5]], float [[TMP7]], i64 [[TMP4]]
|
|
; CHECK-NEXT: [[TMP9]] = add i64 [[TMP4]], 1
|
|
; CHECK-NEXT: [[TMP10:%.*]] = icmp eq i64 [[TMP9]], [[TMP2]]
|
|
; CHECK-NEXT: br i1 [[TMP10]], label %[[BB11:.*]], label %[[BB3]]
|
|
; CHECK: [[BB11]]:
|
|
; CHECK-NEXT: ret <vscale x 4 x float> [[TMP8]]
|
|
;
|
|
%output = call <vscale x 4 x float> @llvm.sin.nxv4f32(<vscale x 4 x float> %input)
|
|
ret <vscale x 4 x float> %output
|
|
}
|
|
|
|
define <vscale x 4 x float> @scalable_vec_sinh(<vscale x 4 x float> %input) {
|
|
; CHECK-LABEL: define <vscale x 4 x float> @scalable_vec_sinh(
|
|
; CHECK-SAME: <vscale x 4 x float> [[INPUT:%.*]]) #[[ATTR0]] {
|
|
; CHECK-NEXT: [[TMP1:%.*]] = call i64 @llvm.vscale.i64()
|
|
; CHECK-NEXT: [[TMP2:%.*]] = mul nuw i64 [[TMP1]], 4
|
|
; CHECK-NEXT: br label %[[BB3:.*]]
|
|
; CHECK: [[BB3]]:
|
|
; CHECK-NEXT: [[TMP4:%.*]] = phi i64 [ 0, [[TMP0:%.*]] ], [ [[TMP9:%.*]], %[[BB3]] ]
|
|
; CHECK-NEXT: [[TMP5:%.*]] = phi <vscale x 4 x float> [ [[INPUT]], [[TMP0]] ], [ [[TMP8:%.*]], %[[BB3]] ]
|
|
; CHECK-NEXT: [[TMP6:%.*]] = extractelement <vscale x 4 x float> [[TMP5]], i64 [[TMP4]]
|
|
; CHECK-NEXT: [[TMP7:%.*]] = call float @llvm.sinh.f32(float [[TMP6]])
|
|
; CHECK-NEXT: [[TMP8]] = insertelement <vscale x 4 x float> [[TMP5]], float [[TMP7]], i64 [[TMP4]]
|
|
; CHECK-NEXT: [[TMP9]] = add i64 [[TMP4]], 1
|
|
; CHECK-NEXT: [[TMP10:%.*]] = icmp eq i64 [[TMP9]], [[TMP2]]
|
|
; CHECK-NEXT: br i1 [[TMP10]], label %[[BB11:.*]], label %[[BB3]]
|
|
; CHECK: [[BB11]]:
|
|
; CHECK-NEXT: ret <vscale x 4 x float> [[TMP8]]
|
|
;
|
|
%output = call <vscale x 4 x float> @llvm.sinh.nxv4f32(<vscale x 4 x float> %input)
|
|
ret <vscale x 4 x float> %output
|
|
}
|
|
|
|
define <vscale x 4 x float> @scalable_vec_tan(<vscale x 4 x float> %input) {
|
|
; CHECK-LABEL: define <vscale x 4 x float> @scalable_vec_tan(
|
|
; CHECK-SAME: <vscale x 4 x float> [[INPUT:%.*]]) #[[ATTR0]] {
|
|
; CHECK-NEXT: [[TMP1:%.*]] = call i64 @llvm.vscale.i64()
|
|
; CHECK-NEXT: [[TMP2:%.*]] = mul nuw i64 [[TMP1]], 4
|
|
; CHECK-NEXT: br label %[[BB3:.*]]
|
|
; CHECK: [[BB3]]:
|
|
; CHECK-NEXT: [[TMP4:%.*]] = phi i64 [ 0, [[TMP0:%.*]] ], [ [[TMP9:%.*]], %[[BB3]] ]
|
|
; CHECK-NEXT: [[TMP5:%.*]] = phi <vscale x 4 x float> [ [[INPUT]], [[TMP0]] ], [ [[TMP8:%.*]], %[[BB3]] ]
|
|
; CHECK-NEXT: [[TMP6:%.*]] = extractelement <vscale x 4 x float> [[TMP5]], i64 [[TMP4]]
|
|
; CHECK-NEXT: [[TMP7:%.*]] = call float @llvm.tan.f32(float [[TMP6]])
|
|
; CHECK-NEXT: [[TMP8]] = insertelement <vscale x 4 x float> [[TMP5]], float [[TMP7]], i64 [[TMP4]]
|
|
; CHECK-NEXT: [[TMP9]] = add i64 [[TMP4]], 1
|
|
; CHECK-NEXT: [[TMP10:%.*]] = icmp eq i64 [[TMP9]], [[TMP2]]
|
|
; CHECK-NEXT: br i1 [[TMP10]], label %[[BB11:.*]], label %[[BB3]]
|
|
; CHECK: [[BB11]]:
|
|
; CHECK-NEXT: ret <vscale x 4 x float> [[TMP8]]
|
|
;
|
|
%output = call <vscale x 4 x float> @llvm.tan.nxv4f32(<vscale x 4 x float> %input)
|
|
ret <vscale x 4 x float> %output
|
|
}
|
|
|
|
define <vscale x 4 x float> @scalable_vec_tanh(<vscale x 4 x float> %input) {
|
|
; CHECK-LABEL: define <vscale x 4 x float> @scalable_vec_tanh(
|
|
; CHECK-SAME: <vscale x 4 x float> [[INPUT:%.*]]) #[[ATTR0]] {
|
|
; CHECK-NEXT: [[TMP1:%.*]] = call i64 @llvm.vscale.i64()
|
|
; CHECK-NEXT: [[TMP2:%.*]] = mul nuw i64 [[TMP1]], 4
|
|
; CHECK-NEXT: br label %[[BB3:.*]]
|
|
; CHECK: [[BB3]]:
|
|
; CHECK-NEXT: [[TMP4:%.*]] = phi i64 [ 0, [[TMP0:%.*]] ], [ [[TMP9:%.*]], %[[BB3]] ]
|
|
; CHECK-NEXT: [[TMP5:%.*]] = phi <vscale x 4 x float> [ [[INPUT]], [[TMP0]] ], [ [[TMP8:%.*]], %[[BB3]] ]
|
|
; CHECK-NEXT: [[TMP6:%.*]] = extractelement <vscale x 4 x float> [[TMP5]], i64 [[TMP4]]
|
|
; CHECK-NEXT: [[TMP7:%.*]] = call float @llvm.tanh.f32(float [[TMP6]])
|
|
; CHECK-NEXT: [[TMP8]] = insertelement <vscale x 4 x float> [[TMP5]], float [[TMP7]], i64 [[TMP4]]
|
|
; CHECK-NEXT: [[TMP9]] = add i64 [[TMP4]], 1
|
|
; CHECK-NEXT: [[TMP10:%.*]] = icmp eq i64 [[TMP9]], [[TMP2]]
|
|
; CHECK-NEXT: br i1 [[TMP10]], label %[[BB11:.*]], label %[[BB3]]
|
|
; CHECK: [[BB11]]:
|
|
; CHECK-NEXT: ret <vscale x 4 x float> [[TMP8]]
|
|
;
|
|
%output = call <vscale x 4 x float> @llvm.tanh.nxv4f32(<vscale x 4 x float> %input)
|
|
ret <vscale x 4 x float> %output
|
|
}
|