1
; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=CI -check-prefix=FUNC %s
2
; RUN: llc -march=amdgcn -mcpu=bonaire -verify-machineinstrs < %s | FileCheck -check-prefix=CI -check-prefix=FUNC %s
3
; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
5
; FUNC-LABEL: {{^}}rint_f64:
10
; SI-DAG v_cmp_gt_f64_e64
14
define void @rint_f64(double addrspace(1)* %out, double %in) {
16
%0 = call double @llvm.rint.f64(double %in)
17
store double %0, double addrspace(1)* %out
21
; FUNC-LABEL: {{^}}rint_v2f64:
24
define void @rint_v2f64(<2 x double> addrspace(1)* %out, <2 x double> %in) {
26
%0 = call <2 x double> @llvm.rint.v2f64(<2 x double> %in)
27
store <2 x double> %0, <2 x double> addrspace(1)* %out
31
; FUNC-LABEL: {{^}}rint_v4f64:
36
define void @rint_v4f64(<4 x double> addrspace(1)* %out, <4 x double> %in) {
38
%0 = call <4 x double> @llvm.rint.v4f64(<4 x double> %in)
39
store <4 x double> %0, <4 x double> addrspace(1)* %out
44
declare double @llvm.rint.f64(double) #0
45
declare <2 x double> @llvm.rint.v2f64(<2 x double>) #0
46
declare <4 x double> @llvm.rint.v4f64(<4 x double>) #0