<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi,<br>
<br>
Here is a patch for handling the exception unwind on the XCore target.<br>
<br>
    XCore target: Fix llvm.eh.return and EH info register handling<br>
<br>
    For functions which call callsUnwindInit() and callsEHReturn()<br>
    spill slots for R0 & R1 (exception info regs) are added without spilling R0 & R1.<br>
    The EH unwinder will write the exception info to these spill slots.<br>
    The exception info registers are only restored during an llv.eh.return() to a landing pad.<br>
    Under normal return, R0 holds the function's return code and must not be overwritten.<br>
<br>
Robert<br>
<br>
</div>
</body>
</html>