Skip to content

Commit 8d3b939

Browse files
committed
[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 #151404
1 parent 855a3e9 commit 8d3b939

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/CodeGen/pr45476.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -triple armv6m-eabi -emit-llvm %s -o - | FileCheck -check-prefix=LIBCALL %s
1+
// RUN: %clang_cc1 -triple thumbv6m-eabi -emit-llvm %s -o - | FileCheck -check-prefix=LIBCALL %s
22
// RUN: %clang_cc1 -triple armv8-eabi -emit-llvm %s -o - | FileCheck -check-prefix=NATIVE %s
33
// PR45476
44

0 commit comments

Comments
 (0)