33 lines · plain
1# REQUIRES: x86-registered-target2 3# RUN: cp -f %S/Inputs/common-label-different-bodies-1.ll %t-1.ll4# RUN: cp -f %S/Inputs/common-label-different-bodies-2.ll %t-2.ll5# RUN: cp -f %S/Inputs/common-label-different-bodies-3.ll %t-3.ll6# RUN: %update_llc_test_checks %t-1.ll7 8# re-running update_llc_test_checks leaves the file as-is.9# RUN: cp -f %t-1.ll %t-1-copy.ll10# RUN: %update_llc_test_checks %t-1.ll11# RUN: diff %t-1.ll %t-1-copy.ll12# RUN: %update_llc_test_checks %t-2.ll13# RUN: %update_llc_test_checks %t-3.ll14# RUN: FileCheck --input-file=%t-1.ll %s --check-prefixes=CHECK,CHECK-UNUSED15# RUN: FileCheck --input-file=%t-2.ll %s16# RUN: FileCheck --input-file=%t-3.ll %s17 18# CHECK: B-LABEL: fold_v2i6419# CHECK-NOT: A-LABEL: fold_v2i6420# 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 list25# the input file is like "1" after the tool was run, and then we added a new test26# RUN: cp -f %S/Inputs/common-label-different-bodies-1-next.ll %t-1-next.ll27# RUN: %update_llc_test_checks %t-1-next.ll28# RUN: FileCheck --input-file=%t-1-next.ll %s --check-prefixes=AFTER-CHANGE29 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