isSOImmTwoPartVal - Return true if the specified value can be obtained by or'ing together two SOImmVal's.
| 201 | /// isSOImmTwoPartVal - Return true if the specified value can be obtained by |
| 202 | /// or'ing together two SOImmVal's. |
| 203 | static inline bool isSOImmTwoPartVal(unsigned V) |
| 204 | { |
| 205 | // If this can be handled with a single shifter_op, bail out. |
| 206 | V = rotr32(~255U, getSOImmValRotate(V)) & V; |
| 207 | if (V == 0) |
| 208 | return false; |
| 209 | |
| 210 | // If this can be handled with two shifter_op's, accept. |
| 211 | V = rotr32(~255U, getSOImmValRotate(V)) & V; |
| 212 | return V == 0; |
| 213 | } |
| 214 | |
| 215 | /// getSOImmTwoPartFirst - If V is a value that satisfies isSOImmTwoPartVal, |
| 216 | /// return the first chunk of it. |
nothing calls this directly
no test coverage detected
searching dependent graphs…