src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir.amd64/src/org/graalvm/compiler/lir/amd64/vector/AMD64VectorUnary.java
author dlong
Thu, 14 Nov 2019 12:21:00 -0800
changeset 59095 03fbcd06b4c0
parent 51436 091c0d22e735
permissions -rw-r--r--
8233841: Update Graal Reviewed-by: kvn
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
     1
/*
59095
03fbcd06b4c0 8233841: Update Graal
dlong
parents: 51436
diff changeset
     2
 * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
     4
 *
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
     7
 * published by the Free Software Foundation.
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
     8
 *
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    13
 * accompanied this code).
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    14
 *
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    18
 *
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    21
 * questions.
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    22
 */
50858
2d3e99a72541 8205824: Update Graal
never
parents: 50609
diff changeset
    23
2d3e99a72541 8205824: Update Graal
never
parents: 50609
diff changeset
    24
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    25
package org.graalvm.compiler.lir.amd64.vector;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    26
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    27
import static jdk.vm.ci.code.ValueUtil.asRegister;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    28
import static jdk.vm.ci.code.ValueUtil.isRegister;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    29
import static org.graalvm.compiler.lir.LIRInstruction.OperandFlag.COMPOSITE;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    30
import static org.graalvm.compiler.lir.LIRInstruction.OperandFlag.CONST;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    31
import static org.graalvm.compiler.lir.LIRInstruction.OperandFlag.REG;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    32
import static org.graalvm.compiler.lir.LIRInstruction.OperandFlag.STACK;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    33
import static org.graalvm.compiler.lir.LIRValueUtil.asConstant;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    34
import static org.graalvm.compiler.lir.LIRValueUtil.isConstantValue;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    35
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
    36
import org.graalvm.compiler.asm.amd64.AMD64Address;
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
    37
import org.graalvm.compiler.asm.amd64.AMD64Assembler.VexRMOp;
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
    38
import org.graalvm.compiler.asm.amd64.AMD64Assembler.VexRVMOp;
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
    39
import org.graalvm.compiler.asm.amd64.AMD64MacroAssembler;
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
    40
import org.graalvm.compiler.asm.amd64.AVXKind;
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
    41
import org.graalvm.compiler.lir.LIRFrameState;
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
    42
import org.graalvm.compiler.lir.LIRInstructionClass;
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
    43
import org.graalvm.compiler.lir.Opcode;
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
    44
import org.graalvm.compiler.lir.amd64.AMD64AddressValue;
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
    45
import org.graalvm.compiler.lir.amd64.AMD64LIRInstruction;
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
    46
import org.graalvm.compiler.lir.asm.CompilationResultBuilder;
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
    47
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
    48
import jdk.vm.ci.meta.AllocatableValue;
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
    49
