R600: Remove redundant test
[oota-llvm.git] / test / CodeGen / R600 / ffloor.ll
1 ; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
2 ; RUN: llc -march=r600 -mcpu=redwood < %s | FileCheck -check-prefix=R600 -check-prefix=FUNC %s
3
4 ; FUNC-LABEL: {{^}}floor_f32:
5 ; SI: v_floor_f32_e32
6 ; R600: FLOOR
7 define void @floor_f32(float addrspace(1)* %out, float %in) {
8   %tmp = call float @llvm.floor.f32(float %in) #0
9   store float %tmp, float addrspace(1)* %out
10   ret void
11 }
12
13 ; FUNC-LABEL: {{^}}floor_v2f32:
14 ; SI: v_floor_f32_e32
15 ; SI: v_floor_f32_e32
16
17 ; R600: FLOOR
18 ; R600: FLOOR
19 define void @floor_v2f32(<2 x float> addrspace(1)* %out, <2 x float> %in) {
20   %tmp = call <2 x float> @llvm.floor.v2f32(<2 x float> %in) #0
21   store <2 x float> %tmp, <2 x float> addrspace(1)* %out
22   ret void
23 }
24
25 ; FUNC-LABEL: {{^}}floor_v4f32:
26 ; SI: v_floor_f32_e32
27 ; SI: v_floor_f32_e32
28 ; SI: v_floor_f32_e32
29 ; SI: v_floor_f32_e32
30
31 ; R600: FLOOR
32 ; R600: FLOOR
33 ; R600: FLOOR
34 ; R600: FLOOR
35 define void @floor_v4f32(<4 x float> addrspace(1)* %out, <4 x float> %in) {
36   %tmp = call <4 x float> @llvm.floor.v4f32(<4 x float> %in) #0
37   store <4 x float> %tmp, <4 x float> addrspace(1)* %out
38   ret void
39 }
40
41 ; Function Attrs: nounwind readonly
42 declare float @llvm.floor.f32(float) #0
43
44 ; Function Attrs: nounwind readonly
45 declare <2 x float> @llvm.floor.v2f32(<2 x float>) #0
46
47 ; Function Attrs: nounwind readonly
48 declare <4 x float> @llvm.floor.v4f32(<4 x float>) #0
49
50 attributes #0 = { nounwind readnone }