48 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 52; RUN: llc -mtriple=amdgcn -mcpu=tonga < %s | FileCheck -check-prefix=CI -check-prefix=FUNC %s3; RUN: llc -mtriple=amdgcn -mcpu=bonaire < %s | FileCheck -check-prefix=CI -check-prefix=FUNC %s4; RUN: llc -mtriple=amdgcn -mcpu=tahiti < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s5 6; FUNC-LABEL: {{^}}rint_f64:7; CI: v_rndne_f64_e328 9; SI-DAG: v_add_f6410; SI-DAG: v_add_f6411; SI-DAG: v_cmp_gt_f64_e6412; SI: v_cndmask_b3213; SI: v_cndmask_b3214; SI: s_endpgm15define amdgpu_kernel void @rint_f64(ptr addrspace(1) %out, double %in) {16entry:17 %0 = call double @llvm.rint.f64(double %in)18 store double %0, ptr addrspace(1) %out19 ret void20}21 22; FUNC-LABEL: {{^}}rint_v2f64:23; CI: v_rndne_f64_e3224; CI: v_rndne_f64_e3225define amdgpu_kernel void @rint_v2f64(ptr addrspace(1) %out, <2 x double> %in) {26entry:27 %0 = call <2 x double> @llvm.rint.v2f64(<2 x double> %in)28 store <2 x double> %0, ptr addrspace(1) %out29 ret void30}31 32; FUNC-LABEL: {{^}}rint_v4f64:33; CI: v_rndne_f64_e3234; CI: v_rndne_f64_e3235; CI: v_rndne_f64_e3236; CI: v_rndne_f64_e3237define amdgpu_kernel void @rint_v4f64(ptr addrspace(1) %out, <4 x double> %in) {38entry:39 %0 = call <4 x double> @llvm.rint.v4f64(<4 x double> %in)40 store <4 x double> %0, ptr addrspace(1) %out41 ret void42}43 44 45declare double @llvm.rint.f64(double) #046declare <2 x double> @llvm.rint.v2f64(<2 x double>) #047declare <4 x double> @llvm.rint.v4f64(<4 x double>) #048