[all-commits] [llvm/llvm-project] 3e5b86: [AArch64] [test] Write the seh.s test output objec...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Tue Dec 2 03:36:06 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3e5b86cec112f5f5639c71bd54e7ca7862cf58bb
      https://github.com/llvm/llvm-project/commit/3e5b86cec112f5f5639c71bd54e7ca7862cf58bb
  Author: Martin Storsjö <martin at martin.st>
  Date:   2025-12-02 (Tue, 02 Dec 2025)

  Changed paths:
    M llvm/test/MC/AArch64/seh.s

  Log Message:
  -----------
  [AArch64] [test] Write the seh.s test output object to a file

This is what is done in other tests; this makes it easier to
inspect the output of this test manually.


  Commit: e50ac8a9b1bca90b5d3fea7a20b9985870a08df4
      https://github.com/llvm/llvm-project/commit/e50ac8a9b1bca90b5d3fea7a20b9985870a08df4
  Author: Martin Storsjö <martin at martin.st>
  Date:   2025-12-02 (Tue, 02 Dec 2025)

  Changed paths:
    M llvm/test/MC/AArch64/seh.s

  Log Message:
  -----------
  [AArch64] [test] Move tests for custom unwind opcodes to a separate function

These custom opcodes disable the checker for having the prologue
length actually match the opcodes (see checkARM64Instructions in
MCWin64EH.cpp) - which led to the prologue mismatching the opcodes
by one instruction, since 312d6b488ef9d7c0e4d649827820db7285e36406.

Move the special opcodes to a separate test function.

Remove the mismatched nop instruction at the end of the main
function, as this prologue now is assembled with the strict length
checking enabled.


  Commit: 9e27fefc180da46bed8731cb19f542f1bd6f2ff4
      https://github.com/llvm/llvm-project/commit/9e27fefc180da46bed8731cb19f542f1bd6f2ff4
  Author: Martin Storsjö <martin at martin.st>
  Date:   2025-12-02 (Tue, 02 Dec 2025)

  Changed paths:
    M llvm/test/MC/AArch64/seh.s

  Log Message:
  -----------
  [AArch64] [test] Fix stack allocation instructions in the seh.s test

The actual unwind opcodes only stores stack increments in units
of 16 (which is what it is listed as in the unwind opcode
dumping by llvm-readobj); actually write what we intend to encode.


  Commit: 4a619a7d082473ca2373824ac9c7f2ea61011a73
      https://github.com/llvm/llvm-project/commit/4a619a7d082473ca2373824ac9c7f2ea61011a73
  Author: Martin Storsjö <martin at martin.st>
  Date:   2025-12-02 (Tue, 02 Dec 2025)

  Changed paths:
    M llvm/test/MC/AArch64/seh.s

  Log Message:
  -----------
  [AArch64] [test] Spell out the matching instructions for SVE unwind opcodes

The MS dumpbin.exe tool can dump the unwind opcodes with the
"-unwindinfo" option; this mode also checks that the instructions
actually match the expected ones here. (This mode doesn't seem
to fully work for all instructions here, but spell out all the
intended instructions here.)


  Commit: 458035027c80e984bf5862140aed20d5e50dd22a
      https://github.com/llvm/llvm-project/commit/458035027c80e984bf5862140aed20d5e50dd22a
  Author: Martin Storsjö <martin at martin.st>
  Date:   2025-12-02 (Tue, 02 Dec 2025)

  Changed paths:
    M llvm/test/MC/AArch64/seh-large-func-multi-epilog.s
    M llvm/test/MC/AArch64/seh-packed-epilog.s
    M llvm/test/MC/AArch64/seh-packed-unwind.s

  Log Message:
  -----------
  [AArch64] [test] Make unwind info tests actually use the right instructions

This makes them match the expected decoding of the unwind info
opcodes, avoiding mismatch indications from "dumpbin -unwindinfo".


Compare: https://github.com/llvm/llvm-project/compare/aaa37afbc283...458035027c80

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list