diff options
Diffstat (limited to 'tests/cuda')
| -rw-r--r-- | tests/cuda/copy-elision-this-1.slang | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/cuda/copy-elision-this-1.slang b/tests/cuda/copy-elision-this-1.slang index 295b45c73..273e6dc58 100644 --- a/tests/cuda/copy-elision-this-1.slang +++ b/tests/cuda/copy-elision-this-1.slang @@ -1,4 +1,6 @@ -//TEST:SIMPLE(filecheck=CUDA): -stage compute -entry computeMain -target cuda +//TEST:SIMPLE(filecheck=CUDA): -stage compute -entry computeMain -target cuda -line-directive-mode none +//TEST:SIMPLE(filecheck=PTX): -stage compute -entry computeMain -target cuda + struct Data { StructuredBuffer<float> input[2]; RWStructuredBuffer<float> output; @@ -6,7 +8,9 @@ struct Data { StructuredBuffer<uint> index_buffer; uint index_count; - // CUDA: fetch{{.*}}Data{{.*}}*{{.*}}this + // CUDA: __device__ float Data_fetch{{.*}}(int {{.*}}, int {{.*}}) + // CUDA-NEXT: { + // CUDA-NEXT: return globalParams{{.*}}->data{{.*}}->input{{.*}}[{{.*}}].Load float fetch(int buffer, int index) { return input[buffer][index]; @@ -15,6 +19,8 @@ struct Data { ParameterBlock<Data> data; +// PTX: computeMain + [shader("compute")] [numthreads(8, 8, 1)] void computeMain(uint3 tid: SV_DispatchThreadID) |
