[PATCH] D71589: [PowerPC] Adding a match pattern to recognize the and mask with RLWINM8

qshanz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 18 01:34:09 PST 2019


steven.zhang added a comment.

Oops, I suddenly realize that, the rlwinm can only rotate the high 32bit. We need to check if the mask is UInt32 or not.

  rlwinm RA,RS,SH,MB,ME
  n <- SH
  r <- ROTL32((RS)32:63, n)     #<--- RS 32:63 ...
  m <- MASK(MB+32, ME+32)
  RA <- r & m


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71589/new/

https://reviews.llvm.org/D71589





More information about the llvm-commits mailing list