llvm-for-llvmta/test/CodeGen/NVPTX/div-ri.ll

9 lines
181 B
LLVM
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
; RUN: llc < %s -march=nvptx -mcpu=sm_20 -nvptx-prec-divf32=0 | FileCheck %s
define float @foo(float %a) {
; CHECK: div.approx.f32
%div = fdiv float %a, 13.0
ret float %div
}