1 ; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s --check-prefix=R600-CHECK
2 ; RUN: llc < %s -march=r600 -mcpu=SI -verify-machineinstrs | FileCheck %s --check-prefix=SI-CHECK
7 ; SI-CHECK: V_FLOOR_F32_e32
8 define void @f32(float addrspace(1)* %out, float %in) {
10 %0 = call float @llvm.floor.f32(float %in)
11 store float %0, float addrspace(1)* %out
19 ; SI-CHECK: V_FLOOR_F32_e32
20 ; SI-CHECK: V_FLOOR_F32_e32
21 define void @v2f32(<2 x float> addrspace(1)* %out, <2 x float> %in) {
23 %0 = call <2 x float> @llvm.floor.v2f32(<2 x float> %in)
24 store <2 x float> %0, <2 x float> addrspace(1)* %out
34 ; SI-CHECK: V_FLOOR_F32_e32
35 ; SI-CHECK: V_FLOOR_F32_e32
36 ; SI-CHECK: V_FLOOR_F32_e32
37 ; SI-CHECK: V_FLOOR_F32_e32
38 define void @v4f32(<4 x float> addrspace(1)* %out, <4 x float> %in) {
40 %0 = call <4 x float> @llvm.floor.v4f32(<4 x float> %in)
41 store <4 x float> %0, <4 x float> addrspace(1)* %out
45 ; Function Attrs: nounwind readonly
46 declare float @llvm.floor.f32(float) #0
48 ; Function Attrs: nounwind readonly
49 declare <2 x float> @llvm.floor.v2f32(<2 x float>) #0
51 ; Function Attrs: nounwind readonly
52 declare <4 x float> @llvm.floor.v4f32(<4 x float>) #0
54 attributes #0 = { nounwind readonly }