import jdk.vm.ci.meta.Value;
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
    50
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    51
public class AMD64VectorUnary {
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    52
59095
03fbcd06b4c0 8233841: Update Graal
dlong
parents: 51436
diff changeset
    53
    public static final class AVXUnaryOp extends AMD64VectorInstruction {
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    54
        public static final LIRInstructionClass<AVXUnaryOp> TYPE = LIRInstructionClass.create(AVXUnaryOp.class);
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    55
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
    56
        @Opcode private final VexRMOp opcode;
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    57
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    58
        @Def({REG}) protected AllocatableValue result;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    59
        @Use({REG, STACK}) protected AllocatableValue input;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    60
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
    61
        public AVXUnaryOp(VexRMOp opcode, AVXKind.AVXSize size, AllocatableValue result, AllocatableValue input) {
59095
03fbcd06b4c0 8233841: Update Graal
dlong
parents: 51436
diff changeset
    62
            super(TYPE, size);
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    63
            this.opcode = opcode;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    64
            this.result = result;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    65
            this.input = input;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    66
        }
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    67
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    68
        @Override
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
    69
        public void emitCode(CompilationResultBuilder crb, AMD64MacroAssembler masm) {
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    70
            if (isRegister(input)) {
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
    71
                opcode.emit(masm, size, asRegister(result), asRegister(input));
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    72
            } else {
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
    73
                opcode.emit(masm, size, asRegister(result), (AMD64Address) crb.asAddress(input));
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    74
            }
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    75
        }
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    76
    }
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    77
59095
03fbcd06b4c0 8233841: Update Graal
dlong
parents: 51436
diff changeset
    78
    public static final class AVXUnaryMemoryOp extends AMD64VectorInstruction {
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    79
        public static final LIRInstructionClass<AVXUnaryMemoryOp> TYPE = LIRInstructionClass.create(AVXUnaryMemoryOp.class);
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    80
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
    81
        @Opcode private final VexRMOp opcode;
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    82
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    83
        @Def({REG}) protected AllocatableValue result;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    84
        @Use({COMPOSITE}) protected AMD64AddressValue input;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    85
        @State protected LIRFrameState state;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    86
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
    87
        public AVXUnaryMemoryOp(VexRMOp opcode, AVXKind.AVXSize size, AllocatableValue result, AMD64AddressValue input, LIRFrameState state) {
59095
03fbcd06b4c0 8233841: Update Graal
dlong
parents: 51436
diff changeset
    88
            super(TYPE, size);
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    89
            this.opcode = opcode;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    90
            this.result = result;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    91
            this.input = input;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    92
            this.state = state;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    93
        }
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    94
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    95
        @Override
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
    96
        public void emitCode(CompilationResultBuilder crb, AMD64MacroAssembler masm) {
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    97
            if (state != null) {
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
    98
                crb.recordImplicitException(masm.position(), state);
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
    99
            }
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
   100
            opcode.emit(masm, size, asRegister(result), input.toAddress());
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   101
        }
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   102
    }
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   103
59095
03fbcd06b4c0 8233841: Update Graal
dlong
parents: 51436
diff changeset
   104
    public static final class AVXBroadcastOp extends AMD64VectorInstruction {
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   105
        public static final LIRInstructionClass<AVXBroadcastOp> TYPE = LIRInstructionClass.create(AVXBroadcastOp.class);
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   106
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
   107
        @Opcode private final VexRMOp opcode;
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   108
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   109
        @Def({REG}) protected AllocatableValue result;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   110
        @Use({REG, STACK, CONST}) protected Value input;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   111
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
   112
        public AVXBroadcastOp(VexRMOp opcode, AVXKind.AVXSize size, AllocatableValue result, Value input) {
59095
03fbcd06b4c0 8233841: Update Graal
dlong
parents: 51436
diff changeset
   113
            super(TYPE, size);
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   114
            this.opcode = opcode;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   115
            this.result = result;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   116
            this.input = input;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   117
        }
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   118
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   119
        @Override
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
   120
        public void emitCode(CompilationResultBuilder crb, AMD64MacroAssembler masm) {
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   121
            if (isRegister(input)) {
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
   122
                opcode.emit(masm, size, asRegister(result), asRegister(input));
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   123
            } else if (isConstantValue(input)) {
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   124
                int align = input.getPlatformKind().getSizeInBytes();
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   125
                AMD64Address address = (AMD64Address) crb.recordDataReferenceInCode(asConstant(input), align);
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
   126
                opcode.emit(masm, size, asRegister(result), address);
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   127
            } else {
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
   128
                opcode.emit(masm, size, asRegister(result), (AMD64Address) crb.asAddress(input));
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   129
            }
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   130
        }
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   131
    }
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   132
59095
03fbcd06b4c0 8233841: Update Graal
dlong
parents: 51436
diff changeset
   133
    public static final class AVXConvertMemoryOp extends AMD64VectorInstruction {
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   134
        public static final LIRInstructionClass<AVXConvertMemoryOp> TYPE = LIRInstructionClass.create(AVXConvertMemoryOp.class);
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   135
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
   136
        @Opcode private final VexRVMOp opcode;
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   137
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   138
        @Def({REG}) protected AllocatableValue result;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   139
        @Use({COMPOSITE}) protected AMD64AddressValue input;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   140
        @State protected LIRFrameState state;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   141
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
   142
        public AVXConvertMemoryOp(VexRVMOp opcode, AVXKind.AVXSize size, AllocatableValue result, AMD64AddressValue input, LIRFrameState state) {
59095
03fbcd06b4c0 8233841: Update Graal
dlong
parents: 51436
diff changeset
   143
            super(TYPE, size);
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   144
            this.opcode = opcode;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   145
            this.result = result;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   146
            this.input = input;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   147
            this.state = state;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   148
        }
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   149
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   150
        @Override
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
   151
        public void emitCode(CompilationResultBuilder crb, AMD64MacroAssembler masm) {
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   152
            if (state != null) {
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
   153
                crb.recordImplicitException(masm.position(), state);
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   154
            }
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
   155
            opcode.emit(masm, size, asRegister(result), asRegister(result), input.toAddress());
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   156
        }
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   157
    }
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   158
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
   159
    public static final class AVXConvertOp extends AMD64LIRInstruction {
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   160
        public static final LIRInstructionClass<AVXConvertOp> TYPE = LIRInstructionClass.create(AVXConvertOp.class);
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   161
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
   162
        @Opcode private final VexRVMOp opcode;
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   163
        @Def({REG}) protected AllocatableValue result;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   164
        @Use({REG, STACK}) protected AllocatableValue input;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   165
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
   166
        public AVXConvertOp(VexRVMOp opcode, AllocatableValue result, AllocatableValue input) {
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   167
            super(TYPE);
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   168
            this.opcode = opcode;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   169
            this.result = result;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   170
            this.input = input;
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   171
        }
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   172
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   173
        @Override
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
   174
        public void emitCode(CompilationResultBuilder crb, AMD64MacroAssembler masm) {
59095
03fbcd06b4c0 8233841: Update Graal
dlong
parents: 51436
diff changeset
   175
            // Note that we assume only XMM-size instructions are emitted here. Loosening this
03fbcd06b4c0 8233841: Update Graal
dlong
parents: 51436
diff changeset
   176
            // restriction would require informing AMD64HotSpotReturnOp when emitting vzeroupper.
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   177
            if (isRegister(input)) {
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   178
                if (!asRegister(input).equals(asRegister(result))) {
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   179
                    // clear result register to avoid unnecessary dependency
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
   180
                    VexRVMOp.VXORPD.emit(masm, AVXKind.AVXSize.XMM, asRegister(result), asRegister(result), asRegister(result));
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   181
                }
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
   182
                opcode.emit(masm, AVXKind.AVXSize.XMM, asRegister(result), asRegister(result), asRegister(input));
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   183
            } else {
51436
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
   184
                VexRVMOp.VXORPD.emit(masm, AVXKind.AVXSize.XMM, asRegister(result), asRegister(result), asRegister(result));
091c0d22e735 8206992: Update Graal
iveresov
parents: 50858
diff changeset
   185
                opcode.emit(masm, AVXKind.AVXSize.XMM, asRegister(result), asRegister(result), (AMD64Address) crb.asAddress(input));
50609
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   186
            }
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   187
        }
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   188
    }
bf414874c28f 8204231: Update Graal
dlong
parents:
diff changeset
   189
}