<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/60585>60585</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Backport 71513f761cb8d334f903986c875f7d16ab2ddeaf into release/16.x
</td>
</tr>
<tr>
<th>Labels</th>
<td>
flang:ir,
release:backport
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
amy-kwan
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
amy-kwan
</td>
</tr>
</table>
<pre>
When building all targets for flang, the `emit-asm-from-mlir.mlir` test case will run and if we're on a target that does not produce a `ret` instruction, the test case will fail. For instance, on Power, we produce `blr` instead.
We would like to backport 71513f761cb8d334f903986c875f7d16ab2ddeaf to resolve this issue that we have been seeing on Power.
/cherry-pick 71513f761cb8d334f903986c875f7d16ab2ddeaf
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUUruu3SAQ_BrcrGxh8LNwcR9yne7WPNY2ORiOAF_n_n3EeSRKqqRZEFpmdmZHxGhWhziR9pUwJvav8nIKRxgj7XshjrT5MD1fC-n11_SxoQN5GKuNW0FYC0mEFVOExQdYrHArYW-QNgTSUdxNKkXcyyX4vdytCVUupKOQMCZQIiKcxloIhwPhNJgFTiSsDwjegXigQ9pEAu0xgvMJrsHrQyGIzBEwZTzjYgqHSsa75wB_USzC2ApmH269winMjd7BN39iyPcTf0GTjkobnsAodEXoO6Ev9_qBcPrDarDmgpA8SKEuVx8S9HVb86XvaiUHzXmzjJSPQ6eGvl16XXdCMq1RLPlTwOjtJ0LaTAQT44F3nSfCJj4RJKKDiJidfo75xxiEzWrDEL7Kq1GXf-Yu9MT1yEdR4FR3fdsPrKuHYptq2S5D04x139WjVnyQLdXtyLhqcVwoL8zEKOOU0UxF677qc3ej2NBwKmmtSUNxzz5b-7lXPqzFTdfU0XZoCysk2vhI2z0r_MWEnDf2RhgLaFFEJPzl6ecjimHKeKU81kgaak1M8TdDMsni9PrfGzDutoM7JZvrrvpRHMFOW0rXSHh2l7B5NWk7ZKX8TticOR9HeQ3-O6pE2HyTGAmbbyp_BgAA__8n7A7v">