File tree Expand file tree Collapse file tree 4 files changed +6
-3
lines changed
test/tools/UpdateTestChecks/update_test_checks Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1- ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
21; RUN: opt < %s -S | FileCheck %s
32
43; Test whether the UTC format the switch-cases correctly, which requires TWO extra spaces.
Original file line number Diff line number Diff line change 11## switch_case test checking that update_test_checks.py works correctly
2- # RUN: cp -f %S/Inputs/switch_case.ll %t.ll && %update_test_checks %t.ll
2+ # RUN: cp -f %S/Inputs/switch_case.ll %t.ll && %update_test_checks %t.ll --version 7
33# RUN: diff -u %t.ll %S/Inputs/switch_case.ll.expected
Original file line number Diff line number Diff line change 2929 'none' and 'all'. 'smart' is the default.
30305: Basic block labels are matched by FileCheck expressions
31316: The semantics of TBAA checks has been incorporated in the check lines.
32+ 7: Indent switch-cases correctly.
3233"""
3334DEFAULT_VERSION = 6
3435
Original file line number Diff line number Diff line change @@ -265,7 +265,10 @@ def update_test(ti: common.TestInfo):
265265 " " * 4
266266 if (
267267 common .IS_DEBUG_RECORD_RE .match (input_line )
268- or common .IS_SWITCH_CASE_RE .match (input_line )
268+ or (
269+ ti .args .version > 6
270+ and common .IS_SWITCH_CASE_RE .match (input_line )
271+ )
269272 )
270273 else " " * 2
271274 )
You can’t perform that action at this time.
0 commit comments