r219928 - OpenCL: Add -ffake-address-space-map to a test
Tom Stellard
thomas.stellard at amd.com
Thu Oct 16 08:29:17 PDT 2014
Author: tstellar
Date: Thu Oct 16 10:29:17 2014
New Revision: 219928
URL: http://llvm.org/viewvc/llvm-project?rev=219928&view=rev
Log:
OpenCL: Add -ffake-address-space-map to a test
The ensures there is an explicit address space id in the output.
Modified:
cfe/trunk/test/SemaOpenCL/extern.cl
Modified: cfe/trunk/test/SemaOpenCL/extern.cl
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaOpenCL/extern.cl?rev=219928&r1=219927&r2=219928&view=diff
==============================================================================
--- cfe/trunk/test/SemaOpenCL/extern.cl (original)
+++ cfe/trunk/test/SemaOpenCL/extern.cl Thu Oct 16 10:29:17 2014
@@ -1,7 +1,7 @@
-// RUN: %clang_cc1 -x cl -cl-std=CL1.2 -emit-llvm %s -o - -verify | FileCheck %s
+// RUN: %clang_cc1 -x cl -cl-std=CL1.2 -emit-llvm -ffake-address-space-map %s -o - -verify | FileCheck %s
// expected-no-diagnostics
-// CHECK: @foo = external global float
+// CHECK: @foo = external addrspace(3) global float
extern constant float foo;
kernel void test(global float* buf) {
More information about the cfe-commits
mailing list