llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: Tomer Shafir (tomershafir) <details> <summary>Changes</summary> 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 --- Full diff: https://github.com/llvm/llvm-project/pull/166416.diff 1 Files Affected: - (modified) clang/test/CodeGen/pr45476.cpp (+1-1) ``````````diff 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 `````````` </details> https://github.com/llvm/llvm-project/pull/166416 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
