Files
clang-p2996/llvm/test/CodeGen/DirectX/ContainerData/ShaderHash.ll
Xiang Li 78a73dda60 [DirectX backend] PartSize not include PartHeader
PartSize for a part in dx container is only the size of the content of the part, not include size of the PartHeader.

Differential Revision: https://reviews.llvm.org/D141207
2023-01-09 19:10:21 -05:00

17 lines
494 B
LLVM

; RUN: llc %s --filetype=asm -o - | FileCheck %s
; RUN: llc %s --filetype=obj -o - | obj2yaml | FileCheck %s --check-prefix=DXC
target triple = "dxil-unknown-shadermodel6.5-library"
; CHECK: @dx.hash = private constant [20 x i8] c"\00\00\00\00{{.*}}", section "HASH", align 4
define i32 @add(i32 %a, i32 %b) {
%sum = add i32 %a, %b
ret i32 %sum
}
; DXC: - Name: HASH
; DXC: Size: 20
; DXC: Hash:
; DXC: IncludesSource: false
; DXC: Digest: [