brintos

brintos / llvm-project-archived public Read only

0
0
Text · 571 B · 2c21b57 Raw
19 lines · plain
1; RUN: llc -mtriple=amdgcn < %s | FileCheck %s2 3declare float @llvm.amdgcn.fdiv.fast(float, float) #04 5; CHECK-LABEL: {{^}}test_fdiv_fast:6; CHECK: v_cndmask_b32_e32 v{{[0-9]+}}, 1.0, v{{[0-9]+}}, vcc7; CHECK: v_mul_f32_e328; CHECK: v_rcp_f32_e329; CHECK: v_mul_f32_e3210; CHECK: v_mul_f32_e3211define amdgpu_kernel void @test_fdiv_fast(ptr addrspace(1) %out, float %a, float %b) #1 {12  %fdiv = call float @llvm.amdgcn.fdiv.fast(float %a, float %b)13  store float %fdiv, ptr addrspace(1) %out14  ret void15}16 17attributes #0 = { nounwind readnone }18attributes #1 = { nounwind }19