1 // RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
2 // RUN: dxil-pc-shadermodel6.3-library %s \
3 // RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s
5 // CHECK: @[[CB:.+]] = external constant { float, double }
6 cbuffer A : register(b0, space2) {
11 // CHECK: @[[TB:.+]] = external constant { float, double }
12 tbuffer A : register(t2, space1) {
18 // CHECK: load float, ptr @[[CB]], align 4
19 // CHECK: load double, ptr getelementptr ({ float, double }, ptr @[[CB]], i32 0, i32 1), align 8
20 // CHECK: load float, ptr @[[TB]], align 4
21 // CHECK: load double, ptr getelementptr ({ float, double }, ptr @[[TB]], i32 0, i32 1), align 8
25 // CHECK: !hlsl.cbufs = !{![[CBMD:[0-9]+]]}
26 // CHECK: !hlsl.srvs = !{![[TBMD:[0-9]+]]}
27 // CHECK: ![[CBMD]] = !{ptr @[[CB]], i32 13, i32 0, i1 false, i32 0, i32 2}
28 // CHECK: ![[TBMD]] = !{ptr @[[TB]], i32 15, i32 0, i1 false, i32 2, i32 1}