Skip to content

Commit 7e6d5fc

Browse files
LegNeatoFirestar99
authored andcommitted
compiletests: normalize issue-1062 OpLine output
This disassembly test only cares about the rotate lowering pattern, not source line tables. Strip OpLine records entirely so line-number drift across toolchains does not require reblessing the test.
1 parent 6d7b046 commit 7e6d5fc

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

tests/compiletests/ui/dis/issue-1062.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
// build-pass
66
// compile-flags: -C llvm-args=--disassemble-entry=main
7+
// normalize-stderr-test "OpLine .*\n" -> ""
78

89
use spirv_std::spirv;
910

tests/compiletests/ui/dis/issue-1062.stderr

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
%1 = OpFunction %2 None %3
22
%4 = OpLabel
3-
OpLine %5 11 12
43
%6 = OpLoad %7 %8
5-
OpLine %5 11 35
64
%9 = OpLoad %7 %10
7-
OpLine %11 1243 4
85
%12 = OpBitwiseAnd %7 %9 %13
96
%14 = OpISub %7 %15 %12
107
%16 = OpShiftLeftLogical %7 %6 %12
@@ -19,7 +16,6 @@ OpLine %11 1243 4
1916
%27 = OpBitwiseOr %7 %25 %26
2017
%28 = OpIEqual %20 %23 %21
2118
%29 = OpSelect %7 %28 %6 %27
22-
OpLine %5 12 4
2319
%30 = OpInBoundsAccessChain %31 %32 %21
2420
OpStore %30 %22
2521
%33 = OpInBoundsAccessChain %31 %32 %34

0 commit comments

Comments
 (0)