clang/test/CodeGenHLSL/group_shared.hlsl
raw| 1 | |
| 2 | // RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \ |
| 3 | // RUN: dxil-pc-shadermodel6.3-library %s \ |
| 4 | // RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s |
| 5 | |
| 6 | // Make sure groupshared translated into address space 3. |
| 7 | // CHECK:@"?a@@3PAMA" = addrspace(3) global [10 x float] |
| 8 | |
| 9 | groupshared float a[10]; |
| 10 | |
| 11 | [numthreads(8,8,1)] |
| 12 | void main() { |
| 13 | a[0] = 1; |
| 14 | } |
| 15 |