https://github.com/tomershafir created https://github.com/llvm/llvm-project/pull/166416
Currently, the ARM backend incorrectly parses every `arm` prefixed arch to be non-thumb, but `armv6m` is THUMB and doesnt have ARM ops causing the test to fail: `error: Function 'foo' uses ARM instructions, but the target does not support ARM mode execution.` As a quick triage, this change switches the test to use `thumb`. Uncovered by https://github.com/llvm/llvm-project/pull/151404 >From 8d3b939d3796553aa1b54ab672b1dd053d4e4530 Mon Sep 17 00:00:00 2001 From: tomershafir <[email protected]> Date: Tue, 4 Nov 2025 21:06:57 +0200 Subject: [PATCH] [ARM] Fix test using thumb instead arm arch prefix Currently, the ARM backend incorrectly parses every `arm` prefixed arch to be non-thumb, but `armv6m` is THUMB and doesnt have ARM ops causing the test to fail: `error: Function 'foo' uses ARM instructions, but the target does not support ARM mode execution.` As a quick triage, this change switches the test to use `thumb`. Uncovered by https://github.com/llvm/llvm-project/pull/151404 --- clang/test/CodeGen/pr45476.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/test/CodeGen/pr45476.cpp b/clang/test/CodeGen/pr45476.cpp index c95f7fb8cd9c3..3a67904a8e568 100644 --- a/clang/test/CodeGen/pr45476.cpp +++ b/clang/test/CodeGen/pr45476.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -triple armv6m-eabi -emit-llvm %s -o - | FileCheck -check-prefix=LIBCALL %s +// RUN: %clang_cc1 -triple thumbv6m-eabi -emit-llvm %s -o - | FileCheck -check-prefix=LIBCALL %s // RUN: %clang_cc1 -triple armv8-eabi -emit-llvm %s -o - | FileCheck -check-prefix=NATIVE %s // PR45476 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
