This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Don't set use to RM for static rounding instructions
AbandonedPublic

Authored by qiucf on Jul 9 2020, 3:29 AM.

Details

Reviewers
nemanjai
jsji
ZhangKang
steven.zhang
hfinkel
Group Reviewers
Restricted Project
Summary

Instructions x(v|s)r(d|s)pi[zmp]? and fri[npzm] use fixed rounding directions without referencing current rounding mode. This patch removes their use to RM in instructions definition.

Diff Detail

Event Timeline

qiucf created this revision.Jul 9 2020, 3:29 AM
jsji requested changes to this revision.Jul 17 2020, 11:56 AM

Looks mostly good to me. But please add MIR tests for these.

eg:

   %0:vsfrc = COPY $f1
-  %1:vsfrc = nofpexcept XSRDPI %0:vsfrc
+  %1:vsfrc = nofpexcept XSRDPI %0:vsfrc, implicit $rm
   $f1 = COPY %1:vsfrc
   BLR8 implicit $lr8, implicit $rm, implicit $f1
This revision now requires changes to proceed.Jul 17 2020, 11:56 AM
qiucf abandoned this revision.Jul 19 2020, 8:01 PM

Dup of D81360