[aarch64-port-dev ] RFR: 8221658: aarch64: add necessary predicate for ubfx patterns

Andrew Haley aph at redhat.com
Mon Apr 1 09:15:57 UTC 2019


On 4/1/19 2:19 AM, Yangfei (Felix) wrote:
> The patch adds the following three constraints for 'rshift' and 'mask' operands:
> 
>     1. 0 <= rshift <=31/63
>     2. mask != 0
>     3. rshift + width <= 32/64  (width = exact_log2(mask+1))
> 
>     Constraint 3 needs to be implemented by adding a predicate as we are checking both 'rshift' and 'mask' operands. 
> 
>     Do you want me to implement constraint 1 & 2 using a match operand? 

Yes. Please do so wherever possible.

-- 
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671


More information about the hotspot-compiler-dev mailing list