summaryrefslogtreecommitdiff
path: root/test/CodeGenOpenCL/no-signed-zeros.cl
blob: 14f6411b35619a7d3c1d9afe4ae960764532e079 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s -check-prefix=NORMAL
// RUN: %clang_cc1 %s -emit-llvm -cl-no-signed-zeros -o - | FileCheck %s -check-prefix=NO-SIGNED-ZEROS

float signedzeros(float a) {
  return a;
}

// CHECK: attributes
// NORMAL: "no-signed-zeros-fp-math"="false"
// NO-SIGNED-ZEROS: "no-signed-zeros-fp-math"="true"