brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.8 KiB · e18ac46 Raw
62 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --filter "(bl|ptrue)" --version 52; RUN: llc -mtriple=aarch64-gnu-linux -mattr=+neon,+sve -vector-library=sleefgnuabi < %s | FileCheck %s -check-prefix=SLEEF3; RUN: llc -mtriple=aarch64-gnu-linux -mattr=+neon,+sve -vector-library=ArmPL < %s | FileCheck %s -check-prefix=ARMPL4 5define void @test_sincos_v4f32(<4 x float> %x, ptr noalias %out_sin, ptr noalias %out_cos) {6; SLEEF-LABEL: test_sincos_v4f32:7; SLEEF:    bl _ZGVnN4vl4l4_sincosf8;9; ARMPL-LABEL: test_sincos_v4f32:10; ARMPL:    bl armpl_vsincosq_f3211  %result = call { <4 x float>, <4 x float> } @llvm.sincos.v4f32(<4 x float> %x)12  %result.0 = extractvalue { <4 x float>, <4 x float> } %result, 013  %result.1 = extractvalue { <4 x float>, <4 x float> } %result, 114  store <4 x float> %result.0, ptr %out_sin, align 415  store <4 x float> %result.1, ptr %out_cos, align 416  ret void17}18 19define void @test_sincos_v2f64(<2 x double> %x, ptr noalias %out_sin, ptr noalias %out_cos) {20; SLEEF-LABEL: test_sincos_v2f64:21; SLEEF:    bl _ZGVnN2vl8l8_sincos22;23; ARMPL-LABEL: test_sincos_v2f64:24; ARMPL:    bl armpl_vsincosq_f6425  %result = call { <2 x double>, <2 x double> } @llvm.sincos.v2f64(<2 x double> %x)26  %result.0 = extractvalue { <2 x double>, <2 x double> } %result, 027  %result.1 = extractvalue { <2 x double>, <2 x double> } %result, 128  store <2 x double> %result.0, ptr %out_sin, align 829  store <2 x double> %result.1, ptr %out_cos, align 830  ret void31}32 33define void @test_sincos_nxv4f32(<vscale x 4 x float> %x, ptr noalias %out_sin, ptr noalias %out_cos) {34; SLEEF-LABEL: test_sincos_nxv4f32:35; SLEEF:    bl _ZGVsNxvl4l4_sincosf36;37; ARMPL-LABEL: test_sincos_nxv4f32:38; ARMPL:    ptrue p0.s39; ARMPL:    bl armpl_svsincos_f32_x40  %result = call { <vscale x 4 x float>, <vscale x 4 x float> } @llvm.sincos.nxv4f32(<vscale x 4 x float> %x)41  %result.0 = extractvalue { <vscale x 4 x float>, <vscale x 4 x float> } %result, 042  %result.1 = extractvalue { <vscale x 4 x float>, <vscale x 4 x float> } %result, 143  store <vscale x 4 x float> %result.0, ptr %out_sin, align 444  store <vscale x 4 x float> %result.1, ptr %out_cos, align 445  ret void46}47 48define void @test_sincos_nxv2f64(<vscale x 2 x double> %x, ptr noalias %out_sin, ptr noalias %out_cos) {49; SLEEF-LABEL: test_sincos_nxv2f64:50; SLEEF:    bl _ZGVsNxvl8l8_sincos51;52; ARMPL-LABEL: test_sincos_nxv2f64:53; ARMPL:    ptrue p0.d54; ARMPL:    bl armpl_svsincos_f64_x55  %result = call { <vscale x 2 x double>, <vscale x 2 x double> } @llvm.sincos.nxv2f64(<vscale x 2 x double> %x)56  %result.0 = extractvalue { <vscale x 2 x double>, <vscale x 2 x double> } %result, 057  %result.1 = extractvalue { <vscale x 2 x double>, <vscale x 2 x double> } %result, 158  store <vscale x 2 x double> %result.0, ptr %out_sin, align 859  store <vscale x 2 x double> %result.1, ptr %out_cos, align 860  ret void61}62