Restrict fpext and fptrunc cast instructions to/from fp128.
We need a more complete fix to defer CTR clobber judgement after instruction selection. See D81353.
Differential D117459
[PowerPC] Change CTR clobber estimation for 128-bit floating types qiucf on Jan 17 2022, 12:57 AM. Authored by
Details
Restrict fpext and fptrunc cast instructions to/from fp128. We need a more complete fix to defer CTR clobber judgement after instruction selection. See D81353.
Diff Detail Event Timeline
Comment Actions I think that since we still keep getting issues with this after so many years and so many changes, we should just reject any operations on IBM double-double and fp128 until we refactor the code as suggested previously. |
I think we are trying to handle fpext/fptrunc for fp128 type? If so, can we just explicitly handle them like:
Your patch seems not only change instructions FPTruncInst and FPExtInst. As you may have noted, ctr clobber check here is very sensitive especially for fp128/ppc_fp128. We met several issues before.
And have you checked with ppc_fp128 for the above two instructions FPTruncInst and FPExtInst? Can we expand them on PowerPC without potential writing ctr?