1 ; RUN: opt -S -dxil-translate-metadata < %s | 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-pc-shadermodel6.3-library"
5 ; Make sure dx.valver metadata is generated.
6 ; CHECK-DAG:!dx.valver = !{![[valver:[0-9]+]]}
7 ; Make sure module flags still exist and only have 1 operand left.
8 ; CHECK-DAG:!llvm.module.flags = !{{{![0-9]}}}
9 ; Make sure validator version is 1.1.
10 ; CHECK-DAG:![[valver]] = !{i32 1, i32 1}
11 ; Make sure wchar_size still exist.
12 ; CHECK-DAG:!{i32 1, !"wchar_size", i32 4}
14 !llvm.module.flags = !{!0}
18 !0 = !{i32 1, !"wchar_size", i32 4}
20 !2 = !{!"clang version 15.0.0 (https://github.com/llvm/llvm-project 71de12113a0661649ecb2f533fba4a2818a1ad68)"}