search for: psubus

Displaying 2 results from an estimated 2 matches for "psubus".

2017 May 16
2
[RFC] Canonicalization of unsigned subtraction with saturation
...= sub i16 %y, %x %res = select i1 %cmp, i16 0, i16 %sub2 or (2.16) %cmp = icmp ugt i16 %x, %y %sel = select i1 %cmp, i16 %x, i16 %y %sub = sub i16 %sel, %x Which of these versions is canonical? I think first version is better, because it can be converted to unsigned saturation instruction(i.e. PSUBUS), using existing backend code.
2017 May 16
2
[RFC] Canonicalization of unsigned subtraction with saturation
...; (2.16) > %cmp = icmp ugt i16 %x, %y > %sel = select i1 %cmp, i16 %x, i16 %y > %sub = sub i16 %sel, %x > > Which of these versions is canonical? I think first version is > better, because it can be converted to unsigned saturation > instruction(i.e. PSUBUS), using existing backend code. > > -- Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.ll...