aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/NVPTX/div-ri.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/NVPTX/div-ri.ll')
-rw-r--r--test/CodeGen/NVPTX/div-ri.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/NVPTX/div-ri.ll b/test/CodeGen/NVPTX/div-ri.ll
new file mode 100644
index 0000000..7f796e0
--- /dev/null
+++ b/test/CodeGen/NVPTX/div-ri.ll
@@ -0,0 +1,8 @@
+; 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
+}
+