<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;"><span style="font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.3333px;">> > Some more information on what I have so far. I'll actually focus on the longjmp side,
 as the problem is probably easier.</span><br style="font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.3333px;">
<span style="font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.3333px;">> > </span><br style="font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.3333px;">
<span style="font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.3333px;">> > I need to get the SETHI / OR combination inserted where the comment</span><br style="font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.3333px;">
<span style="font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.3333px;">> > "*** Need to use the SETHI / OR combination here. ***" appears in the</span><br style="font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.3333px;">
<span style="font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.3333px;">> > code below, but I'm not sure that this is done anywhere near this piece</span><br style="font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.3333px;">
<span style="font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.3333px;">> > of code, so I'll include all the relevant parts that I can find of my</span><br style="font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.3333px;">
<span style="font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.3333px;">> > current implementation.</span><br style="font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.3333px;">
<br style="font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.3333px;">
<span style="font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.3333px;">> I don't understand what exactly you want to materialize here. Shouldn't</span><br style="font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.3333px;">
<span style="font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.3333px;">> the address of the buffer already be an operand at this point?</span><br style="font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.3333px;">
<br style="font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.3333px;">
<span style="font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.3333px;">> Joerg</span><br style="font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.3333px;">
<br style="font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13.3333px;">
<div>Quite possibly, I've over-simplified my example. Perhaps I should have focussed more on the setjmp part, which is actually where I was coding anyway. In this, I need to store the address of the instruction after I've lowered the intrinsic into a buffer
 so that I can recover this and jump back to it from the longjmp intrinsic.</div>
<div><br>
</div>
<div>There are two or three parts, and I'm not sure how to go about either. After I get these working, the rest is (I think) plain-sailing:</div>
<div><br>
</div>
<div>(1) I need to take the address of the instruction after the lowered setjmp intrinsic, which I think requires that I create a new basic block</div>
<div><br>
</div>
<div>(2) I need to get the address of this basic block, at lowering time, and get it into a register using the SETHI / OR combination (I presume). Once it's in the register, I can store it in the buffer easily. There must surely be a good way to load an address
 using SETHI / OR, but nothing I've tried (including "makeAddress") works so far. I guess I could code each of SETHI and OR individually, but surely there's some code around to take care of this already.</div>
<div><br>
</div>
<div>(3) Is there anything else? Do I need any indicators to let the back-end know it'll need to fix-up the address taken in step (2) later in the compilation - or possibly in the link - pipeline?</div>
</div>
</body>
</html>