From db27d82dee4b66d1d3571bb3a308484ba4bb8294 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Tue, 15 Feb 2011 19:46:41 +0000 Subject: [PATCH] OpenCL: standardise naming of test cases git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125590 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../ext-vector-shuffle.cl} | 6 +++--- .../single-precision-constant.cl} | 2 +- .../Parser/{cl_storage_class.cl => opencl-storage-class.cl} | 2 +- test/{Sema/opencl-cond.c => SemaOpenCL/cond.cl} | 2 +- test/{Sema/opencl-init.c => SemaOpenCL/init.cl} | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) rename test/{CodeGen/ext-vector-shuffle.c => CodeGenOpenCL/ext-vector-shuffle.cl} (54%) rename test/{CodeGen/cl-single-precision-constant.c => CodeGenOpenCL/single-precision-constant.cl} (50%) rename test/Parser/{cl_storage_class.cl => opencl-storage-class.cl} (89%) rename test/{Sema/opencl-cond.c => SemaOpenCL/cond.cl} (69%) rename test/{Sema/opencl-init.c => SemaOpenCL/init.cl} (84%) diff --git a/test/CodeGen/ext-vector-shuffle.c b/test/CodeGenOpenCL/ext-vector-shuffle.cl similarity index 54% rename from test/CodeGen/ext-vector-shuffle.c rename to test/CodeGenOpenCL/ext-vector-shuffle.cl index d26602ae8d..ee88ba3c06 100644 --- a/test/CodeGen/ext-vector-shuffle.c +++ b/test/CodeGenOpenCL/ext-vector-shuffle.cl @@ -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; diff --git a/test/CodeGen/cl-single-precision-constant.c b/test/CodeGenOpenCL/single-precision-constant.cl similarity index 50% rename from test/CodeGen/cl-single-precision-constant.c rename to test/CodeGenOpenCL/single-precision-constant.cl index adde19361b..62b37c1361 100644 --- a/test/CodeGen/cl-single-precision-constant.c +++ b/test/CodeGenOpenCL/single-precision-constant.cl @@ -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 diff --git a/test/Parser/cl_storage_class.cl b/test/Parser/opencl-storage-class.cl similarity index 89% rename from test/Parser/cl_storage_class.cl rename to test/Parser/opencl-storage-class.cl index 5db8f4befa..d479358f00 100644 --- a/test/Parser/cl_storage_class.cl +++ b/test/Parser/opencl-storage-class.cl @@ -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() { diff --git a/test/Sema/opencl-cond.c b/test/SemaOpenCL/cond.cl similarity index 69% rename from test/Sema/opencl-cond.c rename to test/SemaOpenCL/cond.cl index d654a152c8..79dc82db19 100644 --- a/test/Sema/opencl-cond.c +++ b/test/SemaOpenCL/cond.cl @@ -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; diff --git a/test/Sema/opencl-init.c b/test/SemaOpenCL/init.cl similarity index 84% rename from test/Sema/opencl-init.c rename to test/SemaOpenCL/init.cl index 3d116bd0da..b3ecfecb5d 100644 --- a/test/Sema/opencl-init.c +++ b/test/SemaOpenCL/init.cl @@ -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))); -- 2.50.1