1# REQUIRES: x86-registered-target 2 3# RUN: cp -f %S/Inputs/common-label-different-bodies-1.ll %t-1.ll 4# RUN: cp -f %S/Inputs/common-label-different-bodies-2.ll %t-2.ll 5# RUN: cp -f %S/Inputs/common-label-different-bodies-3.ll %t-3.ll 6# RUN: %update_llc_test_checks %t-1.ll 7 8# re-running update_llc_test_checks leaves the file as-is. 9# RUN: cp -f %t-1.ll %t-1-copy.ll 10# RUN: %update_llc_test_checks %t-1.ll 11# RUN: diff %t-1.ll %t-1-copy.ll 12# RUN: %update_llc_test_checks %t-2.ll 13# RUN: %update_llc_test_checks %t-3.ll 14# RUN: FileCheck --input-file=%t-1.ll %s --check-prefixes=CHECK,CHECK-UNUSED 15# RUN: FileCheck --input-file=%t-2.ll %s 16# RUN: FileCheck --input-file=%t-3.ll %s 17 18# CHECK: B-LABEL: fold_v2i64 19# CHECK-NOT: A-LABEL: fold_v2i64 20# CHECK: NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line: 21# CHECK-NEXT: A: 22# CHECK-UNUSED-NEXT: UNUSED: 23 24# adding a test removes that label from "unused" prefixes list 25# the input file is like "1" after the tool was run, and then we added a new test 26# RUN: cp -f %S/Inputs/common-label-different-bodies-1-next.ll %t-1-next.ll 27# RUN: %update_llc_test_checks %t-1-next.ll 28# RUN: FileCheck --input-file=%t-1-next.ll %s --check-prefixes=AFTER-CHANGE 29 30# AFTER-CHANGE: NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line: 31# AFTER-CHANGE-NEXT: UNUSED: 32# AFTER-CHANGE-NOT: A: 33