brintos

brintos / llvm-project-archived public Read only

0
0
Text · 508 B · 088a7b0 Raw
17 lines · plain
1; RUN: opt %s -dxil-embed -dxil-globals -S -o - | FileCheck %s2; RUN: llc %s --filetype=obj -o - | obj2yaml | FileCheck %s --check-prefix=DXC3target triple = "dxil-unknown-shadermodel6.5-library"4 5; CHECK: @dx.hash = private constant [20 x i8] c"\00\00\00\00{{.*}}", section "HASH", align 46 7define i32 @add(i32 %a, i32 %b) {8  %sum = add i32 %a, %b9  ret i32 %sum10}11 12; DXC: - Name:            HASH13; DXC:   Size:            2014; DXC:   Hash:15; DXC:     IncludesSource:  false16; DXC:     Digest:          [ 17