|
1 | 1 | /* |
2 | | - * Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2019, 2022, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 | 4 | * |
5 | 5 | * This code is free software; you can redistribute it and/or modify it |
|
68 | 68 | * |
69 | 69 | * <li>{@code ESIZE} — the size in bytes of the operand type |
70 | 70 | * |
| 71 | + * <li>{@code EMASK} — the bit mask of the operand type, where {@code EMASK=(1<<(ESIZE*8))-1} |
| 72 | + * |
71 | 73 | * <li>{@code intVal}, {@code byteVal}, etc. — the operand of a |
72 | 74 | * conversion, with the indicated type |
73 | 75 | * </ul> |
@@ -548,7 +550,7 @@ static boolean opKind(Operator op, int bit) { |
548 | 550 | public static final /*bitwise*/ Binary LSHL = binary("LSHL", "<<", VectorSupport.VECTOR_OP_LSHIFT, VO_SHIFT); |
549 | 551 | /** Produce {@code a>>(n&(ESIZE*8-1))}. Integral only. */ |
550 | 552 | public static final /*bitwise*/ Binary ASHR = binary("ASHR", ">>", VectorSupport.VECTOR_OP_RSHIFT, VO_SHIFT); |
551 | | - /** Produce {@code a>>>(n&(ESIZE*8-1))}. Integral only. */ |
| 553 | + /** Produce {@code (a&EMASK)>>>(n&(ESIZE*8-1))}. Integral only. */ |
552 | 554 | public static final /*bitwise*/ Binary LSHR = binary("LSHR", ">>>", VectorSupport.VECTOR_OP_URSHIFT, VO_SHIFT); |
553 | 555 | /** Produce {@code rotateLeft(a,n)}. Integral only. */ |
554 | 556 | public static final /*bitwise*/ Binary ROL = binary("ROL", "rotateLeft", VectorSupport.VECTOR_OP_LROTATE, VO_SHIFT); |
|
0 commit comments