1 ; RUN: llc -march=r600 -mcpu=SI < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
2 ; RUN: llc -march=r600 -mcpu=redwood < %s | FileCheck -check-prefix=EG -check-prefix=FUNC %s
4 ; FUNC-LABEL: @test_fmax_legacy_uge_f32
5 ; SI: v_max_legacy_f32_e32
7 define void @test_fmax_legacy_uge_f32(float addrspace(1)* %out, float %a, float %b) nounwind {
8 %cmp = fcmp uge float %a, %b
9 %val = select i1 %cmp, float %a, float %b
10 store float %val, float addrspace(1)* %out, align 4
14 ; FUNC-LABEL: @test_fmax_legacy_oge_f32
15 ; SI: v_max_legacy_f32_e32
17 define void @test_fmax_legacy_oge_f32(float addrspace(1)* %out, float %a, float %b) nounwind {
18 %cmp = fcmp oge float %a, %b
19 %val = select i1 %cmp, float %a, float %b
20 store float %val, float addrspace(1)* %out, align 4
24 ; FUNC-LABEL: @test_fmax_legacy_ugt_f32
25 ; SI: v_max_legacy_f32_e32
27 define void @test_fmax_legacy_ugt_f32(float addrspace(1)* %out, float %a, float %b) nounwind {
28 %cmp = fcmp ugt float %a, %b
29 %val = select i1 %cmp, float %a, float %b
30 store float %val, float addrspace(1)* %out, align 4
34 ; FUNC-LABEL: @test_fmax_legacy_ogt_f32
35 ; SI: v_max_legacy_f32_e32
37 define void @test_fmax_legacy_ogt_f32(float addrspace(1)* %out, float %a, float %b) nounwind {
38 %cmp = fcmp ogt float %a, %b
39 %val = select i1 %cmp, float %a, float %b
40 store float %val, float addrspace(1)* %out, align 4