etc/services - sync with NetBSD-8
[minix.git] / external / bsd / llvm / dist / clang / test / CodeGenOpenCL / relaxed-fpmath.cl
blob4222ea9c74b552fc57f2f898528490f8f5e934cc
1 // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s -check-prefix=NORMAL
2 // RUN: %clang_cc1 %s -emit-llvm -cl-fast-relaxed-math -o - | FileCheck %s -check-prefix=FAST
3 // RUN: %clang_cc1 %s -emit-llvm -cl-finite-math-only -o - | FileCheck %s -check-prefix=FINITE
4 // RUN: %clang_cc1 %s -emit-llvm -cl-unsafe-math-optimizations -o - | FileCheck %s -check-prefix=UNSAFE
5 // RUN: %clang_cc1 %s -emit-llvm -cl-no-signed-zeros -o - | FileCheck %s -check-prefix=NOSZ
7 typedef __attribute__(( ext_vector_type(4) )) float float4;
9 float spscalardiv(float a, float b) {
10 // CHECK: @spscalardiv(
12 // NORMAL: fdiv float
13 // FAST: fdiv fast float
14 // FINITE: fdiv nnan ninf float
15 // UNSAFE: fdiv nnan float
16 // NOSZ: fdiv nsz float
17 return a / b;
19 // CHECK: attributes
21 // NORMAL: "no-infs-fp-math"="false"
22 // NORMAL: "no-nans-fp-math"="false"
23 // NORMAL: "unsafe-fp-math"="false"
25 // FAST: "no-infs-fp-math"="true"
26 // FAST: "no-nans-fp-math"="true"
27 // FAST: "unsafe-fp-math"="true"
29 // FINITE: "no-infs-fp-math"="true"
30 // FINITE: "no-nans-fp-math"="true"
31 // FINITE: "unsafe-fp-math"="false"
33 // UNSAFE: "no-infs-fp-math"="false"
34 // UNSAFE: "no-nans-fp-math"="true"
35 // UNSAFE: "unsafe-fp-math"="true"