https://github.com/aobolensk updated https://github.com/llvm/llvm-project/pull/234244
>From 4c3b2b1d078e69954546a97ac9b8a09ec1a56ff1 Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy <[email protected]> Date: Wed, 21 Oct 2026 17:28:38 +0200 Subject: [PATCH] [CIR] Fix x86_64 Linux REQUIRES in CIR tests target={{x86_64-linux}} must match the whole triple, so these tests never ran on x86_64-unknown-linux-gnu --- clang/test/CIR/Lowering/calling-conv.cir | 2 +- clang/test/CIR/Lowering/module-asm.cir | 2 +- clang/test/CIR/Lowering/poison.cir | 2 +- clang/test/CIR/Lowering/ptr-stride-index-width.cir | 2 +- clang/test/CIR/Lowering/select.cir | 2 +- clang/test/CIR/Lowering/strictfp.cir | 2 +- clang/test/CIR/Lowering/ternary.cir | 2 +- clang/test/CIR/Tools/warn-default-triple.cir | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/clang/test/CIR/Lowering/calling-conv.cir b/clang/test/CIR/Lowering/calling-conv.cir index 6d66536e0e9023..e223f40342d0f8 100644 --- a/clang/test/CIR/Lowering/calling-conv.cir +++ b/clang/test/CIR/Lowering/calling-conv.cir @@ -1,6 +1,6 @@ // RUN: cir-opt %s -cir-to-llvm -o - | FileCheck %s -check-prefix=MLIR // RUN: cir-translate %s -cir-to-llvmir --disable-cc-lowering | FileCheck %s -check-prefix=LLVM -// REQUIRES: target={{x86_64-linux}} +// REQUIRES: target={{x86_64-.*-linux.*}} module { // MLIR: llvm.func @default_cc() diff --git a/clang/test/CIR/Lowering/module-asm.cir b/clang/test/CIR/Lowering/module-asm.cir index 8231e454c89e69..018e57ab5f2f2c 100644 --- a/clang/test/CIR/Lowering/module-asm.cir +++ b/clang/test/CIR/Lowering/module-asm.cir @@ -3,7 +3,7 @@ // RUN: cir-translate -cir-to-llvmir --disable-cc-lowering -o %t.ll %s // RUN: FileCheck -check-prefix=LLVM --input-file=%t.ll %s -// REQUIRES: target={{x86_64-linux}} +// REQUIRES: target={{x86_64-.*-linux.*}} // CHECK: llvm.module_asm = [".globl bar", ".globl foo"] // LLVM: module asm diff --git a/clang/test/CIR/Lowering/poison.cir b/clang/test/CIR/Lowering/poison.cir index 9ce284da44f99b..91e0b719e1bd81 100644 --- a/clang/test/CIR/Lowering/poison.cir +++ b/clang/test/CIR/Lowering/poison.cir @@ -1,6 +1,6 @@ // RUN: cir-translate -cir-to-llvmir --disable-cc-lowering -o %t.ll %s // RUN: FileCheck -check-prefix=LLVM --input-file=%t.ll %s -// REQUIRES: target={{x86_64-linux}} +// REQUIRES: target={{x86_64-.*-linux.*}} !s32i = !cir.int<s, 32> diff --git a/clang/test/CIR/Lowering/ptr-stride-index-width.cir b/clang/test/CIR/Lowering/ptr-stride-index-width.cir index 016b9d86a5bcb5..eea3712c07c18a 100644 --- a/clang/test/CIR/Lowering/ptr-stride-index-width.cir +++ b/clang/test/CIR/Lowering/ptr-stride-index-width.cir @@ -1,6 +1,6 @@ // RUN: cir-translate -cir-to-llvmir --disable-cc-lowering -o %t.ll %s // RUN: FileCheck --input-file=%t.ll -check-prefix=LLVM %s -// REQUIRES: target={{x86_64-linux}} +// REQUIRES: target={{x86_64-.*-linux.*}} !s32i = !cir.int<s, 32> diff --git a/clang/test/CIR/Lowering/select.cir b/clang/test/CIR/Lowering/select.cir index e5fc5ba771914d..d64677af885929 100644 --- a/clang/test/CIR/Lowering/select.cir +++ b/clang/test/CIR/Lowering/select.cir @@ -1,6 +1,6 @@ // RUN: cir-translate -cir-to-llvmir --disable-cc-lowering -o - %s | FileCheck -check-prefix=LLVM %s // RUN: cir-translate -target aarch64 -cir-to-llvmir --disable-cc-lowering -o - %s | FileCheck -check-prefix=LLVM %s -// REQUIRES: target={{x86_64-linux}} +// REQUIRES: target={{x86_64-.*-linux.*}} !s32i = !cir.int<s, 32> diff --git a/clang/test/CIR/Lowering/strictfp.cir b/clang/test/CIR/Lowering/strictfp.cir index 75493d619feb81..7c4abf807776bb 100644 --- a/clang/test/CIR/Lowering/strictfp.cir +++ b/clang/test/CIR/Lowering/strictfp.cir @@ -1,6 +1,6 @@ // RUN: cir-opt %s -cir-to-llvm -o - | FileCheck %s -check-prefix=MLIR // RUN: cir-translate %s -cir-to-llvmir --disable-cc-lowering | FileCheck %s -check-prefix=LLVM -// REQUIRES: target={{x86_64-linux}} +// REQUIRES: target={{x86_64-.*-linux.*}} // Functions tagged with the `strictfp` CIR function attribute should be // lowered to `llvm.func` operations whose `passthrough` array contains diff --git a/clang/test/CIR/Lowering/ternary.cir b/clang/test/CIR/Lowering/ternary.cir index 56128613a12cae..aad589e39bf935 100644 --- a/clang/test/CIR/Lowering/ternary.cir +++ b/clang/test/CIR/Lowering/ternary.cir @@ -1,6 +1,6 @@ // RUN: cir-translate -cir-to-llvmir --disable-cc-lowering -o %t.ll %s // RUN: FileCheck --input-file=%t.ll -check-prefix=LLVM %s -// REQUIRES: target={{x86_64-linux}} +// REQUIRES: target={{x86_64-.*-linux.*}} !s32i = !cir.int<s, 32> !u32i = !cir.int<u, 32> diff --git a/clang/test/CIR/Tools/warn-default-triple.cir b/clang/test/CIR/Tools/warn-default-triple.cir index 66b2dd053d80a7..0ff41fd71e4964 100644 --- a/clang/test/CIR/Tools/warn-default-triple.cir +++ b/clang/test/CIR/Tools/warn-default-triple.cir @@ -1,5 +1,5 @@ // RUN: cir-translate -verify-diagnostics --cir-to-llvmir --disable-cc-lowering %s -// REQUIRES: target={{x86_64-linux}} +// REQUIRES: target={{x86_64-.*-linux.*}} // expected-warning@below {{no target triple provided, assuming}} module { _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
