[cfe-commits] r125590 - in /cfe/trunk/test: CodeGen/cl-single-precision-constant.c CodeGen/ext-vector-shuffle.c CodeGenOpenCL/ext-vector-shuffle.cl CodeGenOpenCL/single-precision-constant.cl Parser/cl_storage_class.cl Parser/opencl-storage-class.cl Sema/opencl-cond.c Sema/opencl-init.c SemaOpenCL/cond.cl SemaOpenCL/init.cl

Peter Collingbourne peter at pcc.me.uk
Tue Feb 15 11:46:42 PST 2011


Author: pcc
Date: Tue Feb 15 13:46:41 2011
New Revision: 125590

URL: http://llvm.org/viewvc/llvm-project?rev=125590&view=rev
Log:
OpenCL: standardise naming of test cases

Added:
    cfe/trunk/test/CodeGenOpenCL/ext-vector-shuffle.cl
      - copied, changed from r125589, cfe/trunk/test/CodeGen/ext-vector-shuffle.c
    cfe/trunk/test/CodeGenOpenCL/single-precision-constant.cl
      - copied, changed from r125589, cfe/trunk/test/CodeGen/cl-single-precision-constant.c
    cfe/trunk/test/Parser/opencl-storage-class.cl
      - copied, changed from r125589, cfe/trunk/test/Parser/cl_storage_class.cl
    cfe/trunk/test/SemaOpenCL/cond.cl
      - copied, changed from r125589, cfe/trunk/test/Sema/opencl-cond.c
    cfe/trunk/test/SemaOpenCL/init.cl
      - copied, changed from r125589, cfe/trunk/test/Sema/opencl-init.c
Removed:
    cfe/trunk/test/CodeGen/cl-single-precision-constant.c
    cfe/trunk/test/CodeGen/ext-vector-shuffle.c
    cfe/trunk/test/Parser/cl_storage_class.cl
    cfe/trunk/test/Sema/opencl-cond.c
    cfe/trunk/test/Sema/opencl-init.c

Removed: cfe/trunk/test/CodeGen/cl-single-precision-constant.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/cl-single-precision-constant.c?rev=125589&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/cl-single-precision-constant.c (original)
+++ cfe/trunk/test/CodeGen/cl-single-precision-constant.c (removed)
@@ -1,7 +0,0 @@
-// RUN: %clang_cc1 %s -x cl -cl-single-precision-constant -emit-llvm -o - | FileCheck %s
-
-float fn(float f) {
-  // CHECK: fmul float
-  // CHECK: fadd float
-  return f*2. + 1.;
-}

Removed: cfe/trunk/test/CodeGen/ext-vector-shuffle.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/ext-vector-shuffle.c?rev=125589&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/ext-vector-shuffle.c (original)
+++ cfe/trunk/test/CodeGen/ext-vector-shuffle.c (removed)
@@ -1,17 +0,0 @@
-// 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'
-
-typedef __attribute__(( ext_vector_type(2) )) float float2;
-typedef __attribute__(( ext_vector_type(4) )) float float4;
-
-float2 test1(float4 V) {
-  return V.xy + V.wz;
-}
-
-float4 test2(float4 V) {
-  float2 W = V.ww;
-  return W.xyxy + W.yxyx;
-}
-
-float4 test3(float4 V1, float4 V2) { return (float4)(V1.zw, V2.xy); }

Copied: cfe/trunk/test/CodeGenOpenCL/ext-vector-shuffle.cl (from r125589, cfe/trunk/test/CodeGen/ext-vector-shuffle.c)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenOpenCL/ext-vector-shuffle.cl?p2=cfe/trunk/test/CodeGenOpenCL/ext-vector-shuffle.cl&p1=cfe/trunk/test/CodeGen/ext-vector-shuffle.c&r1=125589&r2=125590&rev=125590&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/ext-vector-shuffle.c (original)
+++ cfe/trunk/test/CodeGenOpenCL/ext-vector-shuffle.cl Tue Feb 15 13:46:41 2011
@@ -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;

Copied: cfe/trunk/test/CodeGenOpenCL/single-precision-constant.cl (from r125589, cfe/trunk/test/CodeGen/cl-single-precision-constant.c)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenOpenCL/single-precision-constant.cl?p2=cfe/trunk/test/CodeGenOpenCL/single-precision-constant.cl&p1=cfe/trunk/test/CodeGen/cl-single-precision-constant.c&r1=125589&r2=125590&rev=125590&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/cl-single-precision-constant.c (original)
+++ cfe/trunk/test/CodeGenOpenCL/single-precision-constant.cl Tue Feb 15 13:46:41 2011
@@ -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

