From d6f772074c48cf9bb57191cb065b5ce60012ed74 Mon Sep 17 00:00:00 2001 From: Jon Roelofs Date: Fri, 15 Dec 2023 12:46:05 -0700 Subject: [PATCH] fixup! fixup! [GlobalISel] Always direct-call IFuncs and Aliases (#74902) Apparently some BOLT bots build with a pre-installed system clang, and others use the just-built one. These two clangs now behave slightly differently when it comes to ifunc codegen after https://github.com/llvm/llvm-project/pull/74902 Change the test to accept both patterns. --- bolt/test/AArch64/ifunc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bolt/test/AArch64/ifunc.c b/bolt/test/AArch64/ifunc.c index 79c035ed4537..c8c5c7c29d4a 100644 --- a/bolt/test/AArch64/ifunc.c +++ b/bolt/test/AArch64/ifunc.c @@ -45,7 +45,7 @@ // NON_DYN_CHECK-NOT: DYNAMIC -// CHECK: b{{l?}} "{{resolver_foo|ifoo}}{{.*}}@PLT" +// CHECK: {{(bl? "(resolver_foo|ifoo).*@PLT"|adr x[0-9]+, ifoo)}} // REL_CHECK: R_AARCH64_IRELATIVE [[#%x,REL_SYMB_ADDR:]] // REL_CHECK: [[#REL_SYMB_ADDR]] {{.*}} FUNC {{.*}} resolver_foo