1 ; RUN: llc -march=r600 -mcpu=redwood < %s | FileCheck %s --check-prefix=R600 --check-prefix=FUNC
4 ; R600: FRACT {{.*}}, [[ARG:KC[0-9]\[[0-9]+\]\.[XYZW]]]
5 ; R600-DAG: ADD {{.*}}, -0.5
6 ; R600-DAG: CEIL {{.*}} [[ARG]]
7 ; R600-DAG: FLOOR {{.*}} [[ARG]]
10 ; R600: CNDGE {{[^,]+}}, [[ARG]]
11 define void @f32(float addrspace(1)* %out, float %in) {
13 %0 = call float @llvm.round.f32(float %in)
14 store float %0, float addrspace(1)* %out
18 ; The vector tests are really difficult to verify, since it can be hard to
19 ; predict how the scheduler will order the instructions. We already have
20 ; a test for the scalar case, so the vector tests just check that the
21 ; compiler doesn't crash.
25 define void @v2f32(<2 x float> addrspace(1)* %out, <2 x float> %in) {
27 %0 = call <2 x float> @llvm.round.v2f32(<2 x float> %in)
28 store <2 x float> %0, <2 x float> addrspace(1)* %out
34 define void @v4f32(<4 x float> addrspace(1)* %out, <4 x float> %in) {
36 %0 = call <4 x float> @llvm.round.v4f32(<4 x float> %in)
37 store <4 x float> %0, <4 x float> addrspace(1)* %out
41 declare float @llvm.round.f32(float)
42 declare <2 x float> @llvm.round.v2f32(<2 x float>)
43 declare <4 x float> @llvm.round.v4f32(<4 x float>)