[llvm] [Hexagon][MC] Fix arch attribute mapping in ELFObjectFile (PR #201531)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 4 02:24:56 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 175095 tests passed
* 3431 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### LLVM
<details>
<summary>LLVM.MC/Hexagon/hexagon_attribues_arch.s</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 7
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -triple=hexagon --mcpu=hexagonv68 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/Hexagon/hexagon_attribues_arch.s    -filetype=obj --hexagon-add-build-attributes -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/MC/Hexagon/Output/hexagon_attribues_arch.s.tmp.v68.o
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -triple=hexagon --mcpu=hexagonv68 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/Hexagon/hexagon_attribues_arch.s -filetype=obj --hexagon-add-build-attributes -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/MC/Hexagon/Output/hexagon_attribues_arch.s.tmp.v68.o
# note: command had no output on stdout or stderr
# RUN: at line 9
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-readelf -A /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/MC/Hexagon/Output/hexagon_attribues_arch.s.tmp.v68.o | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/Hexagon/hexagon_attribues_arch.s --check-prefix=V68
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-readelf -A /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/MC/Hexagon/Output/hexagon_attribues_arch.s.tmp.v68.o
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/Hexagon/hexagon_attribues_arch.s --check-prefix=V68
# note: command had no output on stdout or stderr
# RUN: at line 10
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-objdump -d /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/MC/Hexagon/Output/hexagon_attribues_arch.s.tmp.v68.o | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/Hexagon/hexagon_attribues_arch.s --check-prefix=DIS
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-objdump -d /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/MC/Hexagon/Output/hexagon_attribues_arch.s.tmp.v68.o
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/Hexagon/hexagon_attribues_arch.s --check-prefix=DIS
# note: command had no output on stdout or stderr
# RUN: at line 12
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -triple=hexagon --mcpu=hexagonv75 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/Hexagon/hexagon_attribues_arch.s    -filetype=obj --hexagon-add-build-attributes -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/MC/Hexagon/Output/hexagon_attribues_arch.s.tmp.v75.o
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -triple=hexagon --mcpu=hexagonv75 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/Hexagon/hexagon_attribues_arch.s -filetype=obj --hexagon-add-build-attributes -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/MC/Hexagon/Output/hexagon_attribues_arch.s.tmp.v75.o
# note: command had no output on stdout or stderr
# RUN: at line 14
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-readelf -A /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/MC/Hexagon/Output/hexagon_attribues_arch.s.tmp.v75.o | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/Hexagon/hexagon_attribues_arch.s --check-prefix=V75
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-readelf -A /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/MC/Hexagon/Output/hexagon_attribues_arch.s.tmp.v75.o
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/Hexagon/hexagon_attribues_arch.s --check-prefix=V75
# note: command had no output on stdout or stderr
# RUN: at line 15
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-objdump -d /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/MC/Hexagon/Output/hexagon_attribues_arch.s.tmp.v75.o | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/Hexagon/hexagon_attribues_arch.s --check-prefix=DIS
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-objdump -d /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/MC/Hexagon/Output/hexagon_attribues_arch.s.tmp.v75.o
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/Hexagon/hexagon_attribues_arch.s --check-prefix=DIS
# note: command had no output on stdout or stderr
# RUN: at line 17
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -triple=hexagon --mcpu=hexagonv85 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/Hexagon/hexagon_attribues_arch.s    -filetype=obj --hexagon-add-build-attributes -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/MC/Hexagon/Output/hexagon_attribues_arch.s.tmp.v85.o
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -triple=hexagon --mcpu=hexagonv85 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/Hexagon/hexagon_attribues_arch.s -filetype=obj --hexagon-add-build-attributes -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/MC/Hexagon/Output/hexagon_attribues_arch.s.tmp.v85.o
# .---command stderr------------
# | 'hexagonv85' is not a recognized processor for this target (ignoring processor)
# | 'hexagonv85' is not a recognized processor for this target (ignoring processor)
# | error: invalid CPU "hexagonv85" specified
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc: error: unable to create subtarget info
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/201531


More information about the llvm-commits mailing list