llvm-project/llvm/test/CodeGen/WinEH
Daniel Paoliello 8ecce69594 Fix SEH table addresses for Windows
Issue Details:
The addresses for SEH tables for Windows are incorrect as 1 was unconditionally being added to all addresses. +1 is required for the SEH end address (as it is exclusive), but the SEH start addresses is inclusive and so should be used as-is.

In the IP2State tables, the addresses are +1 for AMD64 to handle the return address for a call being after the actual call instruction but are as-is for ARM and ARM64 as the `StateFromIp` function in the VC runtime automatically takes this into account and adjusts the address that is it looking up.

Fix Details:
* Split the `getLabel` function into two: `getLabel` (used for the SEH start address and ARM+ARM64 IP2State addresses) and `getLabelPlusOne` (for the SEH end address, and AMD64 IP2State addresses).

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D107784
2021-08-20 22:32:12 +03:00
..
lit.local.cfg
wineh-asm.ll
wineh-cloning.ll
wineh-comdat.ll
wineh-demotion.ll
wineh-intrinsics-invalid.ll
wineh-intrinsics.ll
wineh-nested-unwind.ll
wineh-no-demotion.ll
wineh-noret-cleanup.ll Fix SEH table addresses for Windows 2021-08-20 22:32:12 +03:00
wineh-setjmp.ll
wineh-statenumbering-cleanups.ll
wineh-statenumbering.ll