xref: /llvm-project/llvm/test/CodeGen/DirectX/ContainerData/ShaderHash.ll (revision 72017fcf00b33b99aac604355d260910b1d57dfc)
1; RUN: opt %s -dxil-embed -dxil-globals -S -o - | FileCheck %s
2; RUN: llc %s --filetype=obj -o - | obj2yaml | FileCheck %s --check-prefix=DXC
3target triple = "dxil-unknown-shadermodel6.5-library"
4
5; CHECK: @dx.hash = private constant [20 x i8] c"\00\00\00\00{{.*}}", section "HASH", align 4
6
7define i32 @add(i32 %a, i32 %b) {
8  %sum = add i32 %a, %b
9  ret i32 %sum
10}
11
12; DXC: - Name:            HASH
13; DXC:   Size:            20
14; DXC:   Hash:
15; DXC:     IncludesSource:  false
16; DXC:     Digest:          [
17