[clang] [llvm] [UpdateTestChecks][Clang][CIR] Add support for CIR in update_cc_test_checks.py (PR #241654)

Vicky Nguyen via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 3 21:55:55 PST 2026


================
@@ -0,0 +1,18 @@
+## --normalize-local-names gives local values the same names on every path.
+## Each case checks the generated checks against .expected, and then against
+## the real output: .expected only catches changes, the real output catches
+## wrong checks.
+
+## %entryv is not a reference to the "entry:" label, so the label is dropped.
+# RUN: cp %S/Inputs/normalize-local-names-entry.c %t-entry.c
+# RUN: %update_cc_test_checks --version 6 --normalize-local-names %t-entry.c
+# RUN: diff -u %S/Inputs/normalize-local-names-entry.c.expected %t-entry.c
+# RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -disable-O0-optnone -o - %t-entry.c \
----------------
iamvickynguyen wrote:

Right, there's no REQUIRES x86, I just built with x86. I removed the triple from the tests. Thank you for pointing that out!

https://github.com/llvm/llvm-project/pull/241654


More information about the cfe-commits mailing list