etc/services - sync with NetBSD-8
[minix.git] / external / bsd / llvm / dist / clang / test / CodeGenOpenCL / fpmath.cl
blobef4da845529c611cf7af1b5dadf1c0b48f78b077
1 // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
3 typedef __attribute__(( ext_vector_type(4) )) float float4;
5 float spscalardiv(float a, float b) {
6 // CHECK: @spscalardiv
7 // CHECK: fdiv{{.*}}, !fpmath ![[MD:[0-9]+]]
8 return a / b;
11 float4 spvectordiv(float4 a, float4 b) {
12 // CHECK: @spvectordiv
13 // CHECK: fdiv{{.*}}, !fpmath ![[MD]]
14 return a / b;
17 #pragma OPENCL EXTENSION cl_khr_fp64 : enable
19 double dpscalardiv(double a, double b) {
20 // CHECK: @dpscalardiv
21 // CHECK-NOT: !fpmath
22 return a / b;
25 // CHECK: ![[MD]] = !{float 2.500000e+00}