forked from OSchip/llvm-project
Driver: Implement -cl-denorms-are-zero
This is currently a no-op, which is allowed by the OpenCL specification. llvm-svn: 216179
This commit is contained in:
parent
e07caad9e7
commit
f414fb75b0
|
@ -574,6 +574,8 @@ def cl_mad_enable : Flag<["-"], "cl-mad-enable">,
|
|||
HelpText<"OpenCL only. Enable less precise MAD instructions to be generated.">;
|
||||
def cl_std_EQ : Joined<["-"], "cl-std=">,
|
||||
HelpText<"OpenCL language standard to compile for">;
|
||||
def cl_denorms_are_zero : Flag<["-"], "cl-denorms-are-zero">,
|
||||
HelpText<"OpenCL only. Allow denormals to be flushed to zero">;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// CUDA Options
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
// RUN: %clang_cc1 -S -cl-denorms-are-zero -o - %s 2>&1
|
||||
|
||||
// This test just checks that the -cl-denorms-are-zero argument is accepted
|
||||
// by clang. This option is currently a no-op, which is allowed by the
|
||||
// OpenCL specification.
|
Loading…
Reference in New Issue