brintos

brintos / llvm-project-archived public Read only

0
0
Text · 740 B · 4be909d Raw
19 lines · plain
1// RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \2// RUN:   spirv-unknown-vulkan1.3-library %s \3// RUN:   -emit-llvm -disable-llvm-passes -o - | FileCheck %s --check-prefix=SPIRV4// RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \5// RUN:   dxil-pc-shadermodel6.3-library %s \6// RUN:   -emit-llvm -disable-llvm-passes -o - | FileCheck %s --check-prefix=DXIL7 8// DXIL:  @_ZL1g = internal global float 0.000000e+00, align 49// SPIRV: @_ZL1g = internal addrspace(10) global float 0.000000e+00, align 410 11static float g = 0;12 13[numthreads(8,8,1)]14void main() {15// DXIL:  {{.*}} = load float, ptr @_ZL1g, align 416// SPIRV: {{.*}} = load float, ptr addrspace(10) @_ZL1g, align 417  float l = g;18}19