xref: /aosp_15_r20/external/clang/test/CodeGenOpenCL/no-signed-zeros.cl (revision 67e74705e28f6214e480b399dd47ea732279e315)
1// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s -check-prefix=NORMAL
2// RUN: %clang_cc1 %s -emit-llvm -cl-no-signed-zeros -o - | FileCheck %s -check-prefix=NO-SIGNED-ZEROS
3
4float signedzeros(float a) {
5  return a;
6}
7
8// CHECK: attributes
9// NORMAL: "no-signed-zeros-fp-math"="false"
10// NO-SIGNED-ZEROS: "no-signed-zeros-fp-math"="true"
11