projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b904908
)
Verify commit right by adding a blank line to test/CodeGenOpenCL/address-spaces-conve...
author
Yaxun Liu
<Yaxun.Liu@amd.com>
Tue, 12 Apr 2016 15:46:24 +0000
(15:46 +0000)
committer
Yaxun Liu
<Yaxun.Liu@amd.com>
Tue, 12 Apr 2016 15:46:24 +0000
(15:46 +0000)
llvm-svn: 266083
clang/test/CodeGenOpenCL/address-spaces-conversions.cl
patch
|
blob
|
history
diff --git
a/clang/test/CodeGenOpenCL/address-spaces-conversions.cl
b/clang/test/CodeGenOpenCL/address-spaces-conversions.cl
index
bc80f47
..
cdd6b58
100644
(file)
--- a/
clang/test/CodeGenOpenCL/address-spaces-conversions.cl
+++ b/
clang/test/CodeGenOpenCL/address-spaces-conversions.cl
@@
-7,6
+7,7
@@
void test(global int *arg_glob, generic int *arg_gen) {
int var_priv;
arg_gen = arg_glob; // implicit cast global -> generic
// CHECK: %{{[0-9]+}} = addrspacecast i32 addrspace(1)* %{{[0-9]+}} to i32 addrspace(4)*
+
arg_gen = &var_priv; // implicit cast with obtaining adr, private -> generic
// CHECK: %{{[0-9]+}} = addrspacecast i32* %var_priv to i32 addrspace(4)*
arg_glob = (global int *)arg_gen; // explicit cast