OSDN Git Service

Teach tblgen's set theory "sequence" operator to support an optional stride operand.
[android-x86/external-llvm.git] / test / CodeGen / PTX / fdiv-sm13.ll
1 ; RUN: llc < %s -march=ptx32 -mattr=+sm13 | FileCheck %s
2
3 define ptx_device float @t1_f32(float %x, float %y) {
4 ; CHECK: div.rn.f32 %ret{{[0-9]+}}, %f{{[0-9]+}}, %f{{[0-9]+}};
5 ; CHECK: ret;
6         %a = fdiv float %x, %y
7         ret float %a
8 }
9
10 define ptx_device double @t1_f64(double %x, double %y) {
11 ; CHECK: div.rn.f64 %ret{{[0-9]+}}, %fd{{[0-9]+}}, %fd{{[0-9]+}};
12 ; CHECK: ret;
13         %a = fdiv double %x, %y
14         ret double %a
15 }