<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>
I'm working on the XCore target which does not (nor is there a reason to) handle stack alignment other than 4 byte.<br>
It seems sensible therefore to explicitly set TargetFrameLowering to use:<br>
    TransientStackAlignment = 4,  StackRealignable= false<br>
<br>
"If a constant alignment is specified, the value result of the allocation is guaranteed to be aligned to at least that boundary"<br>
Thus should I expect an error if I compiled the following?<br>
    declare void @f1(i32*, i32*)<br>
    define void @f2() nounwind {<br>
    entry:<br>
      %0 = alloca i32, align 1<br>
      %1 = alloca i32, align 16<br>
      call void @f1(i32* %0, i32* %1)<br>
      ret void<br>
    }<br>
The output currently seems to ignore the 'align' and uses 4 byte alignment on the stack.<br>
<br>
Thank you.<br>
<br>
Robert<br>
<br>
</div>
</body>
</html>