Removed: cfe/trunk/test/Parser/cl_storage_class.cl
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/cl_storage_class.cl?rev=125589&view=auto
==============================================================================
--- cfe/trunk/test/Parser/cl_storage_class.cl (original)
+++ cfe/trunk/test/Parser/cl_storage_class.cl (removed)
@@ -1,9 +0,0 @@
-// RUN: %clang_cc1 %s -x cl -verify -fsyntax-only
-
-void test_storage_class_specs()
-{
-  static int a;    // expected-error {{OpenCL does not support the 'static' storage class specifier}}
-  register int b;  // expected-error {{OpenCL does not support the 'register' storage class specifier}}
-  extern int c;    // expected-error {{OpenCL does not support the 'extern' storage class specifier}}
-  auto int d;      // expected-error {{OpenCL does not support the 'auto' storage class specifier}}
-}

Copied: cfe/trunk/test/Parser/opencl-storage-class.cl (from r125589, cfe/trunk/test/Parser/cl_storage_class.cl)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/opencl-storage-class.cl?p2=cfe/trunk/test/Parser/opencl-storage-class.cl&p1=cfe/trunk/test/Parser/cl_storage_class.cl&r1=125589&r2=125590&rev=125590&view=diff
==============================================================================
--- cfe/trunk/test/Parser/cl_storage_class.cl (original)
+++ cfe/trunk/test/Parser/opencl-storage-class.cl Tue Feb 15 13:46:41 2011
@@ -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()
 {

Removed: cfe/trunk/test/Sema/opencl-cond.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/opencl-cond.c?rev=125589&view=auto
==============================================================================
--- cfe/trunk/test/Sema/opencl-cond.c (original)
+++ cfe/trunk/test/Sema/opencl-cond.c (removed)
@@ -1,5 +0,0 @@
-// RUN: %clang_cc1 %s -x cl -verify -pedantic -fsyntax-only
-
-typedef __attribute__((ext_vector_type(4))) float float4;
-
-float4 foo(float4 a, float4 b, float4 c, float4 d) { return a < b ? c : d; }

Removed: cfe/trunk/test/Sema/opencl-init.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/opencl-init.c?rev=125589&view=auto
==============================================================================
--- cfe/trunk/test/Sema/opencl-init.c (original)
+++ cfe/trunk/test/Sema/opencl-init.c (removed)
@@ -1,15 +0,0 @@
-// RUN: %clang_cc1 %s -x cl -verify -pedantic -fsyntax-only
-
-typedef float float8 __attribute((ext_vector_type(8)));
-
-typedef float float32_t;
-typedef __attribute__(( __vector_size__(16) )) float32_t __neon_float32x4_t;
-typedef struct __simd128_float32_t {
-  __neon_float32x4_t val;
-} float32x4_t;
-
-float8 foo(float8 x) { 
-  float32x4_t lo;
-  float32x4_t hi;
-  return (float8) (lo.val, hi.val);
-}

Copied: cfe/trunk/test/SemaOpenCL/cond.cl (from r125589, cfe/trunk/test/Sema/opencl-cond.c)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaOpenCL/cond.cl?p2=cfe/trunk/test/SemaOpenCL/cond.cl&p1=cfe/trunk/test/Sema/opencl-cond.c&r1=125589&r2=125590&rev=125590&view=diff
==============================================================================
--- cfe/trunk/test/Sema/opencl-cond.c (original)
+++ cfe/trunk/test/SemaOpenCL/cond.cl Tue Feb 15 13:46:41 2011
@@ -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;
 

Copied: cfe/trunk/test/SemaOpenCL/init.cl (from r125589, cfe/trunk/test/Sema/opencl-init.c)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaOpenCL/init.cl?p2=cfe/trunk/test/SemaOpenCL/init.cl&p1=cfe/trunk/test/Sema/opencl-init.c&r1=125589&r2=125590&rev=125590&view=diff
==============================================================================
--- cfe/trunk/test/Sema/opencl-init.c (original)
+++ cfe/trunk/test/SemaOpenCL/init.cl Tue Feb 15 13:46:41 2011
@@ -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)));
 





More information about the cfe-commits mailing list