Skip to content

Commit 54a89c4

Browse files
committed
Document why we can't use instructions like xsrdpiz
1 parent c4a9854 commit 54a89c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/PowerPC/PPCInstrVSX.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2786,6 +2786,8 @@ def : Pat<(v2f64 (any_frint v2f64:$S)), (v2f64 (XVRDPIC $S))>;
27862786
// Rounding without exceptions (nearbyint). Due to strange tblgen behaviour,
27872787
// these need to be defined after the any_frint versions so ISEL will correctly
27882788
// add the chain to the strict versions.
2789+
// TODO: Match strict fp rounding intrinsics with instructions like xsrdpiz when
2790+
// rounding mode is propagated to CodeGen part.
27892791
def : Pat<(f32 (strict_fnearbyint f32:$S)),
27902792
(f32 (COPY_TO_REGCLASS (XSRDPIC
27912793
(COPY_TO_REGCLASS $S, VSFRC)), VSSRC))>;

0 commit comments

Comments
 (0)