1 ; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s --check-prefix=R600 --check-prefix=FUNC
9 define void @f32(float addrspace(1)* %out, float %in) {
11 %0 = call float @llvm.round.f32(float %in)
12 store float %0, float addrspace(1)* %out
16 ; The vector tests are really difficult to verify, since it can be hard to
17 ; predict how the scheduler will order the instructions. We already have
18 ; a test for the scalar case, so the vector tests just check that the
19 ; compiler doesn't crash.
23 define void @v2f32(<2 x float> addrspace(1)* %out, <2 x float> %in) {
25 %0 = call <2 x float> @llvm.round.v2f32(<2 x float> %in)
26 store <2 x float> %0, <2 x float> addrspace(1)* %out
32 define void @v4f32(<4 x float> addrspace(1)* %out, <4 x float> %in) {
34 %0 = call <4 x float> @llvm.round.v4f32(<4 x float> %in)
35 store <4 x float> %0, <4 x float> addrspace(1)* %out
39 declare float @llvm.round.f32(float)
40 declare <2 x float> @llvm.round.v2f32(<2 x float>)
41 declare <4 x float> @llvm.round.v4f32(<4 x float>)