]> granicus.if.org Git - clang/commitdiff
OpenCL: standardise naming of test cases
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 15 Feb 2011 19:46:41 +0000 (19:46 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Tue, 15 Feb 2011 19:46:41 +0000 (19:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125590 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenOpenCL/ext-vector-shuffle.cl [moved from test/CodeGen/ext-vector-shuffle.c with 54% similarity]
test/CodeGenOpenCL/single-precision-constant.cl [moved from test/CodeGen/cl-single-precision-constant.c with 50% similarity]
test/Parser/opencl-storage-class.cl [moved from test/Parser/cl_storage_class.cl with 89% similarity]
test/SemaOpenCL/cond.cl [moved from test/Sema/opencl-cond.c with 69% similarity]
test/SemaOpenCL/init.cl [moved from test/Sema/opencl-init.c with 84% similarity]

similarity index 54%
rename from test/CodeGen/ext-vector-shuffle.c
rename to test/CodeGenOpenCL/ext-vector-shuffle.cl
index d26602ae8d6327020094cbc17313f8733c32ba50..ee88ba3c06d17024ccd635b90b48ac472c290890 100644 (file)
@@ -1,6 +1,6 @@
-// RUN: %clang_cc1 %s -x cl -cl-opt-disable -emit-llvm -o - | not grep 'extractelement'
-// RUN: %clang_cc1 %s -x cl -cl-opt-disable -emit-llvm -o - | not grep 'insertelement'
-// RUN: %clang_cc1 %s -x cl -cl-opt-disable -emit-llvm -o - | grep 'shufflevector'
+// RUN: %clang_cc1 %s -cl-opt-disable -emit-llvm -o - | not grep 'extractelement'
+// RUN: %clang_cc1 %s -cl-opt-disable -emit-llvm -o - | not grep 'insertelement'
+// RUN: %clang_cc1 %s -cl-opt-disable -emit-llvm -o - | grep 'shufflevector'
 
 typedef __attribute__(( ext_vector_type(2) )) float float2;
 typedef __attribute__(( ext_vector_type(4) )) float float4;
similarity index 50%
rename from test/CodeGen/cl-single-precision-constant.c
rename to test/CodeGenOpenCL/single-precision-constant.cl
index adde19361b1b8b5426cc424c38d8f3d777bb4776..62b37c1361373b20e1f497c242449fe4db786398 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -x cl -cl-single-precision-constant -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -cl-single-precision-constant -emit-llvm -o - | FileCheck %s
 
 float fn(float f) {
   // CHECK: fmul float
similarity index 89%
rename from test/Parser/cl_storage_class.cl
rename to test/Parser/opencl-storage-class.cl
index 5db8f4befa08b582dc1706f5fb77d5cbf927501d..d479358f00240a18a76ba29859659d33e6343e22 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -x cl -verify -fsyntax-only
+// RUN: %clang_cc1 %s -verify -fsyntax-only
 
 void test_storage_class_specs()
 {
similarity index 69%
rename from test/Sema/opencl-cond.c
rename to test/SemaOpenCL/cond.cl
index d654a152c81ef87b04be534c89037b8741e15e9f..79dc82db190d90ecbd15f48b45a9a4767226259b 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -x cl -verify -pedantic -fsyntax-only
+// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
 
 typedef __attribute__((ext_vector_type(4))) float float4;
 
similarity index 84%
rename from test/Sema/opencl-init.c
rename to test/SemaOpenCL/init.cl
index 3d116bd0dae69bc53c5159734cbc88bae7f7d622..b3ecfecb5db69030d34407697cc1bf72c10903bc 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -x cl -verify -pedantic -fsyntax-only
+// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
 
 typedef float float8 __attribute((ext_vector_type(8)));