<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi,
<div><br>
</div>
<div>I'm trying to implement __builtin_setjmp / __builtin_longjmp for Sparc processors. I think I'm very close, but I can't work out how to issue BuildMI-type instructions to load the address of the recovery location (set in setjmp) into a register using the
 SETHI / OR combination. I can't see any equivalent code anywhere else in Sparc.</div>
<div><br>
</div>
<div>I imagine this is similar if I try to make a CALLRi or CALLrr call, but looking through the code there isn't yielding any obvious solution to me.</div>
<div><br>
</div>
<div>Would anyone be able to point me at a relevant piece of code that can do this, or is already doing it for Sparc?</div>
<div><br>
</div>
<div>Best Regards,</div>
<div>Chris Dewhurst / Lero, University of Limerick, Ireland.</div>
</div>
</body>
</html>