From: Sanjay Patel Date: Sat, 4 Apr 2015 14:54:24 +0000 (+0000) Subject: Remove the cl-no-signed-zeros cc1 option X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b91a9e07dde8c433a5640586e7a43bc812016915;p=clang Remove the cl-no-signed-zeros cc1 option Use the driver flag -fno-signed-zeros instead. This was recommended but not implemented in D6873: http://reviews.llvm.org/D6873 which was checked in at r226915: http://reviews.llvm.org/rL226915 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@234093 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/CC1Options.td b/include/clang/Driver/CC1Options.td index 6b785b45d4..451d3939b2 100644 --- a/include/clang/Driver/CC1Options.td +++ b/include/clang/Driver/CC1Options.td @@ -585,8 +585,6 @@ def cl_finite_math_only : Flag<["-"], "cl-finite-math-only">, HelpText<"OpenCL only. Allow floating-point optimizations that assume arguments and results are not NaNs or +-Inf.">; def cl_kernel_arg_info : Flag<["-"], "cl-kernel-arg-info">, HelpText<"OpenCL only. Generate kernel argument metadata.">; -def : Flag<["-"], "cl-no-signed-zeros">, Alias, - HelpText<"OpenCL only. Allow optimizations to ignore the signedness of the floating-point zero.">; def cl_unsafe_math_optimizations : Flag<["-"], "cl-unsafe-math-optimizations">, HelpText<"OpenCL only. Allow unsafe floating-point optimizations. Also implies -cl-no-signed-zeros and -cl-mad-enable">; def cl_fast_relaxed_math : Flag<["-"], "cl-fast-relaxed-math">, diff --git a/test/CodeGenOpenCL/relaxed-fpmath.cl b/test/CodeGenOpenCL/relaxed-fpmath.cl index 4222ea9c74..6f302b1335 100644 --- a/test/CodeGenOpenCL/relaxed-fpmath.cl +++ b/test/CodeGenOpenCL/relaxed-fpmath.cl @@ -2,7 +2,6 @@ // RUN: %clang_cc1 %s -emit-llvm -cl-fast-relaxed-math -o - | FileCheck %s -check-prefix=FAST // RUN: %clang_cc1 %s -emit-llvm -cl-finite-math-only -o - | FileCheck %s -check-prefix=FINITE // RUN: %clang_cc1 %s -emit-llvm -cl-unsafe-math-optimizations -o - | FileCheck %s -check-prefix=UNSAFE -// RUN: %clang_cc1 %s -emit-llvm -cl-no-signed-zeros -o - | FileCheck %s -check-prefix=NOSZ typedef __attribute__(( ext_vector_type(4) )) float float4; @@ -13,7 +12,6 @@ float spscalardiv(float a, float b) { // FAST: fdiv fast float // FINITE: fdiv nnan ninf float // UNSAFE: fdiv nnan float - // NOSZ: fdiv nsz float return a / b; } // CHECK: attributes