1 ; RUN: llc --filetype=obj %s -o - 2>&1 | dxil-dis -o - | FileCheck %s
2 target datalayout = "e-m:e-p:32:32-i1:32-i8:8-i16:16-i32:32-i64:64-f16:16-f32:32-f64:64-n8:16:32:64"
3 target triple = "dxil-unknown-shadermodel6.7-library"
5 %"$Globals" = type { float }
7 @CBV = external constant %"$Globals"
9 define void @main() #0 {
13 attributes #0 = { "hlsl.export" }
18 !dx.shaderModel = !{!3}
19 !dx.entryPoints = !{!8}
21 !0 = !{!"clang version 15.0.0"}
24 !3 = !{!"lib", i32 6, i32 7}
25 !4 = !{null, null, !5, null}
27 ; CHECK-DAG:!{{[0-9]+}} = !{i32 0, %"$Globals"* @CBV
28 !6 = !{i32 0, ptr @CBV, !"", i32 0, i32 0, i32 1, i32 4, null}
29 !7 = !{[2 x i32] [i32 0, i32 1]}
30 ; CHECK-DAG:!{{[0-9]+}} = !{void ()* @main
31 !8 = !{ptr @main, !"main", null, !4, null}