| 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 |
// RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \ |
| 7 |
// RUN: spirv-unknown-vulkan1.3-compute %s \ |
| 8 |
// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s |
| 9 |
|
| 10 |
// Make sure groupshared translated into address space 3. |
| 11 |
// CHECK:@a = hidden addrspace(3) global [10 x float] |
| 12 |
|
| 13 |
groupshared float a[10]; |
| 14 |
|
| 15 |
[numthreads(8,8,1)] |
| 16 |
void main() { |
| 17 |
a[0] = 1; |
| 18 |
} |
| 19 |
|