diff options
author | Yaxun Liu <Yaxun.Liu@amd.com> | 2016-07-08 20:28:29 +0000 |
---|---|---|
committer | Yaxun Liu <Yaxun.Liu@amd.com> | 2016-07-08 20:28:29 +0000 |
commit | 79c99fb7ebca48590f3535378509d226f588b014 (patch) | |
tree | 6cd211b7571eddfe71be0fb96983dfd28ed76dad /clang/test/CodeGenOpenCL/no-signed-zeros.cl | |
parent | 0733e6b61c82ca33ce0a414a420814afce982d27 (diff) | |
download | bcm5719-llvm-79c99fb7ebca48590f3535378509d226f588b014.tar.gz bcm5719-llvm-79c99fb7ebca48590f3535378509d226f588b014.zip |
[OpenCL] Add missing -cl-no-signed-zeros option into driver
Add OCL option -cl-no-signed-zeros to driver options.
Also added to opencl.cl testcases.
Patch by Aaron En Ye Shi.
Differential Revision: http://reviews.llvm.org/D22067
llvm-svn: 274923
Diffstat (limited to 'clang/test/CodeGenOpenCL/no-signed-zeros.cl')
-rw-r--r-- | clang/test/CodeGenOpenCL/no-signed-zeros.cl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CodeGenOpenCL/no-signed-zeros.cl b/clang/test/CodeGenOpenCL/no-signed-zeros.cl new file mode 100644 index 00000000000..14f6411b356 --- /dev/null +++ b/clang/test/CodeGenOpenCL/no-signed-zeros.cl @@ -0,0 +1,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"
|