[llvm] 628b2bf - [DirectX] Update test for dxil-dis.

via llvm-commits llvm-commits at lists.llvm.org
Thu May 26 12:32:56 PDT 2022


Author: python3kgae
Date: 2022-05-26T12:32:52-07:00
New Revision: 628b2bfad828edebca8f3ab02aa97cc82c6af7d2

URL: https://github.com/llvm/llvm-project/commit/628b2bfad828edebca8f3ab02aa97cc82c6af7d2
DIFF: https://github.com/llvm/llvm-project/commit/628b2bfad828edebca8f3ab02aa97cc82c6af7d2.diff

LOG: [DirectX] Update test for dxil-dis.

Update metadata index which changed for dx.valver.

Reviewed By: beanz

Differential Revision: https://reviews.llvm.org/D126311

Added: 
    

Modified: 
    llvm/test/tools/dxil-dis/debug-info.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/tools/dxil-dis/debug-info.ll b/llvm/test/tools/dxil-dis/debug-info.ll
index 4799bc2f79bbe..067279a006efa 100644
--- a/llvm/test/tools/dxil-dis/debug-info.ll
+++ b/llvm/test/tools/dxil-dis/debug-info.ll
@@ -2,17 +2,17 @@
 target triple = "dxil-unknown-unknown"
 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
 
-; CHECK: define float @fma(float, float, float) unnamed_addr #0 !dbg !6
+; CHECK: define float @fma(float, float, float) unnamed_addr #0 !dbg !7
 ; Function Attrs: norecurse nounwind readnone willreturn
 define dso_local float @fma(float %0, float %1, float %2) local_unnamed_addr #0 !dbg !6 {
-; CHECK-NEXT: call void @llvm.dbg.value(metadata float %0, metadata !11, metadata !14), !dbg !15
-; CHECK-NEXT: call void @llvm.dbg.value(metadata float %1, metadata !12, metadata !14), !dbg !15
-; CHECK-NEXT: call void @llvm.dbg.value(metadata float %2, metadata !13, metadata !14), !dbg !15
+; CHECK-NEXT: call void @llvm.dbg.value(metadata float %0, metadata !12, metadata !15), !dbg !16
+; CHECK-NEXT: call void @llvm.dbg.value(metadata float %1, metadata !13, metadata !15), !dbg !16
+; CHECK-NEXT: call void @llvm.dbg.value(metadata float %2, metadata !14, metadata !15), !dbg !16
   call void @llvm.dbg.value(metadata float %0, metadata !11, metadata !DIExpression()), !dbg !14
   call void @llvm.dbg.value(metadata float %1, metadata !12, metadata !DIExpression()), !dbg !14
   call void @llvm.dbg.value(metadata float %2, metadata !13, metadata !DIExpression()), !dbg !14
-; CHECK-NEXT: %4 = fmul float %0, %1, !dbg !16
-; CHECK-NEXT: %5 = fadd float %4, %2, !dbg !17
+; CHECK-NEXT: %4 = fmul float %0, %1, !dbg !17
+; CHECK-NEXT: %5 = fadd float %4, %2, !dbg !18
   %4 = fmul float %0, %1, !dbg !15
   %5 = fadd float %4, %2, !dbg !16
   ret float %5, !dbg !17
@@ -36,15 +36,15 @@ attributes #1 = { nofree nosync nounwind readnone speculatable willreturn }
 
 ; CHECK:      !0 = distinct !DICompileUnit
 ; CHECK-NEXT: !1 = !DIFile(filename:
-; CHECK:      !6 = distinct !DISubprogram(name: "fma", 
-; CHECK:      !11 = !DILocalVariable(tag:
-; CHECK-NEXT: !12 = !DILocalVariable(tag:
+; CHECK:      !7 = distinct !DISubprogram(name: "fma",
+; CHECK:      !12 = !DILocalVariable(tag:
 ; CHECK-NEXT: !13 = !DILocalVariable(tag:
-; CHECK-NEXT: !14 = !DIExpression()
-; CHECK-NEXT: !15 = !DILocation(line:
+; CHECK-NEXT: !14 = !DILocalVariable(tag:
+; CHECK-NEXT: !15 = !DIExpression()
 ; CHECK-NEXT: !16 = !DILocation(line:
 ; CHECK-NEXT: !17 = !DILocation(line:
 ; CHECK-NEXT: !18 = !DILocation(line:
+; CHECK-NEXT: !19 = !DILocation(line:
 
 !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, splitDebugInlining: false, nameTableKind: None)
 !1 = !DIFile(filename: "in.c", directory: "dir")


        


More information about the llvm-commits mailing list