1616;
1717; Debug MD for this test was created with debugify pass.
1818; ------------------------------------------------
19+ ; igc_opt defaults to the OpenCL shader type, where the lossy fpext(fptrunc(x))
20+ ; round-trip is only folded away under fast-relaxed-math, set in the metadata
21+ ; below so the debug-info update on the fold is exercised.
1922
2023; ModuleID = './LowPrecisionOpt/fpext.ll'
2124source_filename = "./LowPrecisionOpt/fpext.ll"
@@ -63,22 +66,22 @@ entry:
6366}
6467
6568; Testcase 1 MD:
66- ; CHECK-DAG: [[TRUNC_LOC]] = !DILocation(line: 3, column: 1, scope: !9 )
67- ; CHECK-DAG: [[TRUNC_MD]] = !DILocalVariable(name: "3", scope: !9 , file: !4 , line: 3, type: !16 )
69+ ; CHECK-DAG: [[TRUNC_LOC]] = !DILocation(line: 3, column: 1, scope: !{{[0-9]+}} )
70+ ; CHECK-DAG: [[TRUNC_MD]] = !DILocalVariable(name: "3", scope: !{{[0-9]+}} , file: !{{[0-9]+}} , line: 3, type: !{{[0-9]+}} )
6871;
69- ; CHECK-DAG: [[EXT_LOC]] = !DILocation(line: 4, column: 1, scope: !9 )
70- ; CHECK-DAG: [[EXT_MD]] = !DILocalVariable(name: "4", scope: !9 , file: !4 , line: 4, type: !13 )
72+ ; CHECK-DAG: [[EXT_LOC]] = !DILocation(line: 4, column: 1, scope: !{{[0-9]+}} )
73+ ; CHECK-DAG: [[EXT_MD]] = !DILocalVariable(name: "4", scope: !{{[0-9]+}} , file: !{{[0-9]+}} , line: 4, type: !{{[0-9]+}} )
7174;
72- ; CHECK-DAG: [[STORE_LOC]] = !DILocation(line: 6, column: 1, scope: !9 )
73- ; CHECK-DAG: [[STORE_MD]] = !DILocalVariable(name: "5", scope: !9 , file: !4 , line: 5, type: !19 )
75+ ; CHECK-DAG: [[STORE_LOC]] = !DILocation(line: 6, column: 1, scope: !{{[0-9]+}} )
76+ ; CHECK-DAG: [[STORE_MD]] = !DILocalVariable(name: "5", scope: !{{[0-9]+}} , file: !{{[0-9]+}} , line: 5, type: !{{[0-9]+}} )
7477
7578; Testcase 2 MD:
76- ; CHECK-DAG: [[CALL_LOC]] = !DILocation(line: 7, column: 1, scope: !9 )
79+ ; CHECK-DAG: [[CALL_LOC]] = !DILocation(line: 7, column: 1, scope: !{{[0-9]+}} )
7780;
78- ; CHECK-DAG: [[EXT2_LOC]] = !DILocation(line: 8, column: 1, scope: !9 )
79- ; CHECK-DAG: [[EXT2_MD]] = !DILocalVariable(name: "7", scope: !9 , file: !4 , line: 8, type: !13 )
81+ ; CHECK-DAG: [[EXT2_LOC]] = !DILocation(line: 8, column: 1, scope: !{{[0-9]+}} )
82+ ; CHECK-DAG: [[EXT2_MD]] = !DILocalVariable(name: "7", scope: !{{[0-9]+}} , file: !{{[0-9]+}} , line: 8, type: !{{[0-9]+}} )
8083;
81- ; CHECK-DAG: [[STORE2_LOC]] = !DILocation(line: 9, column: 1, scope: !9 )
84+ ; CHECK-DAG: [[STORE2_LOC]] = !DILocation(line: 9, column: 1, scope: !{{[0-9]+}} )
8285
8386declare half @llvm.genx.GenISA.DCL.inputVec.f16 (i32 , i32 )
8487
@@ -91,6 +94,7 @@ declare void @llvm.dbg.declare(metadata, metadata, metadata) #0
9194attributes #0 = { nounwind readnone speculatable }
9295
9396!igc.functions = !{!0 }
97+ !IGCMetadata = !{!32 }
9498!llvm.dbg.cu = !{!3 }
9599!llvm.debugify = !{!6 , !7 }
96100!llvm.module.flags = !{!8 }
@@ -127,3 +131,6 @@ attributes #0 = { nounwind readnone speculatable }
127131!29 = !DILocation (line: 8 , column: 1 , scope: !9 )
128132!30 = !DILocation (line: 9 , column: 1 , scope: !9 )
129133!31 = !DILocation (line: 10 , column: 1 , scope: !9 )
134+ !32 = !{!"ModuleMD" , !33 }
135+ !33 = !{!"compOpt" , !34 }
136+ !34 = !{!"FastRelaxedMath" , i1 true }
0 commit comments