author | aefimov |
Mon, 17 Nov 2014 14:11:08 +0300 | |
changeset 27726 | 34021e900889 |
parent 25715 | d5a8dbdc5150 |
child 30211 | 442fbbb31f75 |
permissions | -rw-r--r-- |
11429 | 1 |
// |
25715
d5a8dbdc5150
8049325: Introduce and clean up umbrella headers for the files in the cpu subdirectories.
goetz
parents:
23498
diff
changeset
|
2 |
// Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. |
11429 | 3 |
// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
// |
|
5 |
// This code is free software; you can redistribute it and/or modify it |
|
6 |
// under the terms of the GNU General Public License version 2 only, as |
|
7 |
// published by the Free Software Foundation. |
|
8 |
// |
|
9 |
// This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
// version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
// accompanied this code). |
|
14 |
// |
|
15 |
// You should have received a copy of the GNU General Public License version |
|
16 |
// 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
// Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
// |
|
19 |
// Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
20 |
// or visit www.oracle.com if you need additional information or have any |
|
21 |
// questions. |
|
22 |
// |
|
23 |
// |
|
24 |
||
25 |
// X86 Common Architecture Description File |
|
26 |
||
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
27 |
//----------REGISTER DEFINITION BLOCK------------------------------------------ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
28 |
// This information is used by the matcher and the register allocator to |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
29 |
// describe individual registers and classes of registers within the target |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
30 |
// archtecture. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
31 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
32 |
register %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
33 |
//----------Architecture Description Register Definitions---------------------- |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
34 |
// General Registers |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
35 |
// "reg_def" name ( register save type, C convention save type, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
36 |
// ideal register type, encoding ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
37 |
// Register Save Types: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
38 |
// |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
39 |
// NS = No-Save: The register allocator assumes that these registers |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
40 |
// can be used without saving upon entry to the method, & |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
41 |
// that they do not need to be saved at call sites. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
42 |
// |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
43 |
// SOC = Save-On-Call: The register allocator assumes that these registers |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
44 |
// can be used without saving upon entry to the method, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
45 |
// but that they must be saved at call sites. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
46 |
// |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
47 |
// SOE = Save-On-Entry: The register allocator assumes that these registers |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
48 |
// must be saved before using them upon entry to the |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
49 |
// method, but they do not need to be saved at call |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
50 |
// sites. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
51 |
// |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
52 |
// AS = Always-Save: The register allocator assumes that these registers |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
53 |
// must be saved before using them upon entry to the |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
54 |
// method, & that they must be saved at call sites. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
55 |
// |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
56 |
// Ideal Register Type is used to determine how to save & restore a |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
57 |
// register. Op_RegI will get spilled with LoadI/StoreI, Op_RegP will get |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
58 |
// spilled with LoadP/StoreP. If the register supports both, use Op_RegI. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
59 |
// |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
60 |
// The encoding number is the actual bit-pattern placed into the opcodes. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
61 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
62 |
// XMM registers. 256-bit registers or 8 words each, labeled (a)-h. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
63 |
// Word a in each register holds a Float, words ab hold a Double. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
64 |
// The whole registers are used in SSE4.2 version intrinsics, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
65 |
// array copy stubs and superword operations (see UseSSE42Intrinsics, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
66 |
// UseXMMForArrayCopy and UseSuperword flags). |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
67 |
// XMM8-XMM15 must be encoded with REX (VEX for UseAVX). |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
68 |
// Linux ABI: No register preserved across function calls |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
69 |
// XMM0-XMM7 might hold parameters |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
70 |
// Windows ABI: XMM6-XMM15 preserved across function calls |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
71 |
// XMM0-XMM3 might hold parameters |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
72 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
73 |
reg_def XMM0 ( SOC, SOC, Op_RegF, 0, xmm0->as_VMReg()); |
13294 | 74 |
reg_def XMM0b( SOC, SOC, Op_RegF, 0, xmm0->as_VMReg()->next(1)); |
75 |
reg_def XMM0c( SOC, SOC, Op_RegF, 0, xmm0->as_VMReg()->next(2)); |
|
76 |
reg_def XMM0d( SOC, SOC, Op_RegF, 0, xmm0->as_VMReg()->next(3)); |
|
77 |
reg_def XMM0e( SOC, SOC, Op_RegF, 0, xmm0->as_VMReg()->next(4)); |
|
78 |
reg_def XMM0f( SOC, SOC, Op_RegF, 0, xmm0->as_VMReg()->next(5)); |
|
79 |
reg_def XMM0g( SOC, SOC, Op_RegF, 0, xmm0->as_VMReg()->next(6)); |
|
80 |
reg_def XMM0h( SOC, SOC, Op_RegF, 0, xmm0->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
81 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
82 |
reg_def XMM1 ( SOC, SOC, Op_RegF, 1, xmm1->as_VMReg()); |
13294 | 83 |
reg_def XMM1b( SOC, SOC, Op_RegF, 1, xmm1->as_VMReg()->next(1)); |
84 |
reg_def XMM1c( SOC, SOC, Op_RegF, 1, xmm1->as_VMReg()->next(2)); |
|
85 |
reg_def XMM1d( SOC, SOC, Op_RegF, 1, xmm1->as_VMReg()->next(3)); |
|
86 |
reg_def XMM1e( SOC, SOC, Op_RegF, 1, xmm1->as_VMReg()->next(4)); |
|
87 |
reg_def XMM1f( SOC, SOC, Op_RegF, 1, xmm1->as_VMReg()->next(5)); |
|
88 |
reg_def XMM1g( SOC, SOC, Op_RegF, 1, xmm1->as_VMReg()->next(6)); |
|
89 |
reg_def XMM1h( SOC, SOC, Op_RegF, 1, xmm1->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
90 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
91 |
reg_def XMM2 ( SOC, SOC, Op_RegF, 2, xmm2->as_VMReg()); |
13294 | 92 |
reg_def XMM2b( SOC, SOC, Op_RegF, 2, xmm2->as_VMReg()->next(1)); |
93 |
reg_def XMM2c( SOC, SOC, Op_RegF, 2, xmm2->as_VMReg()->next(2)); |
|
94 |
reg_def XMM2d( SOC, SOC, Op_RegF, 2, xmm2->as_VMReg()->next(3)); |
|
95 |
reg_def XMM2e( SOC, SOC, Op_RegF, 2, xmm2->as_VMReg()->next(4)); |
|
96 |
reg_def XMM2f( SOC, SOC, Op_RegF, 2, xmm2->as_VMReg()->next(5)); |
|
97 |
reg_def XMM2g( SOC, SOC, Op_RegF, 2, xmm2->as_VMReg()->next(6)); |
|
98 |
reg_def XMM2h( SOC, SOC, Op_RegF, 2, xmm2->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
99 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
100 |
reg_def XMM3 ( SOC, SOC, Op_RegF, 3, xmm3->as_VMReg()); |
13294 | 101 |
reg_def XMM3b( SOC, SOC, Op_RegF, 3, xmm3->as_VMReg()->next(1)); |
102 |
reg_def XMM3c( SOC, SOC, Op_RegF, 3, xmm3->as_VMReg()->next(2)); |
|
103 |
reg_def XMM3d( SOC, SOC, Op_RegF, 3, xmm3->as_VMReg()->next(3)); |
|
104 |
reg_def XMM3e( SOC, SOC, Op_RegF, 3, xmm3->as_VMReg()->next(4)); |
|
105 |
reg_def XMM3f( SOC, SOC, Op_RegF, 3, xmm3->as_VMReg()->next(5)); |
|
106 |
reg_def XMM3g( SOC, SOC, Op_RegF, 3, xmm3->as_VMReg()->next(6)); |
|
107 |
reg_def XMM3h( SOC, SOC, Op_RegF, 3, xmm3->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
108 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
109 |
reg_def XMM4 ( SOC, SOC, Op_RegF, 4, xmm4->as_VMReg()); |
13294 | 110 |
reg_def XMM4b( SOC, SOC, Op_RegF, 4, xmm4->as_VMReg()->next(1)); |
111 |
reg_def XMM4c( SOC, SOC, Op_RegF, 4, xmm4->as_VMReg()->next(2)); |
|
112 |
reg_def XMM4d( SOC, SOC, Op_RegF, 4, xmm4->as_VMReg()->next(3)); |
|
113 |
reg_def XMM4e( SOC, SOC, Op_RegF, 4, xmm4->as_VMReg()->next(4)); |
|
114 |
reg_def XMM4f( SOC, SOC, Op_RegF, 4, xmm4->as_VMReg()->next(5)); |
|
115 |
reg_def XMM4g( SOC, SOC, Op_RegF, 4, xmm4->as_VMReg()->next(6)); |
|
116 |
reg_def XMM4h( SOC, SOC, Op_RegF, 4, xmm4->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
117 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
118 |
reg_def XMM5 ( SOC, SOC, Op_RegF, 5, xmm5->as_VMReg()); |
13294 | 119 |
reg_def XMM5b( SOC, SOC, Op_RegF, 5, xmm5->as_VMReg()->next(1)); |
120 |
reg_def XMM5c( SOC, SOC, Op_RegF, 5, xmm5->as_VMReg()->next(2)); |
|
121 |
reg_def XMM5d( SOC, SOC, Op_RegF, 5, xmm5->as_VMReg()->next(3)); |
|
122 |
reg_def XMM5e( SOC, SOC, Op_RegF, 5, xmm5->as_VMReg()->next(4)); |
|
123 |
reg_def XMM5f( SOC, SOC, Op_RegF, 5, xmm5->as_VMReg()->next(5)); |
|
124 |
reg_def XMM5g( SOC, SOC, Op_RegF, 5, xmm5->as_VMReg()->next(6)); |
|
125 |
reg_def XMM5h( SOC, SOC, Op_RegF, 5, xmm5->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
126 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
127 |
#ifdef _WIN64 |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
128 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
129 |
reg_def XMM6 ( SOC, SOE, Op_RegF, 6, xmm6->as_VMReg()); |
13294 | 130 |
reg_def XMM6b( SOC, SOE, Op_RegF, 6, xmm6->as_VMReg()->next(1)); |
131 |
reg_def XMM6c( SOC, SOE, Op_RegF, 6, xmm6->as_VMReg()->next(2)); |
|
132 |
reg_def XMM6d( SOC, SOE, Op_RegF, 6, xmm6->as_VMReg()->next(3)); |
|
133 |
reg_def XMM6e( SOC, SOE, Op_RegF, 6, xmm6->as_VMReg()->next(4)); |
|
134 |
reg_def XMM6f( SOC, SOE, Op_RegF, 6, xmm6->as_VMReg()->next(5)); |
|
135 |
reg_def XMM6g( SOC, SOE, Op_RegF, 6, xmm6->as_VMReg()->next(6)); |
|
136 |
reg_def XMM6h( SOC, SOE, Op_RegF, 6, xmm6->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
137 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
138 |
reg_def XMM7 ( SOC, SOE, Op_RegF, 7, xmm7->as_VMReg()); |
13294 | 139 |
reg_def XMM7b( SOC, SOE, Op_RegF, 7, xmm7->as_VMReg()->next(1)); |
140 |
reg_def XMM7c( SOC, SOE, Op_RegF, 7, xmm7->as_VMReg()->next(2)); |
|
141 |
reg_def XMM7d( SOC, SOE, Op_RegF, 7, xmm7->as_VMReg()->next(3)); |
|
142 |
reg_def XMM7e( SOC, SOE, Op_RegF, 7, xmm7->as_VMReg()->next(4)); |
|
143 |
reg_def XMM7f( SOC, SOE, Op_RegF, 7, xmm7->as_VMReg()->next(5)); |
|
144 |
reg_def XMM7g( SOC, SOE, Op_RegF, 7, xmm7->as_VMReg()->next(6)); |
|
145 |
reg_def XMM7h( SOC, SOE, Op_RegF, 7, xmm7->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
146 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
147 |
reg_def XMM8 ( SOC, SOE, Op_RegF, 8, xmm8->as_VMReg()); |
13294 | 148 |
reg_def XMM8b( SOC, SOE, Op_RegF, 8, xmm8->as_VMReg()->next(1)); |
149 |
reg_def XMM8c( SOC, SOE, Op_RegF, 8, xmm8->as_VMReg()->next(2)); |
|
150 |
reg_def XMM8d( SOC, SOE, Op_RegF, 8, xmm8->as_VMReg()->next(3)); |
|
151 |
reg_def XMM8e( SOC, SOE, Op_RegF, 8, xmm8->as_VMReg()->next(4)); |
|
152 |
reg_def XMM8f( SOC, SOE, Op_RegF, 8, xmm8->as_VMReg()->next(5)); |
|
153 |
reg_def XMM8g( SOC, SOE, Op_RegF, 8, xmm8->as_VMReg()->next(6)); |
|
154 |
reg_def XMM8h( SOC, SOE, Op_RegF, 8, xmm8->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
155 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
156 |
reg_def XMM9 ( SOC, SOE, Op_RegF, 9, xmm9->as_VMReg()); |
13294 | 157 |
reg_def XMM9b( SOC, SOE, Op_RegF, 9, xmm9->as_VMReg()->next(1)); |
158 |
reg_def XMM9c( SOC, SOE, Op_RegF, 9, xmm9->as_VMReg()->next(2)); |
|
159 |
reg_def XMM9d( SOC, SOE, Op_RegF, 9, xmm9->as_VMReg()->next(3)); |
|
160 |
reg_def XMM9e( SOC, SOE, Op_RegF, 9, xmm9->as_VMReg()->next(4)); |
|
161 |
reg_def XMM9f( SOC, SOE, Op_RegF, 9, xmm9->as_VMReg()->next(5)); |
|
162 |
reg_def XMM9g( SOC, SOE, Op_RegF, 9, xmm9->as_VMReg()->next(6)); |
|
163 |
reg_def XMM9h( SOC, SOE, Op_RegF, 9, xmm9->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
164 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
165 |
reg_def XMM10 ( SOC, SOE, Op_RegF, 10, xmm10->as_VMReg()); |
13294 | 166 |
reg_def XMM10b( SOC, SOE, Op_RegF, 10, xmm10->as_VMReg()->next(1)); |
167 |
reg_def XMM10c( SOC, SOE, Op_RegF, 10, xmm10->as_VMReg()->next(2)); |
|
168 |
reg_def XMM10d( SOC, SOE, Op_RegF, 10, xmm10->as_VMReg()->next(3)); |
|
169 |
reg_def XMM10e( SOC, SOE, Op_RegF, 10, xmm10->as_VMReg()->next(4)); |
|
170 |
reg_def XMM10f( SOC, SOE, Op_RegF, 10, xmm10->as_VMReg()->next(5)); |
|
171 |
reg_def XMM10g( SOC, SOE, Op_RegF, 10, xmm10->as_VMReg()->next(6)); |
|
172 |
reg_def XMM10h( SOC, SOE, Op_RegF, 10, xmm10->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
173 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
174 |
reg_def XMM11 ( SOC, SOE, Op_RegF, 11, xmm11->as_VMReg()); |
13294 | 175 |
reg_def XMM11b( SOC, SOE, Op_RegF, 11, xmm11->as_VMReg()->next(1)); |
176 |
reg_def XMM11c( SOC, SOE, Op_RegF, 11, xmm11->as_VMReg()->next(2)); |
|
177 |
reg_def XMM11d( SOC, SOE, Op_RegF, 11, xmm11->as_VMReg()->next(3)); |
|
178 |
reg_def XMM11e( SOC, SOE, Op_RegF, 11, xmm11->as_VMReg()->next(4)); |
|
179 |
reg_def XMM11f( SOC, SOE, Op_RegF, 11, xmm11->as_VMReg()->next(5)); |
|
180 |
reg_def XMM11g( SOC, SOE, Op_RegF, 11, xmm11->as_VMReg()->next(6)); |
|
181 |
reg_def XMM11h( SOC, SOE, Op_RegF, 11, xmm11->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
182 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
183 |
reg_def XMM12 ( SOC, SOE, Op_RegF, 12, xmm12->as_VMReg()); |
13294 | 184 |
reg_def XMM12b( SOC, SOE, Op_RegF, 12, xmm12->as_VMReg()->next(1)); |
185 |
reg_def XMM12c( SOC, SOE, Op_RegF, 12, xmm12->as_VMReg()->next(2)); |
|
186 |
reg_def XMM12d( SOC, SOE, Op_RegF, 12, xmm12->as_VMReg()->next(3)); |
|
187 |
reg_def XMM12e( SOC, SOE, Op_RegF, 12, xmm12->as_VMReg()->next(4)); |
|
188 |
reg_def XMM12f( SOC, SOE, Op_RegF, 12, xmm12->as_VMReg()->next(5)); |
|
189 |
reg_def XMM12g( SOC, SOE, Op_RegF, 12, xmm12->as_VMReg()->next(6)); |
|
190 |
reg_def XMM12h( SOC, SOE, Op_RegF, 12, xmm12->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
191 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
192 |
reg_def XMM13 ( SOC, SOE, Op_RegF, 13, xmm13->as_VMReg()); |
13294 | 193 |
reg_def XMM13b( SOC, SOE, Op_RegF, 13, xmm13->as_VMReg()->next(1)); |
194 |
reg_def XMM13c( SOC, SOE, Op_RegF, 13, xmm13->as_VMReg()->next(2)); |
|
195 |
reg_def XMM13d( SOC, SOE, Op_RegF, 13, xmm13->as_VMReg()->next(3)); |
|
196 |
reg_def XMM13e( SOC, SOE, Op_RegF, 13, xmm13->as_VMReg()->next(4)); |
|
197 |
reg_def XMM13f( SOC, SOE, Op_RegF, 13, xmm13->as_VMReg()->next(5)); |
|
198 |
reg_def XMM13g( SOC, SOE, Op_RegF, 13, xmm13->as_VMReg()->next(6)); |
|
199 |
reg_def XMM13h( SOC, SOE, Op_RegF, 13, xmm13->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
200 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
201 |
reg_def XMM14 ( SOC, SOE, Op_RegF, 14, xmm14->as_VMReg()); |
13294 | 202 |
reg_def XMM14b( SOC, SOE, Op_RegF, 14, xmm14->as_VMReg()->next(1)); |
203 |
reg_def XMM14c( SOC, SOE, Op_RegF, 14, xmm14->as_VMReg()->next(2)); |
|
204 |
reg_def XMM14d( SOC, SOE, Op_RegF, 14, xmm14->as_VMReg()->next(3)); |
|
205 |
reg_def XMM14e( SOC, SOE, Op_RegF, 14, xmm14->as_VMReg()->next(4)); |
|
206 |
reg_def XMM14f( SOC, SOE, Op_RegF, 14, xmm14->as_VMReg()->next(5)); |
|
207 |
reg_def XMM14g( SOC, SOE, Op_RegF, 14, xmm14->as_VMReg()->next(6)); |
|
208 |
reg_def XMM14h( SOC, SOE, Op_RegF, 14, xmm14->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
209 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
210 |
reg_def XMM15 ( SOC, SOE, Op_RegF, 15, xmm15->as_VMReg()); |
13294 | 211 |
reg_def XMM15b( SOC, SOE, Op_RegF, 15, xmm15->as_VMReg()->next(1)); |
212 |
reg_def XMM15c( SOC, SOE, Op_RegF, 15, xmm15->as_VMReg()->next(2)); |
|
213 |
reg_def XMM15d( SOC, SOE, Op_RegF, 15, xmm15->as_VMReg()->next(3)); |
|
214 |
reg_def XMM15e( SOC, SOE, Op_RegF, 15, xmm15->as_VMReg()->next(4)); |
|
215 |
reg_def XMM15f( SOC, SOE, Op_RegF, 15, xmm15->as_VMReg()->next(5)); |
|
216 |
reg_def XMM15g( SOC, SOE, Op_RegF, 15, xmm15->as_VMReg()->next(6)); |
|
217 |
reg_def XMM15h( SOC, SOE, Op_RegF, 15, xmm15->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
218 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
219 |
#else // _WIN64 |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
220 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
221 |
reg_def XMM6 ( SOC, SOC, Op_RegF, 6, xmm6->as_VMReg()); |
13294 | 222 |
reg_def XMM6b( SOC, SOC, Op_RegF, 6, xmm6->as_VMReg()->next(1)); |
223 |
reg_def XMM6c( SOC, SOC, Op_RegF, 6, xmm6->as_VMReg()->next(2)); |
|
224 |
reg_def XMM6d( SOC, SOC, Op_RegF, 6, xmm6->as_VMReg()->next(3)); |
|
225 |
reg_def XMM6e( SOC, SOC, Op_RegF, 6, xmm6->as_VMReg()->next(4)); |
|
226 |
reg_def XMM6f( SOC, SOC, Op_RegF, 6, xmm6->as_VMReg()->next(5)); |
|
227 |
reg_def XMM6g( SOC, SOC, Op_RegF, 6, xmm6->as_VMReg()->next(6)); |
|
228 |
reg_def XMM6h( SOC, SOC, Op_RegF, 6, xmm6->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
229 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
230 |
reg_def XMM7 ( SOC, SOC, Op_RegF, 7, xmm7->as_VMReg()); |
13294 | 231 |
reg_def XMM7b( SOC, SOC, Op_RegF, 7, xmm7->as_VMReg()->next(1)); |
232 |
reg_def XMM7c( SOC, SOC, Op_RegF, 7, xmm7->as_VMReg()->next(2)); |
|
233 |
reg_def XMM7d( SOC, SOC, Op_RegF, 7, xmm7->as_VMReg()->next(3)); |
|
234 |
reg_def XMM7e( SOC, SOC, Op_RegF, 7, xmm7->as_VMReg()->next(4)); |
|
235 |
reg_def XMM7f( SOC, SOC, Op_RegF, 7, xmm7->as_VMReg()->next(5)); |
|
236 |
reg_def XMM7g( SOC, SOC, Op_RegF, 7, xmm7->as_VMReg()->next(6)); |
|
237 |
reg_def XMM7h( SOC, SOC, Op_RegF, 7, xmm7->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
238 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
239 |
#ifdef _LP64 |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
240 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
241 |
reg_def XMM8 ( SOC, SOC, Op_RegF, 8, xmm8->as_VMReg()); |
13294 | 242 |
reg_def XMM8b( SOC, SOC, Op_RegF, 8, xmm8->as_VMReg()->next(1)); |
243 |
reg_def XMM8c( SOC, SOC, Op_RegF, 8, xmm8->as_VMReg()->next(2)); |
|
244 |
reg_def XMM8d( SOC, SOC, Op_RegF, 8, xmm8->as_VMReg()->next(3)); |
|
245 |
reg_def XMM8e( SOC, SOC, Op_RegF, 8, xmm8->as_VMReg()->next(4)); |
|
246 |
reg_def XMM8f( SOC, SOC, Op_RegF, 8, xmm8->as_VMReg()->next(5)); |
|
247 |
reg_def XMM8g( SOC, SOC, Op_RegF, 8, xmm8->as_VMReg()->next(6)); |
|
248 |
reg_def XMM8h( SOC, SOC, Op_RegF, 8, xmm8->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
249 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
250 |
reg_def XMM9 ( SOC, SOC, Op_RegF, 9, xmm9->as_VMReg()); |
13294 | 251 |
reg_def XMM9b( SOC, SOC, Op_RegF, 9, xmm9->as_VMReg()->next(1)); |
252 |
reg_def XMM9c( SOC, SOC, Op_RegF, 9, xmm9->as_VMReg()->next(2)); |
|
253 |
reg_def XMM9d( SOC, SOC, Op_RegF, 9, xmm9->as_VMReg()->next(3)); |
|
254 |
reg_def XMM9e( SOC, SOC, Op_RegF, 9, xmm9->as_VMReg()->next(4)); |
|
255 |
reg_def XMM9f( SOC, SOC, Op_RegF, 9, xmm9->as_VMReg()->next(5)); |
|
256 |
reg_def XMM9g( SOC, SOC, Op_RegF, 9, xmm9->as_VMReg()->next(6)); |
|
257 |
reg_def XMM9h( SOC, SOC, Op_RegF, 9, xmm9->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
258 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
259 |
reg_def XMM10 ( SOC, SOC, Op_RegF, 10, xmm10->as_VMReg()); |
13294 | 260 |
reg_def XMM10b( SOC, SOC, Op_RegF, 10, xmm10->as_VMReg()->next(1)); |
261 |
reg_def XMM10c( SOC, SOC, Op_RegF, 10, xmm10->as_VMReg()->next(2)); |
|
262 |
reg_def XMM10d( SOC, SOC, Op_RegF, 10, xmm10->as_VMReg()->next(3)); |
|
263 |
reg_def XMM10e( SOC, SOC, Op_RegF, 10, xmm10->as_VMReg()->next(4)); |
|
264 |
reg_def XMM10f( SOC, SOC, Op_RegF, 10, xmm10->as_VMReg()->next(5)); |
|
265 |
reg_def XMM10g( SOC, SOC, Op_RegF, 10, xmm10->as_VMReg()->next(6)); |
|
266 |
reg_def XMM10h( SOC, SOC, Op_RegF, 10, xmm10->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
267 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
268 |
reg_def XMM11 ( SOC, SOC, Op_RegF, 11, xmm11->as_VMReg()); |
13294 | 269 |
reg_def XMM11b( SOC, SOC, Op_RegF, 11, xmm11->as_VMReg()->next(1)); |
270 |
reg_def XMM11c( SOC, SOC, Op_RegF, 11, xmm11->as_VMReg()->next(2)); |
|
271 |
reg_def XMM11d( SOC, SOC, Op_RegF, 11, xmm11->as_VMReg()->next(3)); |
|
272 |
reg_def XMM11e( SOC, SOC, Op_RegF, 11, xmm11->as_VMReg()->next(4)); |
|
273 |
reg_def XMM11f( SOC, SOC, Op_RegF, 11, xmm11->as_VMReg()->next(5)); |
|
274 |
reg_def XMM11g( SOC, SOC, Op_RegF, 11, xmm11->as_VMReg()->next(6)); |
|
275 |
reg_def XMM11h( SOC, SOC, Op_RegF, 11, xmm11->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
276 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
277 |
reg_def XMM12 ( SOC, SOC, Op_RegF, 12, xmm12->as_VMReg()); |
13294 | 278 |
reg_def XMM12b( SOC, SOC, Op_RegF, 12, xmm12->as_VMReg()->next(1)); |
279 |
reg_def XMM12c( SOC, SOC, Op_RegF, 12, xmm12->as_VMReg()->next(2)); |
|
280 |
reg_def XMM12d( SOC, SOC, Op_RegF, 12, xmm12->as_VMReg()->next(3)); |
|
281 |
reg_def XMM12e( SOC, SOC, Op_RegF, 12, xmm12->as_VMReg()->next(4)); |
|
282 |
reg_def XMM12f( SOC, SOC, Op_RegF, 12, xmm12->as_VMReg()->next(5)); |
|
283 |
reg_def XMM12g( SOC, SOC, Op_RegF, 12, xmm12->as_VMReg()->next(6)); |
|
284 |
reg_def XMM12h( SOC, SOC, Op_RegF, 12, xmm12->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
285 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
286 |
reg_def XMM13 ( SOC, SOC, Op_RegF, 13, xmm13->as_VMReg()); |
13294 | 287 |
reg_def XMM13b( SOC, SOC, Op_RegF, 13, xmm13->as_VMReg()->next(1)); |
288 |
reg_def XMM13c( SOC, SOC, Op_RegF, 13, xmm13->as_VMReg()->next(2)); |
|
289 |
reg_def XMM13d( SOC, SOC, Op_RegF, 13, xmm13->as_VMReg()->next(3)); |
|
290 |
reg_def XMM13e( SOC, SOC, Op_RegF, 13, xmm13->as_VMReg()->next(4)); |
|
291 |
reg_def XMM13f( SOC, SOC, Op_RegF, 13, xmm13->as_VMReg()->next(5)); |
|
292 |
reg_def XMM13g( SOC, SOC, Op_RegF, 13, xmm13->as_VMReg()->next(6)); |
|
293 |
reg_def XMM13h( SOC, SOC, Op_RegF, 13, xmm13->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
294 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
295 |
reg_def XMM14 ( SOC, SOC, Op_RegF, 14, xmm14->as_VMReg()); |
13294 | 296 |
reg_def XMM14b( SOC, SOC, Op_RegF, 14, xmm14->as_VMReg()->next(1)); |
297 |
reg_def XMM14c( SOC, SOC, Op_RegF, 14, xmm14->as_VMReg()->next(2)); |
|
298 |
reg_def XMM14d( SOC, SOC, Op_RegF, 14, xmm14->as_VMReg()->next(3)); |
|
299 |
reg_def XMM14e( SOC, SOC, Op_RegF, 14, xmm14->as_VMReg()->next(4)); |
|
300 |
reg_def XMM14f( SOC, SOC, Op_RegF, 14, xmm14->as_VMReg()->next(5)); |
|
301 |
reg_def XMM14g( SOC, SOC, Op_RegF, 14, xmm14->as_VMReg()->next(6)); |
|
302 |
reg_def XMM14h( SOC, SOC, Op_RegF, 14, xmm14->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
303 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
304 |
reg_def XMM15 ( SOC, SOC, Op_RegF, 15, xmm15->as_VMReg()); |
13294 | 305 |
reg_def XMM15b( SOC, SOC, Op_RegF, 15, xmm15->as_VMReg()->next(1)); |
306 |
reg_def XMM15c( SOC, SOC, Op_RegF, 15, xmm15->as_VMReg()->next(2)); |
|
307 |
reg_def XMM15d( SOC, SOC, Op_RegF, 15, xmm15->as_VMReg()->next(3)); |
|
308 |
reg_def XMM15e( SOC, SOC, Op_RegF, 15, xmm15->as_VMReg()->next(4)); |
|
309 |
reg_def XMM15f( SOC, SOC, Op_RegF, 15, xmm15->as_VMReg()->next(5)); |
|
310 |
reg_def XMM15g( SOC, SOC, Op_RegF, 15, xmm15->as_VMReg()->next(6)); |
|
311 |
reg_def XMM15h( SOC, SOC, Op_RegF, 15, xmm15->as_VMReg()->next(7)); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
312 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
313 |
#endif // _LP64 |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
314 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
315 |
#endif // _WIN64 |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
316 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
317 |
#ifdef _LP64 |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
318 |
reg_def RFLAGS(SOC, SOC, 0, 16, VMRegImpl::Bad()); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
319 |
#else |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
320 |
reg_def RFLAGS(SOC, SOC, 0, 8, VMRegImpl::Bad()); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
321 |
#endif // _LP64 |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
322 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
323 |
alloc_class chunk1(XMM0, XMM0b, XMM0c, XMM0d, XMM0e, XMM0f, XMM0g, XMM0h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
324 |
XMM1, XMM1b, XMM1c, XMM1d, XMM1e, XMM1f, XMM1g, XMM1h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
325 |
XMM2, XMM2b, XMM2c, XMM2d, XMM2e, XMM2f, XMM2g, XMM2h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
326 |
XMM3, XMM3b, XMM3c, XMM3d, XMM3e, XMM3f, XMM3g, XMM3h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
327 |
XMM4, XMM4b, XMM4c, XMM4d, XMM4e, XMM4f, XMM4g, XMM4h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
328 |
XMM5, XMM5b, XMM5c, XMM5d, XMM5e, XMM5f, XMM5g, XMM5h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
329 |
XMM6, XMM6b, XMM6c, XMM6d, XMM6e, XMM6f, XMM6g, XMM6h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
330 |
XMM7, XMM7b, XMM7c, XMM7d, XMM7e, XMM7f, XMM7g, XMM7h |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
331 |
#ifdef _LP64 |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
332 |
,XMM8, XMM8b, XMM8c, XMM8d, XMM8e, XMM8f, XMM8g, XMM8h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
333 |
XMM9, XMM9b, XMM9c, XMM9d, XMM9e, XMM9f, XMM9g, XMM9h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
334 |
XMM10, XMM10b, XMM10c, XMM10d, XMM10e, XMM10f, XMM10g, XMM10h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
335 |
XMM11, XMM11b, XMM11c, XMM11d, XMM11e, XMM11f, XMM11g, XMM11h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
336 |
XMM12, XMM12b, XMM12c, XMM12d, XMM12e, XMM12f, XMM12g, XMM12h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
337 |
XMM13, XMM13b, XMM13c, XMM13d, XMM13e, XMM13f, XMM13g, XMM13h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
338 |
XMM14, XMM14b, XMM14c, XMM14d, XMM14e, XMM14f, XMM14g, XMM14h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
339 |
XMM15, XMM15b, XMM15c, XMM15d, XMM15e, XMM15f, XMM15g, XMM15h |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
340 |
#endif |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
341 |
); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
342 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
343 |
// flags allocation class should be last. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
344 |
alloc_class chunk2(RFLAGS); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
345 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
346 |
// Singleton class for condition codes |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
347 |
reg_class int_flags(RFLAGS); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
348 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
349 |
// Class for all float registers |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
350 |
reg_class float_reg(XMM0, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
351 |
XMM1, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
352 |
XMM2, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
353 |
XMM3, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
354 |
XMM4, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
355 |
XMM5, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
356 |
XMM6, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
357 |
XMM7 |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
358 |
#ifdef _LP64 |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
359 |
,XMM8, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
360 |
XMM9, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
361 |
XMM10, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
362 |
XMM11, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
363 |
XMM12, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
364 |
XMM13, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
365 |
XMM14, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
366 |
XMM15 |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
367 |
#endif |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
368 |
); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
369 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
370 |
// Class for all double registers |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
371 |
reg_class double_reg(XMM0, XMM0b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
372 |
XMM1, XMM1b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
373 |
XMM2, XMM2b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
374 |
XMM3, XMM3b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
375 |
XMM4, XMM4b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
376 |
XMM5, XMM5b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
377 |
XMM6, XMM6b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
378 |
XMM7, XMM7b |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
379 |
#ifdef _LP64 |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
380 |
,XMM8, XMM8b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
381 |
XMM9, XMM9b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
382 |
XMM10, XMM10b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
383 |
XMM11, XMM11b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
384 |
XMM12, XMM12b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
385 |
XMM13, XMM13b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
386 |
XMM14, XMM14b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
387 |
XMM15, XMM15b |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
388 |
#endif |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
389 |
); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
390 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
391 |
// Class for all 32bit vector registers |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
392 |
reg_class vectors_reg(XMM0, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
393 |
XMM1, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
394 |
XMM2, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
395 |
XMM3, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
396 |
XMM4, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
397 |
XMM5, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
398 |
XMM6, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
399 |
XMM7 |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
400 |
#ifdef _LP64 |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
401 |
,XMM8, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
402 |
XMM9, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
403 |
XMM10, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
404 |
XMM11, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
405 |
XMM12, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
406 |
XMM13, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
407 |
XMM14, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
408 |
XMM15 |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
409 |
#endif |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
410 |
); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
411 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
412 |
// Class for all 64bit vector registers |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
413 |
reg_class vectord_reg(XMM0, XMM0b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
414 |
XMM1, XMM1b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
415 |
XMM2, XMM2b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
416 |
XMM3, XMM3b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
417 |
XMM4, XMM4b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
418 |
XMM5, XMM5b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
419 |
XMM6, XMM6b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
420 |
XMM7, XMM7b |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
421 |
#ifdef _LP64 |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
422 |
,XMM8, XMM8b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
423 |
XMM9, XMM9b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
424 |
XMM10, XMM10b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
425 |
XMM11, XMM11b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
426 |
XMM12, XMM12b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
427 |
XMM13, XMM13b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
428 |
XMM14, XMM14b, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
429 |
XMM15, XMM15b |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
430 |
#endif |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
431 |
); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
432 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
433 |
// Class for all 128bit vector registers |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
434 |
reg_class vectorx_reg(XMM0, XMM0b, XMM0c, XMM0d, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
435 |
XMM1, XMM1b, XMM1c, XMM1d, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
436 |
XMM2, XMM2b, XMM2c, XMM2d, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
437 |
XMM3, XMM3b, XMM3c, XMM3d, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
438 |
XMM4, XMM4b, XMM4c, XMM4d, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
439 |
XMM5, XMM5b, XMM5c, XMM5d, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
440 |
XMM6, XMM6b, XMM6c, XMM6d, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
441 |
XMM7, XMM7b, XMM7c, XMM7d |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
442 |
#ifdef _LP64 |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
443 |
,XMM8, XMM8b, XMM8c, XMM8d, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
444 |
XMM9, XMM9b, XMM9c, XMM9d, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
445 |
XMM10, XMM10b, XMM10c, XMM10d, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
446 |
XMM11, XMM11b, XMM11c, XMM11d, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
447 |
XMM12, XMM12b, XMM12c, XMM12d, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
448 |
XMM13, XMM13b, XMM13c, XMM13d, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
449 |
XMM14, XMM14b, XMM14c, XMM14d, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
450 |
XMM15, XMM15b, XMM15c, XMM15d |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
451 |
#endif |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
452 |
); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
453 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
454 |
// Class for all 256bit vector registers |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
455 |
reg_class vectory_reg(XMM0, XMM0b, XMM0c, XMM0d, XMM0e, XMM0f, XMM0g, XMM0h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
456 |
XMM1, XMM1b, XMM1c, XMM1d, XMM1e, XMM1f, XMM1g, XMM1h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
457 |
XMM2, XMM2b, XMM2c, XMM2d, XMM2e, XMM2f, XMM2g, XMM2h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
458 |
XMM3, XMM3b, XMM3c, XMM3d, XMM3e, XMM3f, XMM3g, XMM3h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
459 |
XMM4, XMM4b, XMM4c, XMM4d, XMM4e, XMM4f, XMM4g, XMM4h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
460 |
XMM5, XMM5b, XMM5c, XMM5d, XMM5e, XMM5f, XMM5g, XMM5h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
461 |
XMM6, XMM6b, XMM6c, XMM6d, XMM6e, XMM6f, XMM6g, XMM6h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
462 |
XMM7, XMM7b, XMM7c, XMM7d, XMM7e, XMM7f, XMM7g, XMM7h |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
463 |
#ifdef _LP64 |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
464 |
,XMM8, XMM8b, XMM8c, XMM8d, XMM8e, XMM8f, XMM8g, XMM8h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
465 |
XMM9, XMM9b, XMM9c, XMM9d, XMM9e, XMM9f, XMM9g, XMM9h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
466 |
XMM10, XMM10b, XMM10c, XMM10d, XMM10e, XMM10f, XMM10g, XMM10h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
467 |
XMM11, XMM11b, XMM11c, XMM11d, XMM11e, XMM11f, XMM11g, XMM11h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
468 |
XMM12, XMM12b, XMM12c, XMM12d, XMM12e, XMM12f, XMM12g, XMM12h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
469 |
XMM13, XMM13b, XMM13c, XMM13d, XMM13e, XMM13f, XMM13g, XMM13h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
470 |
XMM14, XMM14b, XMM14c, XMM14d, XMM14e, XMM14f, XMM14g, XMM14h, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
471 |
XMM15, XMM15b, XMM15c, XMM15d, XMM15e, XMM15f, XMM15g, XMM15h |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
472 |
#endif |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
473 |
); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
474 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
475 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
476 |
|
23498
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
477 |
|
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
478 |
//----------SOURCE BLOCK------------------------------------------------------- |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
479 |
// This is a block of C++ code which provides values, functions, and |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
480 |
// definitions necessary in the rest of the architecture description |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
481 |
|
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
482 |
source_hpp %{ |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
483 |
// Header information of the source block. |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
484 |
// Method declarations/definitions which are used outside |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
485 |
// the ad-scope can conveniently be defined here. |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
486 |
// |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
487 |
// To keep related declarations/definitions/uses close together, |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
488 |
// we switch between source %{ }% and source_hpp %{ }% freely as needed. |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
489 |
|
25715
d5a8dbdc5150
8049325: Introduce and clean up umbrella headers for the files in the cpu subdirectories.
goetz
parents:
23498
diff
changeset
|
490 |
class NativeJump; |
d5a8dbdc5150
8049325: Introduce and clean up umbrella headers for the files in the cpu subdirectories.
goetz
parents:
23498
diff
changeset
|
491 |
|
23498
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
492 |
class CallStubImpl { |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
493 |
|
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
494 |
//-------------------------------------------------------------- |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
495 |
//---< Used for optimization in Compile::shorten_branches >--- |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
496 |
//-------------------------------------------------------------- |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
497 |
|
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
498 |
public: |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
499 |
// Size of call trampoline stub. |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
500 |
static uint size_call_trampoline() { |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
501 |
return 0; // no call trampolines on this platform |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
502 |
} |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
503 |
|
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
504 |
// number of relocations needed by a call trampoline stub |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
505 |
static uint reloc_call_trampoline() { |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
506 |
return 0; // no call trampolines on this platform |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
507 |
} |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
508 |
}; |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
509 |
|
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
510 |
class HandlerImpl { |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
511 |
|
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
512 |
public: |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
513 |
|
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
514 |
static int emit_exception_handler(CodeBuffer &cbuf); |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
515 |
static int emit_deopt_handler(CodeBuffer& cbuf); |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
516 |
|
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
517 |
static uint size_exception_handler() { |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
518 |
// NativeCall instruction size is the same as NativeJump. |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
519 |
// exception handler starts out as jump and can be patched to |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
520 |
// a call be deoptimization. (4932387) |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
521 |
// Note that this value is also credited (in output.cpp) to |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
522 |
// the size of the code section. |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
523 |
return NativeJump::instruction_size; |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
524 |
} |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
525 |
|
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
526 |
#ifdef _LP64 |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
527 |
static uint size_deopt_handler() { |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
528 |
// three 5 byte instructions |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
529 |
return 15; |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
530 |
} |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
531 |
#else |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
532 |
static uint size_deopt_handler() { |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
533 |
// NativeCall instruction size is the same as NativeJump. |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
534 |
// exception handler starts out as jump and can be patched to |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
535 |
// a call be deoptimization. (4932387) |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
536 |
// Note that this value is also credited (in output.cpp) to |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
537 |
// the size of the code section. |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
538 |
return 5 + NativeJump::instruction_size; // pushl(); jmp; |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
539 |
} |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
540 |
#endif |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
541 |
}; |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
542 |
|
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
543 |
%} // end source_hpp |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
544 |
|
11429 | 545 |
source %{ |
23498
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
546 |
|
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
547 |
// Emit exception handler code. |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
548 |
// Stuff framesize into a register and call a VM stub routine. |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
549 |
int HandlerImpl::emit_exception_handler(CodeBuffer& cbuf) { |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
550 |
|
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
551 |
// Note that the code buffer's insts_mark is always relative to insts. |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
552 |
// That's why we must use the macroassembler to generate a handler. |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
553 |
MacroAssembler _masm(&cbuf); |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
554 |
address base = __ start_a_stub(size_exception_handler()); |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
555 |
if (base == NULL) return 0; // CodeBuffer::expand failed |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
556 |
int offset = __ offset(); |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
557 |
__ jump(RuntimeAddress(OptoRuntime::exception_blob()->entry_point())); |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
558 |
assert(__ offset() - offset <= (int) size_exception_handler(), "overflow"); |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
559 |
__ end_a_stub(); |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
560 |
return offset; |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
561 |
} |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
562 |
|
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
563 |
// Emit deopt handler code. |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
564 |
int HandlerImpl::emit_deopt_handler(CodeBuffer& cbuf) { |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
565 |
|
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
566 |
// Note that the code buffer's insts_mark is always relative to insts. |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
567 |
// That's why we must use the macroassembler to generate a handler. |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
568 |
MacroAssembler _masm(&cbuf); |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
569 |
address base = __ start_a_stub(size_deopt_handler()); |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
570 |
if (base == NULL) return 0; // CodeBuffer::expand failed |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
571 |
int offset = __ offset(); |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
572 |
|
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
573 |
#ifdef _LP64 |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
574 |
address the_pc = (address) __ pc(); |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
575 |
Label next; |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
576 |
// push a "the_pc" on the stack without destroying any registers |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
577 |
// as they all may be live. |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
578 |
|
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
579 |
// push address of "next" |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
580 |
__ call(next, relocInfo::none); // reloc none is fine since it is a disp32 |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
581 |
__ bind(next); |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
582 |
// adjust it so it matches "the_pc" |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
583 |
__ subptr(Address(rsp, 0), __ offset() - offset); |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
584 |
#else |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
585 |
InternalAddress here(__ pc()); |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
586 |
__ pushptr(here.addr()); |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
587 |
#endif |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
588 |
|
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
589 |
__ jump(RuntimeAddress(SharedRuntime::deopt_blob()->unpack())); |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
590 |
assert(__ offset() - offset <= (int) size_deopt_handler(), "overflow"); |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
591 |
__ end_a_stub(); |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
592 |
return offset; |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
593 |
} |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
594 |
|
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
595 |
|
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
596 |
//============================================================================= |
a0e67b766e5c
8037821: Account for trampoline stubs when estimating code buffer sizes
goetz
parents:
22505
diff
changeset
|
597 |
|
11429 | 598 |
// Float masks come from different places depending on platform. |
599 |
#ifdef _LP64 |
|
600 |
static address float_signmask() { return StubRoutines::x86::float_sign_mask(); } |
|
601 |
static address float_signflip() { return StubRoutines::x86::float_sign_flip(); } |
|
602 |
static address double_signmask() { return StubRoutines::x86::double_sign_mask(); } |
|
603 |
static address double_signflip() { return StubRoutines::x86::double_sign_flip(); } |
|
604 |
#else |
|
605 |
static address float_signmask() { return (address)float_signmask_pool; } |
|
606 |
static address float_signflip() { return (address)float_signflip_pool; } |
|
607 |
static address double_signmask() { return (address)double_signmask_pool; } |
|
608 |
static address double_signflip() { return (address)double_signflip_pool; } |
|
609 |
#endif |
|
11794 | 610 |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
611 |
|
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
612 |
const bool Matcher::match_rule_supported(int opcode) { |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
613 |
if (!has_match_rule(opcode)) |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
614 |
return false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
615 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
616 |
switch (opcode) { |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
617 |
case Op_PopCountI: |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
618 |
case Op_PopCountL: |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
619 |
if (!UsePopCountInstruction) |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
620 |
return false; |
13883
6979b9850feb
7196199: java/text/Bidi/Bug6665028.java failed: Bidi run count incorrect
kvn
parents:
13728
diff
changeset
|
621 |
break; |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
622 |
case Op_MulVI: |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
623 |
if ((UseSSE < 4) && (UseAVX < 1)) // only with SSE4_1 or AVX |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
624 |
return false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
625 |
break; |
13886
8d82c4dfa722
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
13883
diff
changeset
|
626 |
case Op_CompareAndSwapL: |
8d82c4dfa722
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
13883
diff
changeset
|
627 |
#ifdef _LP64 |
8d82c4dfa722
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
13883
diff
changeset
|
628 |
case Op_CompareAndSwapP: |
8d82c4dfa722
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
13883
diff
changeset
|
629 |
#endif |
8d82c4dfa722
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
13883
diff
changeset
|
630 |
if (!VM_Version::supports_cx8()) |
8d82c4dfa722
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
13883
diff
changeset
|
631 |
return false; |
8d82c4dfa722
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
roland
parents:
13883
diff
changeset
|
632 |
break; |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
633 |
} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
634 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
635 |
return true; // Per default match rules are supported. |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
636 |
} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
637 |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
638 |
// Max vector size in bytes. 0 if not supported. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
639 |
const int Matcher::vector_width_in_bytes(BasicType bt) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
640 |
assert(is_java_primitive(bt), "only primitive type vectors"); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
641 |
if (UseSSE < 2) return 0; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
642 |
// SSE2 supports 128bit vectors for all types. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
643 |
// AVX2 supports 256bit vectors for all types. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
644 |
int size = (UseAVX > 1) ? 32 : 16; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
645 |
// AVX1 supports 256bit vectors only for FLOAT and DOUBLE. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
646 |
if (UseAVX > 0 && (bt == T_FLOAT || bt == T_DOUBLE)) |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
647 |
size = 32; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
648 |
// Use flag to limit vector size. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
649 |
size = MIN2(size,(int)MaxVectorSize); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
650 |
// Minimum 2 values in vector (or 4 for bytes). |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
651 |
switch (bt) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
652 |
case T_DOUBLE: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
653 |
case T_LONG: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
654 |
if (size < 16) return 0; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
655 |
case T_FLOAT: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
656 |
case T_INT: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
657 |
if (size < 8) return 0; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
658 |
case T_BOOLEAN: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
659 |
case T_BYTE: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
660 |
case T_CHAR: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
661 |
case T_SHORT: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
662 |
if (size < 4) return 0; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
663 |
break; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
664 |
default: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
665 |
ShouldNotReachHere(); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
666 |
} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
667 |
return size; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
668 |
} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
669 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
670 |
// Limits on vector size (number of elements) loaded into vector. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
671 |
const int Matcher::max_vector_size(const BasicType bt) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
672 |
return vector_width_in_bytes(bt)/type2aelembytes(bt); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
673 |
} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
674 |
const int Matcher::min_vector_size(const BasicType bt) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
675 |
int max_size = max_vector_size(bt); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
676 |
// Min size which can be loaded into vector is 4 bytes. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
677 |
int size = (type2aelembytes(bt) == 1) ? 4 : 2; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
678 |
return MIN2(size,max_size); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
679 |
} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
680 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
681 |
// Vector ideal reg corresponding to specidied size in bytes |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
682 |
const int Matcher::vector_ideal_reg(int size) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
683 |
assert(MaxVectorSize >= size, ""); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
684 |
switch(size) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
685 |
case 4: return Op_VecS; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
686 |
case 8: return Op_VecD; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
687 |
case 16: return Op_VecX; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
688 |
case 32: return Op_VecY; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
689 |
} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
690 |
ShouldNotReachHere(); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
691 |
return 0; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
692 |
} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
693 |
|
13930 | 694 |
// Only lowest bits of xmm reg are used for vector shift count. |
695 |
const int Matcher::vector_shift_count_ideal_reg(int size) { |
|
696 |
return Op_VecS; |
|
697 |
} |
|
698 |
||
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
699 |
// x86 supports misaligned vectors store/load. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
700 |
const bool Matcher::misaligned_vectors_ok() { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
701 |
return !AlignVector; // can be changed by flag |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
702 |
} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
703 |
|
22505 | 704 |
// x86 AES instructions are compatible with SunJCE expanded |
705 |
// keys, hence we do not need to pass the original key to stubs |
|
706 |
const bool Matcher::pass_original_key_for_aes() { |
|
707 |
return false; |
|
708 |
} |
|
709 |
||
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
710 |
// Helper methods for MachSpillCopyNode::implementation(). |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
711 |
static int vec_mov_helper(CodeBuffer *cbuf, bool do_size, int src_lo, int dst_lo, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
712 |
int src_hi, int dst_hi, uint ireg, outputStream* st) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
713 |
// In 64-bit VM size calculation is very complex. Emitting instructions |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
714 |
// into scratch buffer is used to get size in 64-bit VM. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
715 |
LP64_ONLY( assert(!do_size, "this method calculates size only for 32-bit VM"); ) |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
716 |
assert(ireg == Op_VecS || // 32bit vector |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
717 |
(src_lo & 1) == 0 && (src_lo + 1) == src_hi && |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
718 |
(dst_lo & 1) == 0 && (dst_lo + 1) == dst_hi, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
719 |
"no non-adjacent vector moves" ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
720 |
if (cbuf) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
721 |
MacroAssembler _masm(cbuf); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
722 |
int offset = __ offset(); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
723 |
switch (ireg) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
724 |
case Op_VecS: // copy whole register |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
725 |
case Op_VecD: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
726 |
case Op_VecX: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
727 |
__ movdqu(as_XMMRegister(Matcher::_regEncode[dst_lo]), as_XMMRegister(Matcher::_regEncode[src_lo])); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
728 |
break; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
729 |
case Op_VecY: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
730 |
__ vmovdqu(as_XMMRegister(Matcher::_regEncode[dst_lo]), as_XMMRegister(Matcher::_regEncode[src_lo])); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
731 |
break; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
732 |
default: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
733 |
ShouldNotReachHere(); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
734 |
} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
735 |
int size = __ offset() - offset; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
736 |
#ifdef ASSERT |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
737 |
// VEX_2bytes prefix is used if UseAVX > 0, so it takes the same 2 bytes as SIMD prefix. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
738 |
assert(!do_size || size == 4, "incorrect size calculattion"); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
739 |
#endif |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
740 |
return size; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
741 |
#ifndef PRODUCT |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
742 |
} else if (!do_size) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
743 |
switch (ireg) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
744 |
case Op_VecS: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
745 |
case Op_VecD: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
746 |
case Op_VecX: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
747 |
st->print("movdqu %s,%s\t# spill",Matcher::regName[dst_lo],Matcher::regName[src_lo]); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
748 |
break; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
749 |
case Op_VecY: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
750 |
st->print("vmovdqu %s,%s\t# spill",Matcher::regName[dst_lo],Matcher::regName[src_lo]); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
751 |
break; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
752 |
default: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
753 |
ShouldNotReachHere(); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
754 |
} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
755 |
#endif |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
756 |
} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
757 |
// VEX_2bytes prefix is used if UseAVX > 0, and it takes the same 2 bytes as SIMD prefix. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
758 |
return 4; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
759 |
} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
760 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
761 |
static int vec_spill_helper(CodeBuffer *cbuf, bool do_size, bool is_load, |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
762 |
int stack_offset, int reg, uint ireg, outputStream* st) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
763 |
// In 64-bit VM size calculation is very complex. Emitting instructions |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
764 |
// into scratch buffer is used to get size in 64-bit VM. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
765 |
LP64_ONLY( assert(!do_size, "this method calculates size only for 32-bit VM"); ) |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
766 |
if (cbuf) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
767 |
MacroAssembler _masm(cbuf); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
768 |
int offset = __ offset(); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
769 |
if (is_load) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
770 |
switch (ireg) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
771 |
case Op_VecS: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
772 |
__ movdl(as_XMMRegister(Matcher::_regEncode[reg]), Address(rsp, stack_offset)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
773 |
break; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
774 |
case Op_VecD: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
775 |
__ movq(as_XMMRegister(Matcher::_regEncode[reg]), Address(rsp, stack_offset)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
776 |
break; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
777 |
case Op_VecX: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
778 |
__ movdqu(as_XMMRegister(Matcher::_regEncode[reg]), Address(rsp, stack_offset)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
779 |
break; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
780 |
case Op_VecY: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
781 |
__ vmovdqu(as_XMMRegister(Matcher::_regEncode[reg]), Address(rsp, stack_offset)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
782 |
break; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
783 |
default: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
784 |
ShouldNotReachHere(); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
785 |
} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
786 |
} else { // store |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
787 |
switch (ireg) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
788 |
case Op_VecS: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
789 |
__ movdl(Address(rsp, stack_offset), as_XMMRegister(Matcher::_regEncode[reg])); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
790 |
break; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
791 |
case Op_VecD: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
792 |
__ movq(Address(rsp, stack_offset), as_XMMRegister(Matcher::_regEncode[reg])); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
793 |
break; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
794 |
case Op_VecX: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
795 |
__ movdqu(Address(rsp, stack_offset), as_XMMRegister(Matcher::_regEncode[reg])); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
796 |
break; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
797 |
case Op_VecY: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
798 |
__ vmovdqu(Address(rsp, stack_offset), as_XMMRegister(Matcher::_regEncode[reg])); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
799 |
break; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
800 |
default: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
801 |
ShouldNotReachHere(); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
802 |
} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
803 |
} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
804 |
int size = __ offset() - offset; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
805 |
#ifdef ASSERT |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
806 |
int offset_size = (stack_offset == 0) ? 0 : ((stack_offset < 0x80) ? 1 : 4); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
807 |
// VEX_2bytes prefix is used if UseAVX > 0, so it takes the same 2 bytes as SIMD prefix. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
808 |
assert(!do_size || size == (5+offset_size), "incorrect size calculattion"); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
809 |
#endif |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
810 |
return size; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
811 |
#ifndef PRODUCT |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
812 |
} else if (!do_size) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
813 |
if (is_load) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
814 |
switch (ireg) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
815 |
case Op_VecS: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
816 |
st->print("movd %s,[rsp + %d]\t# spill", Matcher::regName[reg], stack_offset); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
817 |
break; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
818 |
case Op_VecD: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
819 |
st->print("movq %s,[rsp + %d]\t# spill", Matcher::regName[reg], stack_offset); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
820 |
break; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
821 |
case Op_VecX: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
822 |
st->print("movdqu %s,[rsp + %d]\t# spill", Matcher::regName[reg], stack_offset); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
823 |
break; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
824 |
case Op_VecY: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
825 |
st->print("vmovdqu %s,[rsp + %d]\t# spill", Matcher::regName[reg], stack_offset); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
826 |
break; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
827 |
default: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
828 |
ShouldNotReachHere(); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
829 |
} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
830 |
} else { // store |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
831 |
switch (ireg) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
832 |
case Op_VecS: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
833 |
st->print("movd [rsp + %d],%s\t# spill", stack_offset, Matcher::regName[reg]); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
834 |
break; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
835 |
case Op_VecD: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
836 |
st->print("movq [rsp + %d],%s\t# spill", stack_offset, Matcher::regName[reg]); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
837 |
break; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
838 |
case Op_VecX: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
839 |
st->print("movdqu [rsp + %d],%s\t# spill", stack_offset, Matcher::regName[reg]); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
840 |
break; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
841 |
case Op_VecY: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
842 |
st->print("vmovdqu [rsp + %d],%s\t# spill", stack_offset, Matcher::regName[reg]); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
843 |
break; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
844 |
default: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
845 |
ShouldNotReachHere(); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
846 |
} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
847 |
} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
848 |
#endif |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
849 |
} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
850 |
int offset_size = (stack_offset == 0) ? 0 : ((stack_offset < 0x80) ? 1 : 4); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
851 |
// VEX_2bytes prefix is used if UseAVX > 0, so it takes the same 2 bytes as SIMD prefix. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
852 |
return 5+offset_size; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
853 |
} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
854 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
855 |
static inline jfloat replicate4_imm(int con, int width) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
856 |
// Load a constant of "width" (in bytes) and replicate it to fill 32bit. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
857 |
assert(width == 1 || width == 2, "only byte or short types here"); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
858 |
int bit_width = width * 8; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
859 |
jint val = con; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
860 |
val &= (1 << bit_width) - 1; // mask off sign bits |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
861 |
while(bit_width < 32) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
862 |
val |= (val << bit_width); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
863 |
bit_width <<= 1; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
864 |
} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
865 |
jfloat fval = *((jfloat*) &val); // coerce to float type |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
866 |
return fval; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
867 |
} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
868 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
869 |
static inline jdouble replicate8_imm(int con, int width) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
870 |
// Load a constant of "width" (in bytes) and replicate it to fill 64bit. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
871 |
assert(width == 1 || width == 2 || width == 4, "only byte, short or int types here"); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
872 |
int bit_width = width * 8; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
873 |
jlong val = con; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
874 |
val &= (((jlong) 1) << bit_width) - 1; // mask off sign bits |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
875 |
while(bit_width < 64) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
876 |
val |= (val << bit_width); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
877 |
bit_width <<= 1; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
878 |
} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
879 |
jdouble dval = *((jdouble*) &val); // coerce to double type |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
880 |
return dval; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
881 |
} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
882 |
|
11794 | 883 |
#ifndef PRODUCT |
884 |
void MachNopNode::format(PhaseRegAlloc*, outputStream* st) const { |
|
885 |
st->print("nop \t# %d bytes pad for loops and calls", _count); |
|
886 |
} |
|
887 |
#endif |
|
888 |
||
889 |
void MachNopNode::emit(CodeBuffer &cbuf, PhaseRegAlloc*) const { |
|
890 |
MacroAssembler _masm(&cbuf); |
|
891 |
__ nop(_count); |
|
892 |
} |
|
893 |
||
894 |
uint MachNopNode::size(PhaseRegAlloc*) const { |
|
895 |
return _count; |
|
896 |
} |
|
897 |
||
898 |
#ifndef PRODUCT |
|
899 |
void MachBreakpointNode::format(PhaseRegAlloc*, outputStream* st) const { |
|
900 |
st->print("# breakpoint"); |
|
901 |
} |
|
902 |
#endif |
|
903 |
||
904 |
void MachBreakpointNode::emit(CodeBuffer &cbuf, PhaseRegAlloc* ra_) const { |
|
905 |
MacroAssembler _masm(&cbuf); |
|
906 |
__ int3(); |
|
907 |
} |
|
908 |
||
909 |
uint MachBreakpointNode::size(PhaseRegAlloc* ra_) const { |
|
910 |
return MachNode::size(ra_); |
|
911 |
} |
|
912 |
||
913 |
%} |
|
914 |
||
915 |
encode %{ |
|
916 |
||
917 |
enc_class preserve_SP %{ |
|
918 |
debug_only(int off0 = cbuf.insts_size()); |
|
919 |
MacroAssembler _masm(&cbuf); |
|
920 |
// RBP is preserved across all calls, even compiled calls. |
|
921 |
// Use it to preserve RSP in places where the callee might change the SP. |
|
922 |
__ movptr(rbp_mh_SP_save, rsp); |
|
923 |
debug_only(int off1 = cbuf.insts_size()); |
|
924 |
assert(off1 - off0 == preserve_SP_size(), "correct size prediction"); |
|
925 |
%} |
|
926 |
||
927 |
enc_class restore_SP %{ |
|
928 |
MacroAssembler _masm(&cbuf); |
|
929 |
__ movptr(rsp, rbp_mh_SP_save); |
|
930 |
%} |
|
931 |
||
932 |
enc_class call_epilog %{ |
|
933 |
if (VerifyStackAtCalls) { |
|
934 |
// Check that stack depth is unchanged: find majik cookie on stack |
|
935 |
int framesize = ra_->reg2offset_unchecked(OptoReg::add(ra_->_matcher._old_SP, -3*VMRegImpl::slots_per_word)); |
|
936 |
MacroAssembler _masm(&cbuf); |
|
937 |
Label L; |
|
938 |
__ cmpptr(Address(rsp, framesize), (int32_t)0xbadb100d); |
|
939 |
__ jccb(Assembler::equal, L); |
|
940 |
// Die if stack mismatch |
|
941 |
__ int3(); |
|
942 |
__ bind(L); |
|
943 |
} |
|
944 |
%} |
|
945 |
||
11429 | 946 |
%} |
947 |
||
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
948 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
949 |
//----------OPERANDS----------------------------------------------------------- |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
950 |
// Operand definitions must precede instruction definitions for correct parsing |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
951 |
// in the ADLC because operands constitute user defined types which are used in |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
952 |
// instruction definitions. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
953 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
954 |
// Vectors |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
955 |
operand vecS() %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
956 |
constraint(ALLOC_IN_RC(vectors_reg)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
957 |
match(VecS); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
958 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
959 |
format %{ %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
960 |
interface(REG_INTER); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
961 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
962 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
963 |
operand vecD() %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
964 |
constraint(ALLOC_IN_RC(vectord_reg)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
965 |
match(VecD); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
966 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
967 |
format %{ %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
968 |
interface(REG_INTER); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
969 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
970 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
971 |
operand vecX() %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
972 |
constraint(ALLOC_IN_RC(vectorx_reg)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
973 |
match(VecX); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
974 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
975 |
format %{ %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
976 |
interface(REG_INTER); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
977 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
978 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
979 |
operand vecY() %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
980 |
constraint(ALLOC_IN_RC(vectory_reg)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
981 |
match(VecY); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
982 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
983 |
format %{ %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
984 |
interface(REG_INTER); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
985 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
986 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
987 |
|
11429 | 988 |
// INSTRUCTIONS -- Platform independent definitions (same for 32- and 64-bit) |
989 |
||
11794 | 990 |
// ============================================================================ |
991 |
||
992 |
instruct ShouldNotReachHere() %{ |
|
993 |
match(Halt); |
|
994 |
format %{ "int3\t# ShouldNotReachHere" %} |
|
995 |
ins_encode %{ |
|
996 |
__ int3(); |
|
997 |
%} |
|
998 |
ins_pipe(pipe_slow); |
|
999 |
%} |
|
1000 |
||
1001 |
// ============================================================================ |
|
1002 |
||
11429 | 1003 |
instruct addF_reg(regF dst, regF src) %{ |
1004 |
predicate((UseSSE>=1) && (UseAVX == 0)); |
|
1005 |
match(Set dst (AddF dst src)); |
|
1006 |
||
1007 |
format %{ "addss $dst, $src" %} |
|
1008 |
ins_cost(150); |
|
1009 |
ins_encode %{ |
|
1010 |
__ addss($dst$$XMMRegister, $src$$XMMRegister); |
|
1011 |
%} |
|
1012 |
ins_pipe(pipe_slow); |
|
1013 |
%} |
|
1014 |
||
1015 |
instruct addF_mem(regF dst, memory src) %{ |
|
1016 |
predicate((UseSSE>=1) && (UseAVX == 0)); |
|
1017 |
match(Set dst (AddF dst (LoadF src))); |
|
1018 |
||
1019 |
format %{ "addss $dst, $src" %} |
|
1020 |
ins_cost(150); |
|
1021 |
ins_encode %{ |
|
1022 |
__ addss($dst$$XMMRegister, $src$$Address); |
|
1023 |
%} |
|
1024 |
ins_pipe(pipe_slow); |
|
1025 |
%} |
|
1026 |
||
1027 |
instruct addF_imm(regF dst, immF con) %{ |
|
1028 |
predicate((UseSSE>=1) && (UseAVX == 0)); |
|
1029 |
match(Set dst (AddF dst con)); |
|
1030 |
format %{ "addss $dst, [$constantaddress]\t# load from constant table: float=$con" %} |
|
1031 |
ins_cost(150); |
|
1032 |
ins_encode %{ |
|
1033 |
__ addss($dst$$XMMRegister, $constantaddress($con)); |
|
1034 |
%} |
|
1035 |
ins_pipe(pipe_slow); |
|
1036 |
%} |
|
1037 |
||
13294 | 1038 |
instruct addF_reg_reg(regF dst, regF src1, regF src2) %{ |
11429 | 1039 |
predicate(UseAVX > 0); |
1040 |
match(Set dst (AddF src1 src2)); |
|
1041 |
||
1042 |
format %{ "vaddss $dst, $src1, $src2" %} |
|
1043 |
ins_cost(150); |
|
1044 |
ins_encode %{ |
|
1045 |
__ vaddss($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister); |
|
1046 |
%} |
|
1047 |
ins_pipe(pipe_slow); |
|
1048 |
%} |
|
1049 |
||
13294 | 1050 |
instruct addF_reg_mem(regF dst, regF src1, memory src2) %{ |
11429 | 1051 |
predicate(UseAVX > 0); |
1052 |
match(Set dst (AddF src1 (LoadF src2))); |
|
1053 |
||
1054 |
format %{ "vaddss $dst, $src1, $src2" %} |
|
1055 |
ins_cost(150); |
|
1056 |
ins_encode %{ |
|
1057 |
__ vaddss($dst$$XMMRegister, $src1$$XMMRegister, $src2$$Address); |
|
1058 |
%} |
|
1059 |
ins_pipe(pipe_slow); |
|
1060 |
%} |
|
1061 |
||
13294 | 1062 |
instruct addF_reg_imm(regF dst, regF src, immF con) %{ |
11429 | 1063 |
predicate(UseAVX > 0); |
1064 |
match(Set dst (AddF src con)); |
|
1065 |
||
1066 |
format %{ "vaddss $dst, $src, [$constantaddress]\t# load from constant table: float=$con" %} |
|
1067 |
ins_cost(150); |
|
1068 |
ins_encode %{ |
|
1069 |
__ vaddss($dst$$XMMRegister, $src$$XMMRegister, $constantaddress($con)); |
|
1070 |
%} |
|
1071 |
ins_pipe(pipe_slow); |
|
1072 |
%} |
|
1073 |
||
1074 |
instruct addD_reg(regD dst, regD src) %{ |
|
1075 |
predicate((UseSSE>=2) && (UseAVX == 0)); |
|
1076 |
match(Set dst (AddD dst src)); |
|
1077 |
||
1078 |
format %{ "addsd $dst, $src" %} |
|
1079 |
ins_cost(150); |
|
1080 |
ins_encode %{ |
|
1081 |
__ addsd($dst$$XMMRegister, $src$$XMMRegister); |
|
1082 |
%} |
|
1083 |
ins_pipe(pipe_slow); |
|
1084 |
%} |
|
1085 |
||
1086 |
instruct addD_mem(regD dst, memory src) %{ |
|
1087 |
predicate((UseSSE>=2) && (UseAVX == 0)); |
|
1088 |
match(Set dst (AddD dst (LoadD src))); |
|
1089 |
||
1090 |
format %{ "addsd $dst, $src" %} |
|
1091 |
ins_cost(150); |
|
1092 |
ins_encode %{ |
|
1093 |
__ addsd($dst$$XMMRegister, $src$$Address); |
|
1094 |
%} |
|
1095 |
ins_pipe(pipe_slow); |
|
1096 |
%} |
|
1097 |
||
1098 |
instruct addD_imm(regD dst, immD con) %{ |
|
1099 |
predicate((UseSSE>=2) && (UseAVX == 0)); |
|
1100 |
match(Set dst (AddD dst con)); |
|
1101 |
format %{ "addsd $dst, [$constantaddress]\t# load from constant table: double=$con" %} |
|
1102 |
ins_cost(150); |
|
1103 |
ins_encode %{ |
|
1104 |
__ addsd($dst$$XMMRegister, $constantaddress($con)); |
|
1105 |
%} |
|
1106 |
ins_pipe(pipe_slow); |
|
1107 |
%} |
|
1108 |
||
13294 | 1109 |
instruct addD_reg_reg(regD dst, regD src1, regD src2) %{ |
11429 | 1110 |
predicate(UseAVX > 0); |
1111 |
match(Set dst (AddD src1 src2)); |
|
1112 |
||
1113 |
format %{ "vaddsd $dst, $src1, $src2" %} |
|
1114 |
ins_cost(150); |
|
1115 |
ins_encode %{ |
|
1116 |
__ vaddsd($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister); |
|
1117 |
%} |
|
1118 |
ins_pipe(pipe_slow); |
|
1119 |
%} |
|
1120 |
||
13294 | 1121 |
instruct addD_reg_mem(regD dst, regD src1, memory src2) %{ |
11429 | 1122 |
predicate(UseAVX > 0); |
1123 |
match(Set dst (AddD src1 (LoadD src2))); |
|
1124 |
||
1125 |
format %{ "vaddsd $dst, $src1, $src2" %} |
|
1126 |
ins_cost(150); |
|
1127 |
ins_encode %{ |
|
1128 |
__ vaddsd($dst$$XMMRegister, $src1$$XMMRegister, $src2$$Address); |
|
1129 |
%} |
|
1130 |
ins_pipe(pipe_slow); |
|
1131 |
%} |
|
1132 |
||
13294 | 1133 |
instruct addD_reg_imm(regD dst, regD src, immD con) %{ |
11429 | 1134 |
predicate(UseAVX > 0); |
1135 |
match(Set dst (AddD src con)); |
|
1136 |
||
1137 |
format %{ "vaddsd $dst, $src, [$constantaddress]\t# load from constant table: double=$con" %} |
|
1138 |
ins_cost(150); |
|
1139 |
ins_encode %{ |
|
1140 |
__ vaddsd($dst$$XMMRegister, $src$$XMMRegister, $constantaddress($con)); |
|
1141 |
%} |
|
1142 |
ins_pipe(pipe_slow); |
|
1143 |
%} |
|
1144 |
||
1145 |
instruct subF_reg(regF dst, regF src) %{ |
|
1146 |
predicate((UseSSE>=1) && (UseAVX == 0)); |
|
1147 |
match(Set dst (SubF dst src)); |
|
1148 |
||
1149 |
format %{ "subss $dst, $src" %} |
|
1150 |
ins_cost(150); |
|
1151 |
ins_encode %{ |
|
1152 |
__ subss($dst$$XMMRegister, $src$$XMMRegister); |
|
1153 |
%} |
|
1154 |
ins_pipe(pipe_slow); |
|
1155 |
%} |
|
1156 |
||
1157 |
instruct subF_mem(regF dst, memory src) %{ |
|
1158 |
predicate((UseSSE>=1) && (UseAVX == 0)); |
|
1159 |
match(Set dst (SubF dst (LoadF src))); |
|
1160 |
||
1161 |
format %{ "subss $dst, $src" %} |
|
1162 |
ins_cost(150); |
|
1163 |
ins_encode %{ |
|
1164 |
__ subss($dst$$XMMRegister, $src$$Address); |
|
1165 |
%} |
|
1166 |
ins_pipe(pipe_slow); |
|
1167 |
%} |
|
1168 |
||
1169 |
instruct subF_imm(regF dst, immF con) %{ |
|
1170 |
predicate((UseSSE>=1) && (UseAVX == 0)); |
|
1171 |
match(Set dst (SubF dst con)); |
|
1172 |
format %{ "subss $dst, [$constantaddress]\t# load from constant table: float=$con" %} |
|
1173 |
ins_cost(150); |
|
1174 |
ins_encode %{ |
|
1175 |
__ subss($dst$$XMMRegister, $constantaddress($con)); |
|
1176 |
%} |
|
1177 |
ins_pipe(pipe_slow); |
|
1178 |
%} |
|
1179 |
||
13294 | 1180 |
instruct subF_reg_reg(regF dst, regF src1, regF src2) %{ |
11429 | 1181 |
predicate(UseAVX > 0); |
1182 |
match(Set dst (SubF src1 src2)); |
|
1183 |
||
1184 |
format %{ "vsubss $dst, $src1, $src2" %} |
|
1185 |
ins_cost(150); |
|
1186 |
ins_encode %{ |
|
1187 |
__ vsubss($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister); |
|
1188 |
%} |
|
1189 |
ins_pipe(pipe_slow); |
|
1190 |
%} |
|
1191 |
||
13294 | 1192 |
instruct subF_reg_mem(regF dst, regF src1, memory src2) %{ |
11429 | 1193 |
predicate(UseAVX > 0); |
1194 |
match(Set dst (SubF src1 (LoadF src2))); |
|
1195 |
||
1196 |
format %{ "vsubss $dst, $src1, $src2" %} |
|
1197 |
ins_cost(150); |
|
1198 |
ins_encode %{ |
|
1199 |
__ vsubss($dst$$XMMRegister, $src1$$XMMRegister, $src2$$Address); |
|
1200 |
%} |
|
1201 |
ins_pipe(pipe_slow); |
|
1202 |
%} |
|
1203 |
||
13294 | 1204 |
instruct subF_reg_imm(regF dst, regF src, immF con) %{ |
11429 | 1205 |
predicate(UseAVX > 0); |
1206 |
match(Set dst (SubF src con)); |
|
1207 |
||
1208 |
format %{ "vsubss $dst, $src, [$constantaddress]\t# load from constant table: float=$con" %} |
|
1209 |
ins_cost(150); |
|
1210 |
ins_encode %{ |
|
1211 |
__ vsubss($dst$$XMMRegister, $src$$XMMRegister, $constantaddress($con)); |
|
1212 |
%} |
|
1213 |
ins_pipe(pipe_slow); |
|
1214 |
%} |
|
1215 |
||
1216 |
instruct subD_reg(regD dst, regD src) %{ |
|
1217 |
predicate((UseSSE>=2) && (UseAVX == 0)); |
|
1218 |
match(Set dst (SubD dst src)); |
|
1219 |
||
1220 |
format %{ "subsd $dst, $src" %} |
|
1221 |
ins_cost(150); |
|
1222 |
ins_encode %{ |
|
1223 |
__ subsd($dst$$XMMRegister, $src$$XMMRegister); |
|
1224 |
%} |
|
1225 |
ins_pipe(pipe_slow); |
|
1226 |
%} |
|
1227 |
||
1228 |
instruct subD_mem(regD dst, memory src) %{ |
|
1229 |
predicate((UseSSE>=2) && (UseAVX == 0)); |
|
1230 |
match(Set dst (SubD dst (LoadD src))); |
|
1231 |
||
1232 |
format %{ "subsd $dst, $src" %} |
|
1233 |
ins_cost(150); |
|
1234 |
ins_encode %{ |
|
1235 |
__ subsd($dst$$XMMRegister, $src$$Address); |
|
1236 |
%} |
|
1237 |
ins_pipe(pipe_slow); |
|
1238 |
%} |
|
1239 |
||
1240 |
instruct subD_imm(regD dst, immD con) %{ |
|
1241 |
predicate((UseSSE>=2) && (UseAVX == 0)); |
|
1242 |
match(Set dst (SubD dst con)); |
|
1243 |
format %{ "subsd $dst, [$constantaddress]\t# load from constant table: double=$con" %} |
|
1244 |
ins_cost(150); |
|
1245 |
ins_encode %{ |
|
1246 |
__ subsd($dst$$XMMRegister, $constantaddress($con)); |
|
1247 |
%} |
|
1248 |
ins_pipe(pipe_slow); |
|
1249 |
%} |
|
1250 |
||
13294 | 1251 |
instruct subD_reg_reg(regD dst, regD src1, regD src2) %{ |
11429 | 1252 |
predicate(UseAVX > 0); |
1253 |
match(Set dst (SubD src1 src2)); |
|
1254 |
||
1255 |
format %{ "vsubsd $dst, $src1, $src2" %} |
|
1256 |
ins_cost(150); |
|
1257 |
ins_encode %{ |
|
1258 |
__ vsubsd($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister); |
|
1259 |
%} |
|
1260 |
ins_pipe(pipe_slow); |
|
1261 |
%} |
|
1262 |
||
13294 | 1263 |
instruct subD_reg_mem(regD dst, regD src1, memory src2) %{ |
11429 | 1264 |
predicate(UseAVX > 0); |
1265 |
match(Set dst (SubD src1 (LoadD src2))); |
|
1266 |
||
1267 |
format %{ "vsubsd $dst, $src1, $src2" %} |
|
1268 |
ins_cost(150); |
|
1269 |
ins_encode %{ |
|
1270 |
__ vsubsd($dst$$XMMRegister, $src1$$XMMRegister, $src2$$Address); |
|
1271 |
%} |
|
1272 |
ins_pipe(pipe_slow); |
|
1273 |
%} |
|
1274 |
||
13294 | 1275 |
instruct subD_reg_imm(regD dst, regD src, immD con) %{ |
11429 | 1276 |
predicate(UseAVX > 0); |
1277 |
match(Set dst (SubD src con)); |
|
1278 |
||
1279 |
format %{ "vsubsd $dst, $src, [$constantaddress]\t# load from constant table: double=$con" %} |
|
1280 |
ins_cost(150); |
|
1281 |
ins_encode %{ |
|
1282 |
__ vsubsd($dst$$XMMRegister, $src$$XMMRegister, $constantaddress($con)); |
|
1283 |
%} |
|
1284 |
ins_pipe(pipe_slow); |
|
1285 |
%} |
|
1286 |
||
1287 |
instruct mulF_reg(regF dst, regF src) %{ |
|
1288 |
predicate((UseSSE>=1) && (UseAVX == 0)); |
|
1289 |
match(Set dst (MulF dst src)); |
|
1290 |
||
1291 |
format %{ "mulss $dst, $src" %} |
|
1292 |
ins_cost(150); |
|
1293 |
ins_encode %{ |
|
1294 |
__ mulss($dst$$XMMRegister, $src$$XMMRegister); |
|
1295 |
%} |
|
1296 |
ins_pipe(pipe_slow); |
|
1297 |
%} |
|
1298 |
||
1299 |
instruct mulF_mem(regF dst, memory src) %{ |
|
1300 |
predicate((UseSSE>=1) && (UseAVX == 0)); |
|
1301 |
match(Set dst (MulF dst (LoadF src))); |
|
1302 |
||
1303 |
format %{ "mulss $dst, $src" %} |
|
1304 |
ins_cost(150); |
|
1305 |
ins_encode %{ |
|
1306 |
__ mulss($dst$$XMMRegister, $src$$Address); |
|
1307 |
%} |
|
1308 |
ins_pipe(pipe_slow); |
|
1309 |
%} |
|
1310 |
||
1311 |
instruct mulF_imm(regF dst, immF con) %{ |
|
1312 |
predicate((UseSSE>=1) && (UseAVX == 0)); |
|
1313 |
match(Set dst (MulF dst con)); |
|
1314 |
format %{ "mulss $dst, [$constantaddress]\t# load from constant table: float=$con" %} |
|
1315 |
ins_cost(150); |
|
1316 |
ins_encode %{ |
|
1317 |
__ mulss($dst$$XMMRegister, $constantaddress($con)); |
|
1318 |
%} |
|
1319 |
ins_pipe(pipe_slow); |
|
1320 |
%} |
|
1321 |
||
13294 | 1322 |
instruct mulF_reg_reg(regF dst, regF src1, regF src2) %{ |
11429 | 1323 |
predicate(UseAVX > 0); |
1324 |
match(Set dst (MulF src1 src2)); |
|
1325 |
||
1326 |
format %{ "vmulss $dst, $src1, $src2" %} |
|
1327 |
ins_cost(150); |
|
1328 |
ins_encode %{ |
|
1329 |
__ vmulss($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister); |
|
1330 |
%} |
|
1331 |
ins_pipe(pipe_slow); |
|
1332 |
%} |
|
1333 |
||
13294 | 1334 |
instruct mulF_reg_mem(regF dst, regF src1, memory src2) %{ |
11429 | 1335 |
predicate(UseAVX > 0); |
1336 |
match(Set dst (MulF src1 (LoadF src2))); |
|
1337 |
||
1338 |
format %{ "vmulss $dst, $src1, $src2" %} |
|
1339 |
ins_cost(150); |
|
1340 |
ins_encode %{ |
|
1341 |
__ vmulss($dst$$XMMRegister, $src1$$XMMRegister, $src2$$Address); |
|
1342 |
%} |
|
1343 |
ins_pipe(pipe_slow); |
|
1344 |
%} |
|
1345 |
||
13294 | 1346 |
instruct mulF_reg_imm(regF dst, regF src, immF con) %{ |
11429 | 1347 |
predicate(UseAVX > 0); |
1348 |
match(Set dst (MulF src con)); |
|
1349 |
||
1350 |
format %{ "vmulss $dst, $src, [$constantaddress]\t# load from constant table: float=$con" %} |
|
1351 |
ins_cost(150); |
|
1352 |
ins_encode %{ |
|
1353 |
__ vmulss($dst$$XMMRegister, $src$$XMMRegister, $constantaddress($con)); |
|
1354 |
%} |
|
1355 |
ins_pipe(pipe_slow); |
|
1356 |
%} |
|
1357 |
||
1358 |
instruct mulD_reg(regD dst, regD src) %{ |
|
1359 |
predicate((UseSSE>=2) && (UseAVX == 0)); |
|
1360 |
match(Set dst (MulD dst src)); |
|
1361 |
||
1362 |
format %{ "mulsd $dst, $src" %} |
|
1363 |
ins_cost(150); |
|
1364 |
ins_encode %{ |
|
1365 |
__ mulsd($dst$$XMMRegister, $src$$XMMRegister); |
|
1366 |
%} |
|
1367 |
ins_pipe(pipe_slow); |
|
1368 |
%} |
|
1369 |
||
1370 |
instruct mulD_mem(regD dst, memory src) %{ |
|
1371 |
predicate((UseSSE>=2) && (UseAVX == 0)); |
|
1372 |
match(Set dst (MulD dst (LoadD src))); |
|
1373 |
||
1374 |
format %{ "mulsd $dst, $src" %} |
|
1375 |
ins_cost(150); |
|
1376 |
ins_encode %{ |
|
1377 |
__ mulsd($dst$$XMMRegister, $src$$Address); |
|
1378 |
%} |
|
1379 |
ins_pipe(pipe_slow); |
|
1380 |
%} |
|
1381 |
||
1382 |
instruct mulD_imm(regD dst, immD con) %{ |
|
1383 |
predicate((UseSSE>=2) && (UseAVX == 0)); |
|
1384 |
match(Set dst (MulD dst con)); |
|
1385 |
format %{ "mulsd $dst, [$constantaddress]\t# load from constant table: double=$con" %} |
|
1386 |
ins_cost(150); |
|
1387 |
ins_encode %{ |
|
1388 |
__ mulsd($dst$$XMMRegister, $constantaddress($con)); |
|
1389 |
%} |
|
1390 |
ins_pipe(pipe_slow); |
|
1391 |
%} |
|
1392 |
||
13294 | 1393 |
instruct mulD_reg_reg(regD dst, regD src1, regD src2) %{ |
11429 | 1394 |
predicate(UseAVX > 0); |
1395 |
match(Set dst (MulD src1 src2)); |
|
1396 |
||
1397 |
format %{ "vmulsd $dst, $src1, $src2" %} |
|
1398 |
ins_cost(150); |
|
1399 |
ins_encode %{ |
|
1400 |
__ vmulsd($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister); |
|
1401 |
%} |
|
1402 |
ins_pipe(pipe_slow); |
|
1403 |
%} |
|
1404 |
||
13294 | 1405 |
instruct mulD_reg_mem(regD dst, regD src1, memory src2) %{ |
11429 | 1406 |
predicate(UseAVX > 0); |
1407 |
match(Set dst (MulD src1 (LoadD src2))); |
|
1408 |
||
1409 |
format %{ "vmulsd $dst, $src1, $src2" %} |
|
1410 |
ins_cost(150); |
|
1411 |
ins_encode %{ |
|
1412 |
__ vmulsd($dst$$XMMRegister, $src1$$XMMRegister, $src2$$Address); |
|
1413 |
%} |
|
1414 |
ins_pipe(pipe_slow); |
|
1415 |
%} |
|
1416 |
||
13294 | 1417 |
instruct mulD_reg_imm(regD dst, regD src, immD con) %{ |
11429 | 1418 |
predicate(UseAVX > 0); |
1419 |
match(Set dst (MulD src con)); |
|
1420 |
||
1421 |
format %{ "vmulsd $dst, $src, [$constantaddress]\t# load from constant table: double=$con" %} |
|
1422 |
ins_cost(150); |
|
1423 |
ins_encode %{ |
|
1424 |
__ vmulsd($dst$$XMMRegister, $src$$XMMRegister, $constantaddress($con)); |
|
1425 |
%} |
|
1426 |
ins_pipe(pipe_slow); |
|
1427 |
%} |
|
1428 |
||
1429 |
instruct divF_reg(regF dst, regF src) %{ |
|
1430 |
predicate((UseSSE>=1) && (UseAVX == 0)); |
|
1431 |
match(Set dst (DivF dst src)); |
|
1432 |
||
1433 |
format %{ "divss $dst, $src" %} |
|
1434 |
ins_cost(150); |
|
1435 |
ins_encode %{ |
|
1436 |
__ divss($dst$$XMMRegister, $src$$XMMRegister); |
|
1437 |
%} |
|
1438 |
ins_pipe(pipe_slow); |
|
1439 |
%} |
|
1440 |
||
1441 |
instruct divF_mem(regF dst, memory src) %{ |
|
1442 |
predicate((UseSSE>=1) && (UseAVX == 0)); |
|
1443 |
match(Set dst (DivF dst (LoadF src))); |
|
1444 |
||
1445 |
format %{ "divss $dst, $src" %} |
|
1446 |
ins_cost(150); |
|
1447 |
ins_encode %{ |
|
1448 |
__ divss($dst$$XMMRegister, $src$$Address); |
|
1449 |
%} |
|
1450 |
ins_pipe(pipe_slow); |
|
1451 |
%} |
|
1452 |
||
1453 |
instruct divF_imm(regF dst, immF con) %{ |
|
1454 |
predicate((UseSSE>=1) && (UseAVX == 0)); |
|
1455 |
match(Set dst (DivF dst con)); |
|
1456 |
format %{ "divss $dst, [$constantaddress]\t# load from constant table: float=$con" %} |
|
1457 |
ins_cost(150); |
|
1458 |
ins_encode %{ |
|
1459 |
__ divss($dst$$XMMRegister, $constantaddress($con)); |
|
1460 |
%} |
|
1461 |
ins_pipe(pipe_slow); |
|
1462 |
%} |
|
1463 |
||
13294 | 1464 |
instruct divF_reg_reg(regF dst, regF src1, regF src2) %{ |
11429 | 1465 |
predicate(UseAVX > 0); |
1466 |
match(Set dst (DivF src1 src2)); |
|
1467 |
||
1468 |
format %{ "vdivss $dst, $src1, $src2" %} |
|
1469 |
ins_cost(150); |
|
1470 |
ins_encode %{ |
|
1471 |
__ vdivss($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister); |
|
1472 |
%} |
|
1473 |
ins_pipe(pipe_slow); |
|
1474 |
%} |
|
1475 |
||
13294 | 1476 |
instruct divF_reg_mem(regF dst, regF src1, memory src2) %{ |
11429 | 1477 |
predicate(UseAVX > 0); |
1478 |
match(Set dst (DivF src1 (LoadF src2))); |
|
1479 |
||
1480 |
format %{ "vdivss $dst, $src1, $src2" %} |
|
1481 |
ins_cost(150); |
|
1482 |
ins_encode %{ |
|
1483 |
__ vdivss($dst$$XMMRegister, $src1$$XMMRegister, $src2$$Address); |
|
1484 |
%} |
|
1485 |
ins_pipe(pipe_slow); |
|
1486 |
%} |
|
1487 |
||
13294 | 1488 |
instruct divF_reg_imm(regF dst, regF src, immF con) %{ |
11429 | 1489 |
predicate(UseAVX > 0); |
1490 |
match(Set dst (DivF src con)); |
|
1491 |
||
1492 |
format %{ "vdivss $dst, $src, [$constantaddress]\t# load from constant table: float=$con" %} |
|
1493 |
ins_cost(150); |
|
1494 |
ins_encode %{ |
|
1495 |
__ vdivss($dst$$XMMRegister, $src$$XMMRegister, $constantaddress($con)); |
|
1496 |
%} |
|
1497 |
ins_pipe(pipe_slow); |
|
1498 |
%} |
|
1499 |
||
1500 |
instruct divD_reg(regD dst, regD src) %{ |
|
1501 |
predicate((UseSSE>=2) && (UseAVX == 0)); |
|
1502 |
match(Set dst (DivD dst src)); |
|
1503 |
||
1504 |
format %{ "divsd $dst, $src" %} |
|
1505 |
ins_cost(150); |
|
1506 |
ins_encode %{ |
|
1507 |
__ divsd($dst$$XMMRegister, $src$$XMMRegister); |
|
1508 |
%} |
|
1509 |
ins_pipe(pipe_slow); |
|
1510 |
%} |
|
1511 |
||
1512 |
instruct divD_mem(regD dst, memory src) %{ |
|
1513 |
predicate((UseSSE>=2) && (UseAVX == 0)); |
|
1514 |
match(Set dst (DivD dst (LoadD src))); |
|
1515 |
||
1516 |
format %{ "divsd $dst, $src" %} |
|
1517 |
ins_cost(150); |
|
1518 |
ins_encode %{ |
|
1519 |
__ divsd($dst$$XMMRegister, $src$$Address); |
|
1520 |
%} |
|
1521 |
ins_pipe(pipe_slow); |
|
1522 |
%} |
|
1523 |
||
1524 |
instruct divD_imm(regD dst, immD con) %{ |
|
1525 |
predicate((UseSSE>=2) && (UseAVX == 0)); |
|
1526 |
match(Set dst (DivD dst con)); |
|
1527 |
format %{ "divsd $dst, [$constantaddress]\t# load from constant table: double=$con" %} |
|
1528 |
ins_cost(150); |
|
1529 |
ins_encode %{ |
|
1530 |
__ divsd($dst$$XMMRegister, $constantaddress($con)); |
|
1531 |
%} |
|
1532 |
ins_pipe(pipe_slow); |
|
1533 |
%} |
|
1534 |
||
13294 | 1535 |
instruct divD_reg_reg(regD dst, regD src1, regD src2) %{ |
11429 | 1536 |
predicate(UseAVX > 0); |
1537 |
match(Set dst (DivD src1 src2)); |
|
1538 |
||
1539 |
format %{ "vdivsd $dst, $src1, $src2" %} |
|
1540 |
ins_cost(150); |
|
1541 |
ins_encode %{ |
|
1542 |
__ vdivsd($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister); |
|
1543 |
%} |
|
1544 |
ins_pipe(pipe_slow); |
|
1545 |
%} |
|
1546 |
||
13294 | 1547 |
instruct divD_reg_mem(regD dst, regD src1, memory src2) %{ |
11429 | 1548 |
predicate(UseAVX > 0); |
1549 |
match(Set dst (DivD src1 (LoadD src2))); |
|
1550 |
||
1551 |
format %{ "vdivsd $dst, $src1, $src2" %} |
|
1552 |
ins_cost(150); |
|
1553 |
ins_encode %{ |
|
1554 |
__ vdivsd($dst$$XMMRegister, $src1$$XMMRegister, $src2$$Address); |
|
1555 |
%} |
|
1556 |
ins_pipe(pipe_slow); |
|
1557 |
%} |
|
1558 |
||
13294 | 1559 |
instruct divD_reg_imm(regD dst, regD src, immD con) %{ |
11429 | 1560 |
predicate(UseAVX > 0); |
1561 |
match(Set dst (DivD src con)); |
|
1562 |
||
1563 |
format %{ "vdivsd $dst, $src, [$constantaddress]\t# load from constant table: double=$con" %} |
|
1564 |
ins_cost(150); |
|
1565 |
ins_encode %{ |
|
1566 |
__ vdivsd($dst$$XMMRegister, $src$$XMMRegister, $constantaddress($con)); |
|
1567 |
%} |
|
1568 |
ins_pipe(pipe_slow); |
|
1569 |
%} |
|
1570 |
||
1571 |
instruct absF_reg(regF dst) %{ |
|
1572 |
predicate((UseSSE>=1) && (UseAVX == 0)); |
|
1573 |
match(Set dst (AbsF dst)); |
|
1574 |
ins_cost(150); |
|
1575 |
format %{ "andps $dst, [0x7fffffff]\t# abs float by sign masking" %} |
|
1576 |
ins_encode %{ |
|
1577 |
__ andps($dst$$XMMRegister, ExternalAddress(float_signmask())); |
|
1578 |
%} |
|
1579 |
ins_pipe(pipe_slow); |
|
1580 |
%} |
|
1581 |
||
13294 | 1582 |
instruct absF_reg_reg(regF dst, regF src) %{ |
11429 | 1583 |
predicate(UseAVX > 0); |
1584 |
match(Set dst (AbsF src)); |
|
1585 |
ins_cost(150); |
|
1586 |
format %{ "vandps $dst, $src, [0x7fffffff]\t# abs float by sign masking" %} |
|
1587 |
ins_encode %{ |
|
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
1588 |
bool vector256 = false; |
11429 | 1589 |
__ vandps($dst$$XMMRegister, $src$$XMMRegister, |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
1590 |
ExternalAddress(float_signmask()), vector256); |
11429 | 1591 |
%} |
1592 |
ins_pipe(pipe_slow); |
|
1593 |
%} |
|
1594 |
||
1595 |
instruct absD_reg(regD dst) %{ |
|
1596 |
predicate((UseSSE>=2) && (UseAVX == 0)); |
|
1597 |
match(Set dst (AbsD dst)); |
|
1598 |
ins_cost(150); |
|
1599 |
format %{ "andpd $dst, [0x7fffffffffffffff]\t" |
|
1600 |
"# abs double by sign masking" %} |
|
1601 |
ins_encode %{ |
|
1602 |
__ andpd($dst$$XMMRegister, ExternalAddress(double_signmask())); |
|
1603 |
%} |
|
1604 |
ins_pipe(pipe_slow); |
|
1605 |
%} |
|
1606 |
||
13294 | 1607 |
instruct absD_reg_reg(regD dst, regD src) %{ |
11429 | 1608 |
predicate(UseAVX > 0); |
1609 |
match(Set dst (AbsD src)); |
|
1610 |
ins_cost(150); |
|
1611 |
format %{ "vandpd $dst, $src, [0x7fffffffffffffff]\t" |
|
1612 |
"# abs double by sign masking" %} |
|
1613 |
ins_encode %{ |
|
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
1614 |
bool vector256 = false; |
11429 | 1615 |
__ vandpd($dst$$XMMRegister, $src$$XMMRegister, |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
1616 |
ExternalAddress(double_signmask()), vector256); |
11429 | 1617 |
%} |
1618 |
ins_pipe(pipe_slow); |
|
1619 |
%} |
|
1620 |
||
1621 |
instruct negF_reg(regF dst) %{ |
|
1622 |
predicate((UseSSE>=1) && (UseAVX == 0)); |
|
1623 |
match(Set dst (NegF dst)); |
|
1624 |
ins_cost(150); |
|
1625 |
format %{ "xorps $dst, [0x80000000]\t# neg float by sign flipping" %} |
|
1626 |
ins_encode %{ |
|
1627 |
__ xorps($dst$$XMMRegister, ExternalAddress(float_signflip())); |
|
1628 |
%} |
|
1629 |
ins_pipe(pipe_slow); |
|
1630 |
%} |
|
1631 |
||
13294 | 1632 |
instruct negF_reg_reg(regF dst, regF src) %{ |
11429 | 1633 |
predicate(UseAVX > 0); |
1634 |
match(Set dst (NegF src)); |
|
1635 |
ins_cost(150); |
|
1636 |
format %{ "vxorps $dst, $src, [0x80000000]\t# neg float by sign flipping" %} |
|
1637 |
ins_encode %{ |
|
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
1638 |
bool vector256 = false; |
11429 | 1639 |
__ vxorps($dst$$XMMRegister, $src$$XMMRegister, |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
1640 |
ExternalAddress(float_signflip()), vector256); |
11429 | 1641 |
%} |
1642 |
ins_pipe(pipe_slow); |
|
1643 |
%} |
|
1644 |
||
1645 |
instruct negD_reg(regD dst) %{ |
|
1646 |
predicate((UseSSE>=2) && (UseAVX == 0)); |
|
1647 |
match(Set dst (NegD dst)); |
|
1648 |
ins_cost(150); |
|
1649 |
format %{ "xorpd $dst, [0x8000000000000000]\t" |
|
1650 |
"# neg double by sign flipping" %} |
|
1651 |
ins_encode %{ |
|
1652 |
__ xorpd($dst$$XMMRegister, ExternalAddress(double_signflip())); |
|
1653 |
%} |
|
1654 |
ins_pipe(pipe_slow); |
|
1655 |
%} |
|
1656 |
||
13294 | 1657 |
instruct negD_reg_reg(regD dst, regD src) %{ |
11429 | 1658 |
predicate(UseAVX > 0); |
1659 |
match(Set dst (NegD src)); |
|
1660 |
ins_cost(150); |
|
1661 |
format %{ "vxorpd $dst, $src, [0x8000000000000000]\t" |
|
1662 |
"# neg double by sign flipping" %} |
|
1663 |
ins_encode %{ |
|
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
1664 |
bool vector256 = false; |
11429 | 1665 |
__ vxorpd($dst$$XMMRegister, $src$$XMMRegister, |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
1666 |
ExternalAddress(double_signflip()), vector256); |
11429 | 1667 |
%} |
1668 |
ins_pipe(pipe_slow); |
|
1669 |
%} |
|
1670 |
||
1671 |
instruct sqrtF_reg(regF dst, regF src) %{ |
|
1672 |
predicate(UseSSE>=1); |
|
1673 |
match(Set dst (ConvD2F (SqrtD (ConvF2D src)))); |
|
1674 |
||
1675 |
format %{ "sqrtss $dst, $src" %} |
|
1676 |
ins_cost(150); |
|
1677 |
ins_encode %{ |
|
1678 |
__ sqrtss($dst$$XMMRegister, $src$$XMMRegister); |
|
1679 |
%} |
|
1680 |
ins_pipe(pipe_slow); |
|
1681 |
%} |
|
1682 |
||
1683 |
instruct sqrtF_mem(regF dst, memory src) %{ |
|
1684 |
predicate(UseSSE>=1); |
|
1685 |
match(Set dst (ConvD2F (SqrtD (ConvF2D (LoadF src))))); |
|
1686 |
||
1687 |
format %{ "sqrtss $dst, $src" %} |
|
1688 |
ins_cost(150); |
|
1689 |
ins_encode %{ |
|
1690 |
__ sqrtss($dst$$XMMRegister, $src$$Address); |
|
1691 |
%} |
|
1692 |
ins_pipe(pipe_slow); |
|
1693 |
%} |
|
1694 |
||
1695 |
instruct sqrtF_imm(regF dst, immF con) %{ |
|
1696 |
predicate(UseSSE>=1); |
|
1697 |
match(Set dst (ConvD2F (SqrtD (ConvF2D con)))); |
|
1698 |
format %{ "sqrtss $dst, [$constantaddress]\t# load from constant table: float=$con" %} |
|
1699 |
ins_cost(150); |
|
1700 |
ins_encode %{ |
|
1701 |
__ sqrtss($dst$$XMMRegister, $constantaddress($con)); |
|
1702 |
%} |
|
1703 |
ins_pipe(pipe_slow); |
|
1704 |
%} |
|
1705 |
||
1706 |
instruct sqrtD_reg(regD dst, regD src) %{ |
|
1707 |
predicate(UseSSE>=2); |
|
1708 |
match(Set dst (SqrtD src)); |
|
1709 |
||
1710 |
format %{ "sqrtsd $dst, $src" %} |
|
1711 |
ins_cost(150); |
|
1712 |
ins_encode %{ |
|
1713 |
__ sqrtsd($dst$$XMMRegister, $src$$XMMRegister); |
|
1714 |
%} |
|
1715 |
ins_pipe(pipe_slow); |
|
1716 |
%} |
|
1717 |
||
1718 |
instruct sqrtD_mem(regD dst, memory src) %{ |
|
1719 |
predicate(UseSSE>=2); |
|
1720 |
match(Set dst (SqrtD (LoadD src))); |
|
1721 |
||
1722 |
format %{ "sqrtsd $dst, $src" %} |
|
1723 |
ins_cost(150); |
|
1724 |
ins_encode %{ |
|
1725 |
__ sqrtsd($dst$$XMMRegister, $src$$Address); |
|
1726 |
%} |
|
1727 |
ins_pipe(pipe_slow); |
|
1728 |
%} |
|
1729 |
||
1730 |
instruct sqrtD_imm(regD dst, immD con) %{ |
|
1731 |
predicate(UseSSE>=2); |
|
1732 |
match(Set dst (SqrtD con)); |
|
1733 |
format %{ "sqrtsd $dst, [$constantaddress]\t# load from constant table: double=$con" %} |
|
1734 |
ins_cost(150); |
|
1735 |
ins_encode %{ |
|
1736 |
__ sqrtsd($dst$$XMMRegister, $constantaddress($con)); |
|
1737 |
%} |
|
1738 |
ins_pipe(pipe_slow); |
|
1739 |
%} |
|
1740 |
||
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1741 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1742 |
// ====================VECTOR INSTRUCTIONS===================================== |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1743 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1744 |
// Load vectors (4 bytes long) |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1745 |
instruct loadV4(vecS dst, memory mem) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1746 |
predicate(n->as_LoadVector()->memory_size() == 4); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1747 |
match(Set dst (LoadVector mem)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1748 |
ins_cost(125); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1749 |
format %{ "movd $dst,$mem\t! load vector (4 bytes)" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1750 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1751 |
__ movdl($dst$$XMMRegister, $mem$$Address); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1752 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1753 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1754 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1755 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1756 |
// Load vectors (8 bytes long) |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1757 |
instruct loadV8(vecD dst, memory mem) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1758 |
predicate(n->as_LoadVector()->memory_size() == 8); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1759 |
match(Set dst (LoadVector mem)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1760 |
ins_cost(125); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1761 |
format %{ "movq $dst,$mem\t! load vector (8 bytes)" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1762 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1763 |
__ movq($dst$$XMMRegister, $mem$$Address); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1764 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1765 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1766 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1767 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1768 |
// Load vectors (16 bytes long) |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1769 |
instruct loadV16(vecX dst, memory mem) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1770 |
predicate(n->as_LoadVector()->memory_size() == 16); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1771 |
match(Set dst (LoadVector mem)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1772 |
ins_cost(125); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1773 |
format %{ "movdqu $dst,$mem\t! load vector (16 bytes)" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1774 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1775 |
__ movdqu($dst$$XMMRegister, $mem$$Address); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1776 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1777 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1778 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1779 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1780 |
// Load vectors (32 bytes long) |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1781 |
instruct loadV32(vecY dst, memory mem) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1782 |
predicate(n->as_LoadVector()->memory_size() == 32); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1783 |
match(Set dst (LoadVector mem)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1784 |
ins_cost(125); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1785 |
format %{ "vmovdqu $dst,$mem\t! load vector (32 bytes)" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1786 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1787 |
__ vmovdqu($dst$$XMMRegister, $mem$$Address); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1788 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1789 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1790 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1791 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1792 |
// Store vectors |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1793 |
instruct storeV4(memory mem, vecS src) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1794 |
predicate(n->as_StoreVector()->memory_size() == 4); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1795 |
match(Set mem (StoreVector mem src)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1796 |
ins_cost(145); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1797 |
format %{ "movd $mem,$src\t! store vector (4 bytes)" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1798 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1799 |
__ movdl($mem$$Address, $src$$XMMRegister); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1800 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1801 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1802 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1803 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1804 |
instruct storeV8(memory mem, vecD src) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1805 |
predicate(n->as_StoreVector()->memory_size() == 8); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1806 |
match(Set mem (StoreVector mem src)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1807 |
ins_cost(145); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1808 |
format %{ "movq $mem,$src\t! store vector (8 bytes)" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1809 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1810 |
__ movq($mem$$Address, $src$$XMMRegister); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1811 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1812 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1813 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1814 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1815 |
instruct storeV16(memory mem, vecX src) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1816 |
predicate(n->as_StoreVector()->memory_size() == 16); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1817 |
match(Set mem (StoreVector mem src)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1818 |
ins_cost(145); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1819 |
format %{ "movdqu $mem,$src\t! store vector (16 bytes)" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1820 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1821 |
__ movdqu($mem$$Address, $src$$XMMRegister); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1822 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1823 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1824 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1825 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1826 |
instruct storeV32(memory mem, vecY src) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1827 |
predicate(n->as_StoreVector()->memory_size() == 32); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1828 |
match(Set mem (StoreVector mem src)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1829 |
ins_cost(145); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1830 |
format %{ "vmovdqu $mem,$src\t! store vector (32 bytes)" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1831 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1832 |
__ vmovdqu($mem$$Address, $src$$XMMRegister); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1833 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1834 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1835 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1836 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1837 |
// Replicate byte scalar to be vector |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1838 |
instruct Repl4B(vecS dst, rRegI src) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1839 |
predicate(n->as_Vector()->length() == 4); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1840 |
match(Set dst (ReplicateB src)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1841 |
format %{ "movd $dst,$src\n\t" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1842 |
"punpcklbw $dst,$dst\n\t" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1843 |
"pshuflw $dst,$dst,0x00\t! replicate4B" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1844 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1845 |
__ movdl($dst$$XMMRegister, $src$$Register); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1846 |
__ punpcklbw($dst$$XMMRegister, $dst$$XMMRegister); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1847 |
__ pshuflw($dst$$XMMRegister, $dst$$XMMRegister, 0x00); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1848 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1849 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1850 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1851 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1852 |
instruct Repl8B(vecD dst, rRegI src) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1853 |
predicate(n->as_Vector()->length() == 8); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1854 |
match(Set dst (ReplicateB src)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1855 |
format %{ "movd $dst,$src\n\t" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1856 |
"punpcklbw $dst,$dst\n\t" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1857 |
"pshuflw $dst,$dst,0x00\t! replicate8B" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1858 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1859 |
__ movdl($dst$$XMMRegister, $src$$Register); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1860 |
__ punpcklbw($dst$$XMMRegister, $dst$$XMMRegister); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1861 |
__ pshuflw($dst$$XMMRegister, $dst$$XMMRegister, 0x00); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1862 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1863 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1864 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1865 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1866 |
instruct Repl16B(vecX dst, rRegI src) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1867 |
predicate(n->as_Vector()->length() == 16); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1868 |
match(Set dst (ReplicateB src)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1869 |
format %{ "movd $dst,$src\n\t" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1870 |
"punpcklbw $dst,$dst\n\t" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1871 |
"pshuflw $dst,$dst,0x00\n\t" |
13294 | 1872 |
"punpcklqdq $dst,$dst\t! replicate16B" %} |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1873 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1874 |
__ movdl($dst$$XMMRegister, $src$$Register); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1875 |
__ punpcklbw($dst$$XMMRegister, $dst$$XMMRegister); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1876 |
__ pshuflw($dst$$XMMRegister, $dst$$XMMRegister, 0x00); |
13294 | 1877 |
__ punpcklqdq($dst$$XMMRegister, $dst$$XMMRegister); |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1878 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1879 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1880 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1881 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1882 |
instruct Repl32B(vecY dst, rRegI src) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1883 |
predicate(n->as_Vector()->length() == 32); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1884 |
match(Set dst (ReplicateB src)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1885 |
format %{ "movd $dst,$src\n\t" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1886 |
"punpcklbw $dst,$dst\n\t" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1887 |
"pshuflw $dst,$dst,0x00\n\t" |
13294 | 1888 |
"punpcklqdq $dst,$dst\n\t" |
1889 |
"vinserti128h $dst,$dst,$dst\t! replicate32B" %} |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1890 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1891 |
__ movdl($dst$$XMMRegister, $src$$Register); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1892 |
__ punpcklbw($dst$$XMMRegister, $dst$$XMMRegister); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1893 |
__ pshuflw($dst$$XMMRegister, $dst$$XMMRegister, 0x00); |
13294 | 1894 |
__ punpcklqdq($dst$$XMMRegister, $dst$$XMMRegister); |
1895 |
__ vinserti128h($dst$$XMMRegister, $dst$$XMMRegister, $dst$$XMMRegister); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1896 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1897 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1898 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1899 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1900 |
// Replicate byte scalar immediate to be vector by loading from const table. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1901 |
instruct Repl4B_imm(vecS dst, immI con) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1902 |
predicate(n->as_Vector()->length() == 4); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1903 |
match(Set dst (ReplicateB con)); |
13294 | 1904 |
format %{ "movdl $dst,[$constantaddress]\t! replicate4B($con)" %} |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1905 |
ins_encode %{ |
13294 | 1906 |
__ movdl($dst$$XMMRegister, $constantaddress(replicate4_imm($con$$constant, 1))); |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1907 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1908 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1909 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1910 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1911 |
instruct Repl8B_imm(vecD dst, immI con) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1912 |
predicate(n->as_Vector()->length() == 8); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1913 |
match(Set dst (ReplicateB con)); |
13294 | 1914 |
format %{ "movq $dst,[$constantaddress]\t! replicate8B($con)" %} |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1915 |
ins_encode %{ |
13294 | 1916 |
__ movq($dst$$XMMRegister, $constantaddress(replicate8_imm($con$$constant, 1))); |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1917 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1918 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1919 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1920 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1921 |
instruct Repl16B_imm(vecX dst, immI con) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1922 |
predicate(n->as_Vector()->length() == 16); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1923 |
match(Set dst (ReplicateB con)); |
13294 | 1924 |
format %{ "movq $dst,[$constantaddress]\n\t" |
1925 |
"punpcklqdq $dst,$dst\t! replicate16B($con)" %} |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1926 |
ins_encode %{ |
13294 | 1927 |
__ movq($dst$$XMMRegister, $constantaddress(replicate8_imm($con$$constant, 1))); |
1928 |
__ punpcklqdq($dst$$XMMRegister, $dst$$XMMRegister); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1929 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1930 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1931 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1932 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1933 |
instruct Repl32B_imm(vecY dst, immI con) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1934 |
predicate(n->as_Vector()->length() == 32); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1935 |
match(Set dst (ReplicateB con)); |
13294 | 1936 |
format %{ "movq $dst,[$constantaddress]\n\t" |
1937 |
"punpcklqdq $dst,$dst\n\t" |
|
1938 |
"vinserti128h $dst,$dst,$dst\t! lreplicate32B($con)" %} |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1939 |
ins_encode %{ |
13294 | 1940 |
__ movq($dst$$XMMRegister, $constantaddress(replicate8_imm($con$$constant, 1))); |
1941 |
__ punpcklqdq($dst$$XMMRegister, $dst$$XMMRegister); |
|
1942 |
__ vinserti128h($dst$$XMMRegister, $dst$$XMMRegister, $dst$$XMMRegister); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1943 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1944 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1945 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1946 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1947 |
// Replicate byte scalar zero to be vector |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1948 |
instruct Repl4B_zero(vecS dst, immI0 zero) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1949 |
predicate(n->as_Vector()->length() == 4); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1950 |
match(Set dst (ReplicateB zero)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1951 |
format %{ "pxor $dst,$dst\t! replicate4B zero" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1952 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1953 |
__ pxor($dst$$XMMRegister, $dst$$XMMRegister); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1954 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1955 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1956 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1957 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1958 |
instruct Repl8B_zero(vecD dst, immI0 zero) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1959 |
predicate(n->as_Vector()->length() == 8); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1960 |
match(Set dst (ReplicateB zero)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1961 |
format %{ "pxor $dst,$dst\t! replicate8B zero" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1962 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1963 |
__ pxor($dst$$XMMRegister, $dst$$XMMRegister); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1964 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1965 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1966 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1967 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1968 |
instruct Repl16B_zero(vecX dst, immI0 zero) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1969 |
predicate(n->as_Vector()->length() == 16); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1970 |
match(Set dst (ReplicateB zero)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1971 |
format %{ "pxor $dst,$dst\t! replicate16B zero" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1972 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1973 |
__ pxor($dst$$XMMRegister, $dst$$XMMRegister); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1974 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1975 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1976 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1977 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1978 |
instruct Repl32B_zero(vecY dst, immI0 zero) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1979 |
predicate(n->as_Vector()->length() == 32); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1980 |
match(Set dst (ReplicateB zero)); |
13294 | 1981 |
format %{ "vpxor $dst,$dst,$dst\t! replicate32B zero" %} |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1982 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1983 |
// Use vxorpd since AVX does not have vpxor for 256-bit (AVX2 will have it). |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1984 |
bool vector256 = true; |
13294 | 1985 |
__ vpxor($dst$$XMMRegister, $dst$$XMMRegister, $dst$$XMMRegister, vector256); |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1986 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1987 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1988 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1989 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1990 |
// Replicate char/short (2 byte) scalar to be vector |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1991 |
instruct Repl2S(vecS dst, rRegI src) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1992 |
predicate(n->as_Vector()->length() == 2); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1993 |
match(Set dst (ReplicateS src)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1994 |
format %{ "movd $dst,$src\n\t" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1995 |
"pshuflw $dst,$dst,0x00\t! replicate2S" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1996 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1997 |
__ movdl($dst$$XMMRegister, $src$$Register); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1998 |
__ pshuflw($dst$$XMMRegister, $dst$$XMMRegister, 0x00); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
1999 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2000 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2001 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2002 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2003 |
instruct Repl4S(vecD dst, rRegI src) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2004 |
predicate(n->as_Vector()->length() == 4); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2005 |
match(Set dst (ReplicateS src)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2006 |
format %{ "movd $dst,$src\n\t" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2007 |
"pshuflw $dst,$dst,0x00\t! replicate4S" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2008 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2009 |
__ movdl($dst$$XMMRegister, $src$$Register); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2010 |
__ pshuflw($dst$$XMMRegister, $dst$$XMMRegister, 0x00); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2011 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2012 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2013 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2014 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2015 |
instruct Repl8S(vecX dst, rRegI src) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2016 |
predicate(n->as_Vector()->length() == 8); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2017 |
match(Set dst (ReplicateS src)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2018 |
format %{ "movd $dst,$src\n\t" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2019 |
"pshuflw $dst,$dst,0x00\n\t" |
13294 | 2020 |
"punpcklqdq $dst,$dst\t! replicate8S" %} |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2021 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2022 |
__ movdl($dst$$XMMRegister, $src$$Register); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2023 |
__ pshuflw($dst$$XMMRegister, $dst$$XMMRegister, 0x00); |
13294 | 2024 |
__ punpcklqdq($dst$$XMMRegister, $dst$$XMMRegister); |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2025 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2026 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2027 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2028 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2029 |
instruct Repl16S(vecY dst, rRegI src) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2030 |
predicate(n->as_Vector()->length() == 16); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2031 |
match(Set dst (ReplicateS src)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2032 |
format %{ "movd $dst,$src\n\t" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2033 |
"pshuflw $dst,$dst,0x00\n\t" |
13294 | 2034 |
"punpcklqdq $dst,$dst\n\t" |
2035 |
"vinserti128h $dst,$dst,$dst\t! replicate16S" %} |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2036 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2037 |
__ movdl($dst$$XMMRegister, $src$$Register); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2038 |
__ pshuflw($dst$$XMMRegister, $dst$$XMMRegister, 0x00); |
13294 | 2039 |
__ punpcklqdq($dst$$XMMRegister, $dst$$XMMRegister); |
2040 |
__ vinserti128h($dst$$XMMRegister, $dst$$XMMRegister, $dst$$XMMRegister); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2041 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2042 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2043 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2044 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2045 |
// Replicate char/short (2 byte) scalar immediate to be vector by loading from const table. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2046 |
instruct Repl2S_imm(vecS dst, immI con) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2047 |
predicate(n->as_Vector()->length() == 2); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2048 |
match(Set dst (ReplicateS con)); |
13294 | 2049 |
format %{ "movdl $dst,[$constantaddress]\t! replicate2S($con)" %} |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2050 |
ins_encode %{ |
13294 | 2051 |
__ movdl($dst$$XMMRegister, $constantaddress(replicate4_imm($con$$constant, 2))); |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2052 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2053 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2054 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2055 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2056 |
instruct Repl4S_imm(vecD dst, immI con) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2057 |
predicate(n->as_Vector()->length() == 4); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2058 |
match(Set dst (ReplicateS con)); |
13294 | 2059 |
format %{ "movq $dst,[$constantaddress]\t! replicate4S($con)" %} |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2060 |
ins_encode %{ |
13294 | 2061 |
__ movq($dst$$XMMRegister, $constantaddress(replicate8_imm($con$$constant, 2))); |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2062 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2063 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2064 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2065 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2066 |
instruct Repl8S_imm(vecX dst, immI con) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2067 |
predicate(n->as_Vector()->length() == 8); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2068 |
match(Set dst (ReplicateS con)); |
13294 | 2069 |
format %{ "movq $dst,[$constantaddress]\n\t" |
2070 |
"punpcklqdq $dst,$dst\t! replicate8S($con)" %} |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2071 |
ins_encode %{ |
13294 | 2072 |
__ movq($dst$$XMMRegister, $constantaddress(replicate8_imm($con$$constant, 2))); |
2073 |
__ punpcklqdq($dst$$XMMRegister, $dst$$XMMRegister); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2074 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2075 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2076 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2077 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2078 |
instruct Repl16S_imm(vecY dst, immI con) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2079 |
predicate(n->as_Vector()->length() == 16); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2080 |
match(Set dst (ReplicateS con)); |
13294 | 2081 |
format %{ "movq $dst,[$constantaddress]\n\t" |
2082 |
"punpcklqdq $dst,$dst\n\t" |
|
2083 |
"vinserti128h $dst,$dst,$dst\t! replicate16S($con)" %} |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2084 |
ins_encode %{ |
13294 | 2085 |
__ movq($dst$$XMMRegister, $constantaddress(replicate8_imm($con$$constant, 2))); |
2086 |
__ punpcklqdq($dst$$XMMRegister, $dst$$XMMRegister); |
|
2087 |
__ vinserti128h($dst$$XMMRegister, $dst$$XMMRegister, $dst$$XMMRegister); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2088 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2089 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2090 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2091 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2092 |
// Replicate char/short (2 byte) scalar zero to be vector |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2093 |
instruct Repl2S_zero(vecS dst, immI0 zero) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2094 |
predicate(n->as_Vector()->length() == 2); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2095 |
match(Set dst (ReplicateS zero)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2096 |
format %{ "pxor $dst,$dst\t! replicate2S zero" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2097 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2098 |
__ pxor($dst$$XMMRegister, $dst$$XMMRegister); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2099 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2100 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2101 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2102 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2103 |
instruct Repl4S_zero(vecD dst, immI0 zero) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2104 |
predicate(n->as_Vector()->length() == 4); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2105 |
match(Set dst (ReplicateS zero)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2106 |
format %{ "pxor $dst,$dst\t! replicate4S zero" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2107 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2108 |
__ pxor($dst$$XMMRegister, $dst$$XMMRegister); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2109 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2110 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2111 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2112 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2113 |
instruct Repl8S_zero(vecX dst, immI0 zero) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2114 |
predicate(n->as_Vector()->length() == 8); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2115 |
match(Set dst (ReplicateS zero)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2116 |
format %{ "pxor $dst,$dst\t! replicate8S zero" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2117 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2118 |
__ pxor($dst$$XMMRegister, $dst$$XMMRegister); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2119 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2120 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2121 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2122 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2123 |
instruct Repl16S_zero(vecY dst, immI0 zero) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2124 |
predicate(n->as_Vector()->length() == 16); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2125 |
match(Set dst (ReplicateS zero)); |
13294 | 2126 |
format %{ "vpxor $dst,$dst,$dst\t! replicate16S zero" %} |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2127 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2128 |
// Use vxorpd since AVX does not have vpxor for 256-bit (AVX2 will have it). |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2129 |
bool vector256 = true; |
13294 | 2130 |
__ vpxor($dst$$XMMRegister, $dst$$XMMRegister, $dst$$XMMRegister, vector256); |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2131 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2132 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2133 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2134 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2135 |
// Replicate integer (4 byte) scalar to be vector |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2136 |
instruct Repl2I(vecD dst, rRegI src) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2137 |
predicate(n->as_Vector()->length() == 2); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2138 |
match(Set dst (ReplicateI src)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2139 |
format %{ "movd $dst,$src\n\t" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2140 |
"pshufd $dst,$dst,0x00\t! replicate2I" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2141 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2142 |
__ movdl($dst$$XMMRegister, $src$$Register); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2143 |
__ pshufd($dst$$XMMRegister, $dst$$XMMRegister, 0x00); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2144 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2145 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2146 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2147 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2148 |
instruct Repl4I(vecX dst, rRegI src) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2149 |
predicate(n->as_Vector()->length() == 4); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2150 |
match(Set dst (ReplicateI src)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2151 |
format %{ "movd $dst,$src\n\t" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2152 |
"pshufd $dst,$dst,0x00\t! replicate4I" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2153 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2154 |
__ movdl($dst$$XMMRegister, $src$$Register); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2155 |
__ pshufd($dst$$XMMRegister, $dst$$XMMRegister, 0x00); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2156 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2157 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2158 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2159 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2160 |
instruct Repl8I(vecY dst, rRegI src) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2161 |
predicate(n->as_Vector()->length() == 8); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2162 |
match(Set dst (ReplicateI src)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2163 |
format %{ "movd $dst,$src\n\t" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2164 |
"pshufd $dst,$dst,0x00\n\t" |
13294 | 2165 |
"vinserti128h $dst,$dst,$dst\t! replicate8I" %} |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2166 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2167 |
__ movdl($dst$$XMMRegister, $src$$Register); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2168 |
__ pshufd($dst$$XMMRegister, $dst$$XMMRegister, 0x00); |
13294 | 2169 |
__ vinserti128h($dst$$XMMRegister, $dst$$XMMRegister, $dst$$XMMRegister); |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2170 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2171 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2172 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2173 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2174 |
// Replicate integer (4 byte) scalar immediate to be vector by loading from const table. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2175 |
instruct Repl2I_imm(vecD dst, immI con) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2176 |
predicate(n->as_Vector()->length() == 2); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2177 |
match(Set dst (ReplicateI con)); |
13294 | 2178 |
format %{ "movq $dst,[$constantaddress]\t! replicate2I($con)" %} |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2179 |
ins_encode %{ |
13294 | 2180 |
__ movq($dst$$XMMRegister, $constantaddress(replicate8_imm($con$$constant, 4))); |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2181 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2182 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2183 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2184 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2185 |
instruct Repl4I_imm(vecX dst, immI con) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2186 |
predicate(n->as_Vector()->length() == 4); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2187 |
match(Set dst (ReplicateI con)); |
13294 | 2188 |
format %{ "movq $dst,[$constantaddress]\t! replicate4I($con)\n\t" |
2189 |
"punpcklqdq $dst,$dst" %} |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2190 |
ins_encode %{ |
13294 | 2191 |
__ movq($dst$$XMMRegister, $constantaddress(replicate8_imm($con$$constant, 4))); |
2192 |
__ punpcklqdq($dst$$XMMRegister, $dst$$XMMRegister); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2193 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2194 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2195 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2196 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2197 |
instruct Repl8I_imm(vecY dst, immI con) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2198 |
predicate(n->as_Vector()->length() == 8); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2199 |
match(Set dst (ReplicateI con)); |
13294 | 2200 |
format %{ "movq $dst,[$constantaddress]\t! replicate8I($con)\n\t" |
2201 |
"punpcklqdq $dst,$dst\n\t" |
|
2202 |
"vinserti128h $dst,$dst,$dst" %} |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2203 |
ins_encode %{ |
13294 | 2204 |
__ movq($dst$$XMMRegister, $constantaddress(replicate8_imm($con$$constant, 4))); |
2205 |
__ punpcklqdq($dst$$XMMRegister, $dst$$XMMRegister); |
|
2206 |
__ vinserti128h($dst$$XMMRegister, $dst$$XMMRegister, $dst$$XMMRegister); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2207 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2208 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2209 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2210 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2211 |
// Integer could be loaded into xmm register directly from memory. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2212 |
instruct Repl2I_mem(vecD dst, memory mem) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2213 |
predicate(n->as_Vector()->length() == 2); |
13294 | 2214 |
match(Set dst (ReplicateI (LoadI mem))); |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2215 |
format %{ "movd $dst,$mem\n\t" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2216 |
"pshufd $dst,$dst,0x00\t! replicate2I" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2217 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2218 |
__ movdl($dst$$XMMRegister, $mem$$Address); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2219 |
__ pshufd($dst$$XMMRegister, $dst$$XMMRegister, 0x00); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2220 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2221 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2222 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2223 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2224 |
instruct Repl4I_mem(vecX dst, memory mem) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2225 |
predicate(n->as_Vector()->length() == 4); |
13294 | 2226 |
match(Set dst (ReplicateI (LoadI mem))); |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2227 |
format %{ "movd $dst,$mem\n\t" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2228 |
"pshufd $dst,$dst,0x00\t! replicate4I" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2229 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2230 |
__ movdl($dst$$XMMRegister, $mem$$Address); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2231 |
__ pshufd($dst$$XMMRegister, $dst$$XMMRegister, 0x00); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2232 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2233 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2234 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2235 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2236 |
instruct Repl8I_mem(vecY dst, memory mem) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2237 |
predicate(n->as_Vector()->length() == 8); |
13294 | 2238 |
match(Set dst (ReplicateI (LoadI mem))); |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2239 |
format %{ "movd $dst,$mem\n\t" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2240 |
"pshufd $dst,$dst,0x00\n\t" |
13294 | 2241 |
"vinserti128h $dst,$dst,$dst\t! replicate8I" %} |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2242 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2243 |
__ movdl($dst$$XMMRegister, $mem$$Address); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2244 |
__ pshufd($dst$$XMMRegister, $dst$$XMMRegister, 0x00); |
13294 | 2245 |
__ vinserti128h($dst$$XMMRegister, $dst$$XMMRegister, $dst$$XMMRegister); |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2246 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2247 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2248 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2249 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2250 |
// Replicate integer (4 byte) scalar zero to be vector |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2251 |
instruct Repl2I_zero(vecD dst, immI0 zero) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2252 |
predicate(n->as_Vector()->length() == 2); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2253 |
match(Set dst (ReplicateI zero)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2254 |
format %{ "pxor $dst,$dst\t! replicate2I" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2255 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2256 |
__ pxor($dst$$XMMRegister, $dst$$XMMRegister); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2257 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2258 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2259 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2260 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2261 |
instruct Repl4I_zero(vecX dst, immI0 zero) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2262 |
predicate(n->as_Vector()->length() == 4); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2263 |
match(Set dst (ReplicateI zero)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2264 |
format %{ "pxor $dst,$dst\t! replicate4I zero)" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2265 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2266 |
__ pxor($dst$$XMMRegister, $dst$$XMMRegister); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2267 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2268 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2269 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2270 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2271 |
instruct Repl8I_zero(vecY dst, immI0 zero) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2272 |
predicate(n->as_Vector()->length() == 8); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2273 |
match(Set dst (ReplicateI zero)); |
13294 | 2274 |
format %{ "vpxor $dst,$dst,$dst\t! replicate8I zero" %} |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2275 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2276 |
// Use vxorpd since AVX does not have vpxor for 256-bit (AVX2 will have it). |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2277 |
bool vector256 = true; |
13294 | 2278 |
__ vpxor($dst$$XMMRegister, $dst$$XMMRegister, $dst$$XMMRegister, vector256); |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2279 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2280 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2281 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2282 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2283 |
// Replicate long (8 byte) scalar to be vector |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2284 |
#ifdef _LP64 |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2285 |
instruct Repl2L(vecX dst, rRegL src) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2286 |
predicate(n->as_Vector()->length() == 2); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2287 |
match(Set dst (ReplicateL src)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2288 |
format %{ "movdq $dst,$src\n\t" |
13294 | 2289 |
"punpcklqdq $dst,$dst\t! replicate2L" %} |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2290 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2291 |
__ movdq($dst$$XMMRegister, $src$$Register); |
13294 | 2292 |
__ punpcklqdq($dst$$XMMRegister, $dst$$XMMRegister); |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2293 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2294 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2295 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2296 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2297 |
instruct Repl4L(vecY dst, rRegL src) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2298 |
predicate(n->as_Vector()->length() == 4); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2299 |
match(Set dst (ReplicateL src)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2300 |
format %{ "movdq $dst,$src\n\t" |
13294 | 2301 |
"punpcklqdq $dst,$dst\n\t" |
2302 |
"vinserti128h $dst,$dst,$dst\t! replicate4L" %} |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2303 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2304 |
__ movdq($dst$$XMMRegister, $src$$Register); |
13294 | 2305 |
__ punpcklqdq($dst$$XMMRegister, $dst$$XMMRegister); |
2306 |
__ vinserti128h($dst$$XMMRegister, $dst$$XMMRegister, $dst$$XMMRegister); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2307 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2308 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2309 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2310 |
#else // _LP64 |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2311 |
instruct Repl2L(vecX dst, eRegL src, regD tmp) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2312 |
predicate(n->as_Vector()->length() == 2); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2313 |
match(Set dst (ReplicateL src)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2314 |
effect(TEMP dst, USE src, TEMP tmp); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2315 |
format %{ "movdl $dst,$src.lo\n\t" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2316 |
"movdl $tmp,$src.hi\n\t" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2317 |
"punpckldq $dst,$tmp\n\t" |
13294 | 2318 |
"punpcklqdq $dst,$dst\t! replicate2L"%} |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2319 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2320 |
__ movdl($dst$$XMMRegister, $src$$Register); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2321 |
__ movdl($tmp$$XMMRegister, HIGH_FROM_LOW($src$$Register)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2322 |
__ punpckldq($dst$$XMMRegister, $tmp$$XMMRegister); |
13294 | 2323 |
__ punpcklqdq($dst$$XMMRegister, $dst$$XMMRegister); |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2324 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2325 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2326 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2327 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2328 |
instruct Repl4L(vecY dst, eRegL src, regD tmp) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2329 |
predicate(n->as_Vector()->length() == 4); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2330 |
match(Set dst (ReplicateL src)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2331 |
effect(TEMP dst, USE src, TEMP tmp); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2332 |
format %{ "movdl $dst,$src.lo\n\t" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2333 |
"movdl $tmp,$src.hi\n\t" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2334 |
"punpckldq $dst,$tmp\n\t" |
13294 | 2335 |
"punpcklqdq $dst,$dst\n\t" |
2336 |
"vinserti128h $dst,$dst,$dst\t! replicate4L" %} |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2337 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2338 |
__ movdl($dst$$XMMRegister, $src$$Register); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2339 |
__ movdl($tmp$$XMMRegister, HIGH_FROM_LOW($src$$Register)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2340 |
__ punpckldq($dst$$XMMRegister, $tmp$$XMMRegister); |
13294 | 2341 |
__ punpcklqdq($dst$$XMMRegister, $dst$$XMMRegister); |
2342 |
__ vinserti128h($dst$$XMMRegister, $dst$$XMMRegister, $dst$$XMMRegister); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2343 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2344 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2345 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2346 |
#endif // _LP64 |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2347 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2348 |
// Replicate long (8 byte) scalar immediate to be vector by loading from const table. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2349 |
instruct Repl2L_imm(vecX dst, immL con) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2350 |
predicate(n->as_Vector()->length() == 2); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2351 |
match(Set dst (ReplicateL con)); |
13294 | 2352 |
format %{ "movq $dst,[$constantaddress]\n\t" |
2353 |
"punpcklqdq $dst,$dst\t! replicate2L($con)" %} |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2354 |
ins_encode %{ |
13294 | 2355 |
__ movq($dst$$XMMRegister, $constantaddress($con)); |
2356 |
__ punpcklqdq($dst$$XMMRegister, $dst$$XMMRegister); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2357 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2358 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2359 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2360 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2361 |
instruct Repl4L_imm(vecY dst, immL con) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2362 |
predicate(n->as_Vector()->length() == 4); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2363 |
match(Set dst (ReplicateL con)); |
13294 | 2364 |
format %{ "movq $dst,[$constantaddress]\n\t" |
2365 |
"punpcklqdq $dst,$dst\n\t" |
|
2366 |
"vinserti128h $dst,$dst,$dst\t! replicate4L($con)" %} |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2367 |
ins_encode %{ |
13294 | 2368 |
__ movq($dst$$XMMRegister, $constantaddress($con)); |
2369 |
__ punpcklqdq($dst$$XMMRegister, $dst$$XMMRegister); |
|
2370 |
__ vinserti128h($dst$$XMMRegister, $dst$$XMMRegister, $dst$$XMMRegister); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2371 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2372 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2373 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2374 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2375 |
// Long could be loaded into xmm register directly from memory. |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2376 |
instruct Repl2L_mem(vecX dst, memory mem) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2377 |
predicate(n->as_Vector()->length() == 2); |
13294 | 2378 |
match(Set dst (ReplicateL (LoadL mem))); |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2379 |
format %{ "movq $dst,$mem\n\t" |
13294 | 2380 |
"punpcklqdq $dst,$dst\t! replicate2L" %} |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2381 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2382 |
__ movq($dst$$XMMRegister, $mem$$Address); |
13294 | 2383 |
__ punpcklqdq($dst$$XMMRegister, $dst$$XMMRegister); |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2384 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2385 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2386 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2387 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2388 |
instruct Repl4L_mem(vecY dst, memory mem) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2389 |
predicate(n->as_Vector()->length() == 4); |
13294 | 2390 |
match(Set dst (ReplicateL (LoadL mem))); |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2391 |
format %{ "movq $dst,$mem\n\t" |
13294 | 2392 |
"punpcklqdq $dst,$dst\n\t" |
2393 |
"vinserti128h $dst,$dst,$dst\t! replicate4L" %} |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2394 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2395 |
__ movq($dst$$XMMRegister, $mem$$Address); |
13294 | 2396 |
__ punpcklqdq($dst$$XMMRegister, $dst$$XMMRegister); |
2397 |
__ vinserti128h($dst$$XMMRegister, $dst$$XMMRegister, $dst$$XMMRegister); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2398 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2399 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2400 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2401 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2402 |
// Replicate long (8 byte) scalar zero to be vector |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2403 |
instruct Repl2L_zero(vecX dst, immL0 zero) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2404 |
predicate(n->as_Vector()->length() == 2); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2405 |
match(Set dst (ReplicateL zero)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2406 |
format %{ "pxor $dst,$dst\t! replicate2L zero" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2407 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2408 |
__ pxor($dst$$XMMRegister, $dst$$XMMRegister); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2409 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2410 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2411 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2412 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2413 |
instruct Repl4L_zero(vecY dst, immL0 zero) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2414 |
predicate(n->as_Vector()->length() == 4); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2415 |
match(Set dst (ReplicateL zero)); |
13294 | 2416 |
format %{ "vpxor $dst,$dst,$dst\t! replicate4L zero" %} |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2417 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2418 |
// Use vxorpd since AVX does not have vpxor for 256-bit (AVX2 will have it). |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2419 |
bool vector256 = true; |
13294 | 2420 |
__ vpxor($dst$$XMMRegister, $dst$$XMMRegister, $dst$$XMMRegister, vector256); |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2421 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2422 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2423 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2424 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2425 |
// Replicate float (4 byte) scalar to be vector |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2426 |
instruct Repl2F(vecD dst, regF src) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2427 |
predicate(n->as_Vector()->length() == 2); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2428 |
match(Set dst (ReplicateF src)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2429 |
format %{ "pshufd $dst,$dst,0x00\t! replicate2F" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2430 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2431 |
__ pshufd($dst$$XMMRegister, $src$$XMMRegister, 0x00); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2432 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2433 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2434 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2435 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2436 |
instruct Repl4F(vecX dst, regF src) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2437 |
predicate(n->as_Vector()->length() == 4); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2438 |
match(Set dst (ReplicateF src)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2439 |
format %{ "pshufd $dst,$dst,0x00\t! replicate4F" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2440 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2441 |
__ pshufd($dst$$XMMRegister, $src$$XMMRegister, 0x00); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2442 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2443 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2444 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2445 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2446 |
instruct Repl8F(vecY dst, regF src) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2447 |
predicate(n->as_Vector()->length() == 8); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2448 |
match(Set dst (ReplicateF src)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2449 |
format %{ "pshufd $dst,$src,0x00\n\t" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2450 |
"vinsertf128h $dst,$dst,$dst\t! replicate8F" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2451 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2452 |
__ pshufd($dst$$XMMRegister, $src$$XMMRegister, 0x00); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2453 |
__ vinsertf128h($dst$$XMMRegister, $dst$$XMMRegister, $dst$$XMMRegister); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2454 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2455 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2456 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2457 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2458 |
// Replicate float (4 byte) scalar zero to be vector |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2459 |
instruct Repl2F_zero(vecD dst, immF0 zero) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2460 |
predicate(n->as_Vector()->length() == 2); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2461 |
match(Set dst (ReplicateF zero)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2462 |
format %{ "xorps $dst,$dst\t! replicate2F zero" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2463 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2464 |
__ xorps($dst$$XMMRegister, $dst$$XMMRegister); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2465 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2466 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2467 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2468 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2469 |
instruct Repl4F_zero(vecX dst, immF0 zero) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2470 |
predicate(n->as_Vector()->length() == 4); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2471 |
match(Set dst (ReplicateF zero)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2472 |
format %{ "xorps $dst,$dst\t! replicate4F zero" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2473 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2474 |
__ xorps($dst$$XMMRegister, $dst$$XMMRegister); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2475 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2476 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2477 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2478 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2479 |
instruct Repl8F_zero(vecY dst, immF0 zero) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2480 |
predicate(n->as_Vector()->length() == 8); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2481 |
match(Set dst (ReplicateF zero)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2482 |
format %{ "vxorps $dst,$dst,$dst\t! replicate8F zero" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2483 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2484 |
bool vector256 = true; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2485 |
__ vxorps($dst$$XMMRegister, $dst$$XMMRegister, $dst$$XMMRegister, vector256); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2486 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2487 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2488 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2489 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2490 |
// Replicate double (8 bytes) scalar to be vector |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2491 |
instruct Repl2D(vecX dst, regD src) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2492 |
predicate(n->as_Vector()->length() == 2); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2493 |
match(Set dst (ReplicateD src)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2494 |
format %{ "pshufd $dst,$src,0x44\t! replicate2D" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2495 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2496 |
__ pshufd($dst$$XMMRegister, $src$$XMMRegister, 0x44); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2497 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2498 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2499 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2500 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2501 |
instruct Repl4D(vecY dst, regD src) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2502 |
predicate(n->as_Vector()->length() == 4); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2503 |
match(Set dst (ReplicateD src)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2504 |
format %{ "pshufd $dst,$src,0x44\n\t" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2505 |
"vinsertf128h $dst,$dst,$dst\t! replicate4D" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2506 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2507 |
__ pshufd($dst$$XMMRegister, $src$$XMMRegister, 0x44); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2508 |
__ vinsertf128h($dst$$XMMRegister, $dst$$XMMRegister, $dst$$XMMRegister); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2509 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2510 |
ins_pipe( pipe_slow ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2511 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2512 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2513 |
// Replicate double (8 byte) scalar zero to be vector |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2514 |
instruct Repl2D_zero(vecX dst, immD0 zero) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2515 |
predicate(n->as_Vector()->length() == 2); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2516 |
match(Set dst (ReplicateD zero)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2517 |
format %{ "xorpd $dst,$dst\t! replicate2D zero" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2518 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2519 |
__ xorpd($dst$$XMMRegister, $dst$$XMMRegister); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2520 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2521 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2522 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2523 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2524 |
instruct Repl4D_zero(vecY dst, immD0 zero) %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2525 |
predicate(n->as_Vector()->length() == 4); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2526 |
match(Set dst (ReplicateD zero)); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2527 |
format %{ "vxorpd $dst,$dst,$dst,vect256\t! replicate4D zero" %} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2528 |
ins_encode %{ |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2529 |
bool vector256 = true; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2530 |
__ vxorpd($dst$$XMMRegister, $dst$$XMMRegister, $dst$$XMMRegister, vector256); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2531 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2532 |
ins_pipe( fpu_reg_reg ); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2533 |
%} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
11794
diff
changeset
|
2534 |
|
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2535 |
// ====================VECTOR ARITHMETIC======================================= |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2536 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2537 |
// --------------------------------- ADD -------------------------------------- |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2538 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2539 |
// Bytes vector add |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2540 |
instruct vadd4B(vecS dst, vecS src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2541 |
predicate(n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2542 |
match(Set dst (AddVB dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2543 |
format %{ "paddb $dst,$src\t! add packed4B" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2544 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2545 |
__ paddb($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2546 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2547 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2548 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2549 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2550 |
instruct vadd4B_reg(vecS dst, vecS src1, vecS src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2551 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2552 |
match(Set dst (AddVB src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2553 |
format %{ "vpaddb $dst,$src1,$src2\t! add packed4B" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2554 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2555 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2556 |
__ vpaddb($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2557 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2558 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2559 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2560 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2561 |
instruct vadd8B(vecD dst, vecD src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2562 |
predicate(n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2563 |
match(Set dst (AddVB dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2564 |
format %{ "paddb $dst,$src\t! add packed8B" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2565 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2566 |
__ paddb($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2567 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2568 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2569 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2570 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2571 |
instruct vadd8B_reg(vecD dst, vecD src1, vecD src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2572 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2573 |
match(Set dst (AddVB src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2574 |
format %{ "vpaddb $dst,$src1,$src2\t! add packed8B" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2575 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2576 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2577 |
__ vpaddb($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2578 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2579 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2580 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2581 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2582 |
instruct vadd16B(vecX dst, vecX src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2583 |
predicate(n->as_Vector()->length() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2584 |
match(Set dst (AddVB dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2585 |
format %{ "paddb $dst,$src\t! add packed16B" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2586 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2587 |
__ paddb($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2588 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2589 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2590 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2591 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2592 |
instruct vadd16B_reg(vecX dst, vecX src1, vecX src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2593 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2594 |
match(Set dst (AddVB src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2595 |
format %{ "vpaddb $dst,$src1,$src2\t! add packed16B" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2596 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2597 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2598 |
__ vpaddb($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2599 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2600 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2601 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2602 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2603 |
instruct vadd16B_mem(vecX dst, vecX src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2604 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2605 |
match(Set dst (AddVB src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2606 |
format %{ "vpaddb $dst,$src,$mem\t! add packed16B" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2607 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2608 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2609 |
__ vpaddb($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2610 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2611 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2612 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2613 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2614 |
instruct vadd32B_reg(vecY dst, vecY src1, vecY src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2615 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 32); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2616 |
match(Set dst (AddVB src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2617 |
format %{ "vpaddb $dst,$src1,$src2\t! add packed32B" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2618 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2619 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2620 |
__ vpaddb($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2621 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2622 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2623 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2624 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2625 |
instruct vadd32B_mem(vecY dst, vecY src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2626 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 32); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2627 |
match(Set dst (AddVB src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2628 |
format %{ "vpaddb $dst,$src,$mem\t! add packed32B" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2629 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2630 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2631 |
__ vpaddb($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2632 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2633 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2634 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2635 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2636 |
// Shorts/Chars vector add |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2637 |
instruct vadd2S(vecS dst, vecS src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2638 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2639 |
match(Set dst (AddVS dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2640 |
format %{ "paddw $dst,$src\t! add packed2S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2641 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2642 |
__ paddw($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2643 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2644 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2645 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2646 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2647 |
instruct vadd2S_reg(vecS dst, vecS src1, vecS src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2648 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2649 |
match(Set dst (AddVS src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2650 |
format %{ "vpaddw $dst,$src1,$src2\t! add packed2S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2651 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2652 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2653 |
__ vpaddw($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2654 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2655 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2656 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2657 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2658 |
instruct vadd4S(vecD dst, vecD src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2659 |
predicate(n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2660 |
match(Set dst (AddVS dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2661 |
format %{ "paddw $dst,$src\t! add packed4S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2662 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2663 |
__ paddw($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2664 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2665 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2666 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2667 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2668 |
instruct vadd4S_reg(vecD dst, vecD src1, vecD src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2669 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2670 |
match(Set dst (AddVS src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2671 |
format %{ "vpaddw $dst,$src1,$src2\t! add packed4S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2672 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2673 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2674 |
__ vpaddw($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2675 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2676 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2677 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2678 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2679 |
instruct vadd8S(vecX dst, vecX src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2680 |
predicate(n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2681 |
match(Set dst (AddVS dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2682 |
format %{ "paddw $dst,$src\t! add packed8S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2683 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2684 |
__ paddw($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2685 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2686 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2687 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2688 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2689 |
instruct vadd8S_reg(vecX dst, vecX src1, vecX src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2690 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2691 |
match(Set dst (AddVS src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2692 |
format %{ "vpaddw $dst,$src1,$src2\t! add packed8S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2693 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2694 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2695 |
__ vpaddw($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2696 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2697 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2698 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2699 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2700 |
instruct vadd8S_mem(vecX dst, vecX src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2701 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2702 |
match(Set dst (AddVS src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2703 |
format %{ "vpaddw $dst,$src,$mem\t! add packed8S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2704 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2705 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2706 |
__ vpaddw($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2707 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2708 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2709 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2710 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2711 |
instruct vadd16S_reg(vecY dst, vecY src1, vecY src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2712 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2713 |
match(Set dst (AddVS src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2714 |
format %{ "vpaddw $dst,$src1,$src2\t! add packed16S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2715 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2716 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2717 |
__ vpaddw($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2718 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2719 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2720 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2721 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2722 |
instruct vadd16S_mem(vecY dst, vecY src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2723 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2724 |
match(Set dst (AddVS src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2725 |
format %{ "vpaddw $dst,$src,$mem\t! add packed16S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2726 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2727 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2728 |
__ vpaddw($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2729 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2730 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2731 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2732 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2733 |
// Integers vector add |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2734 |
instruct vadd2I(vecD dst, vecD src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2735 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2736 |
match(Set dst (AddVI dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2737 |
format %{ "paddd $dst,$src\t! add packed2I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2738 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2739 |
__ paddd($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2740 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2741 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2742 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2743 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2744 |
instruct vadd2I_reg(vecD dst, vecD src1, vecD src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2745 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2746 |
match(Set dst (AddVI src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2747 |
format %{ "vpaddd $dst,$src1,$src2\t! add packed2I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2748 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2749 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2750 |
__ vpaddd($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2751 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2752 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2753 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2754 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2755 |
instruct vadd4I(vecX dst, vecX src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2756 |
predicate(n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2757 |
match(Set dst (AddVI dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2758 |
format %{ "paddd $dst,$src\t! add packed4I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2759 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2760 |
__ paddd($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2761 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2762 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2763 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2764 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2765 |
instruct vadd4I_reg(vecX dst, vecX src1, vecX src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2766 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2767 |
match(Set dst (AddVI src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2768 |
format %{ "vpaddd $dst,$src1,$src2\t! add packed4I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2769 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2770 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2771 |
__ vpaddd($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2772 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2773 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2774 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2775 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2776 |
instruct vadd4I_mem(vecX dst, vecX src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2777 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2778 |
match(Set dst (AddVI src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2779 |
format %{ "vpaddd $dst,$src,$mem\t! add packed4I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2780 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2781 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2782 |
__ vpaddd($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2783 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2784 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2785 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2786 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2787 |
instruct vadd8I_reg(vecY dst, vecY src1, vecY src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2788 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2789 |
match(Set dst (AddVI src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2790 |
format %{ "vpaddd $dst,$src1,$src2\t! add packed8I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2791 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2792 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2793 |
__ vpaddd($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2794 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2795 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2796 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2797 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2798 |
instruct vadd8I_mem(vecY dst, vecY src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2799 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2800 |
match(Set dst (AddVI src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2801 |
format %{ "vpaddd $dst,$src,$mem\t! add packed8I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2802 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2803 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2804 |
__ vpaddd($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2805 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2806 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2807 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2808 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2809 |
// Longs vector add |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2810 |
instruct vadd2L(vecX dst, vecX src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2811 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2812 |
match(Set dst (AddVL dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2813 |
format %{ "paddq $dst,$src\t! add packed2L" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2814 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2815 |
__ paddq($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2816 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2817 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2818 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2819 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2820 |
instruct vadd2L_reg(vecX dst, vecX src1, vecX src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2821 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2822 |
match(Set dst (AddVL src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2823 |
format %{ "vpaddq $dst,$src1,$src2\t! add packed2L" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2824 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2825 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2826 |
__ vpaddq($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2827 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2828 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2829 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2830 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2831 |
instruct vadd2L_mem(vecX dst, vecX src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2832 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2833 |
match(Set dst (AddVL src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2834 |
format %{ "vpaddq $dst,$src,$mem\t! add packed2L" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2835 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2836 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2837 |
__ vpaddq($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2838 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2839 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2840 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2841 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2842 |
instruct vadd4L_reg(vecY dst, vecY src1, vecY src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2843 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2844 |
match(Set dst (AddVL src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2845 |
format %{ "vpaddq $dst,$src1,$src2\t! add packed4L" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2846 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2847 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2848 |
__ vpaddq($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2849 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2850 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2851 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2852 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2853 |
instruct vadd4L_mem(vecY dst, vecY src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2854 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2855 |
match(Set dst (AddVL src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2856 |
format %{ "vpaddq $dst,$src,$mem\t! add packed4L" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2857 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2858 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2859 |
__ vpaddq($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2860 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2861 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2862 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2863 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2864 |
// Floats vector add |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2865 |
instruct vadd2F(vecD dst, vecD src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2866 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2867 |
match(Set dst (AddVF dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2868 |
format %{ "addps $dst,$src\t! add packed2F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2869 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2870 |
__ addps($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2871 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2872 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2873 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2874 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2875 |
instruct vadd2F_reg(vecD dst, vecD src1, vecD src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2876 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2877 |
match(Set dst (AddVF src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2878 |
format %{ "vaddps $dst,$src1,$src2\t! add packed2F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2879 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2880 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2881 |
__ vaddps($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2882 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2883 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2884 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2885 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2886 |
instruct vadd4F(vecX dst, vecX src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2887 |
predicate(n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2888 |
match(Set dst (AddVF dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2889 |
format %{ "addps $dst,$src\t! add packed4F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2890 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2891 |
__ addps($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2892 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2893 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2894 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2895 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2896 |
instruct vadd4F_reg(vecX dst, vecX src1, vecX src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2897 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2898 |
match(Set dst (AddVF src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2899 |
format %{ "vaddps $dst,$src1,$src2\t! add packed4F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2900 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2901 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2902 |
__ vaddps($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2903 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2904 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2905 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2906 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2907 |
instruct vadd4F_mem(vecX dst, vecX src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2908 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2909 |
match(Set dst (AddVF src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2910 |
format %{ "vaddps $dst,$src,$mem\t! add packed4F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2911 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2912 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2913 |
__ vaddps($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2914 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2915 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2916 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2917 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2918 |
instruct vadd8F_reg(vecY dst, vecY src1, vecY src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2919 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2920 |
match(Set dst (AddVF src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2921 |
format %{ "vaddps $dst,$src1,$src2\t! add packed8F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2922 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2923 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2924 |
__ vaddps($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2925 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2926 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2927 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2928 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2929 |
instruct vadd8F_mem(vecY dst, vecY src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2930 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2931 |
match(Set dst (AddVF src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2932 |
format %{ "vaddps $dst,$src,$mem\t! add packed8F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2933 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2934 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2935 |
__ vaddps($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2936 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2937 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2938 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2939 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2940 |
// Doubles vector add |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2941 |
instruct vadd2D(vecX dst, vecX src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2942 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2943 |
match(Set dst (AddVD dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2944 |
format %{ "addpd $dst,$src\t! add packed2D" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2945 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2946 |
__ addpd($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2947 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2948 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2949 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2950 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2951 |
instruct vadd2D_reg(vecX dst, vecX src1, vecX src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2952 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2953 |
match(Set dst (AddVD src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2954 |
format %{ "vaddpd $dst,$src1,$src2\t! add packed2D" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2955 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2956 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2957 |
__ vaddpd($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2958 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2959 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2960 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2961 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2962 |
instruct vadd2D_mem(vecX dst, vecX src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2963 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2964 |
match(Set dst (AddVD src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2965 |
format %{ "vaddpd $dst,$src,$mem\t! add packed2D" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2966 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2967 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2968 |
__ vaddpd($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2969 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2970 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2971 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2972 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2973 |
instruct vadd4D_reg(vecY dst, vecY src1, vecY src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2974 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2975 |
match(Set dst (AddVD src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2976 |
format %{ "vaddpd $dst,$src1,$src2\t! add packed4D" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2977 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2978 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2979 |
__ vaddpd($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2980 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2981 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2982 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2983 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2984 |
instruct vadd4D_mem(vecY dst, vecY src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2985 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2986 |
match(Set dst (AddVD src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2987 |
format %{ "vaddpd $dst,$src,$mem\t! add packed4D" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2988 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2989 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2990 |
__ vaddpd($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2991 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2992 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2993 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2994 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2995 |
// --------------------------------- SUB -------------------------------------- |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2996 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2997 |
// Bytes vector sub |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2998 |
instruct vsub4B(vecS dst, vecS src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
2999 |
predicate(n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3000 |
match(Set dst (SubVB dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3001 |
format %{ "psubb $dst,$src\t! sub packed4B" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3002 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3003 |
__ psubb($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3004 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3005 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3006 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3007 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3008 |
instruct vsub4B_reg(vecS dst, vecS src1, vecS src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3009 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3010 |
match(Set dst (SubVB src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3011 |
format %{ "vpsubb $dst,$src1,$src2\t! sub packed4B" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3012 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3013 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3014 |
__ vpsubb($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3015 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3016 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3017 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3018 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3019 |
instruct vsub8B(vecD dst, vecD src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3020 |
predicate(n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3021 |
match(Set dst (SubVB dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3022 |
format %{ "psubb $dst,$src\t! sub packed8B" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3023 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3024 |
__ psubb($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3025 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3026 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3027 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3028 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3029 |
instruct vsub8B_reg(vecD dst, vecD src1, vecD src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3030 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3031 |
match(Set dst (SubVB src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3032 |
format %{ "vpsubb $dst,$src1,$src2\t! sub packed8B" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3033 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3034 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3035 |
__ vpsubb($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3036 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3037 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3038 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3039 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3040 |
instruct vsub16B(vecX dst, vecX src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3041 |
predicate(n->as_Vector()->length() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3042 |
match(Set dst (SubVB dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3043 |
format %{ "psubb $dst,$src\t! sub packed16B" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3044 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3045 |
__ psubb($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3046 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3047 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3048 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3049 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3050 |
instruct vsub16B_reg(vecX dst, vecX src1, vecX src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3051 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3052 |
match(Set dst (SubVB src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3053 |
format %{ "vpsubb $dst,$src1,$src2\t! sub packed16B" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3054 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3055 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3056 |
__ vpsubb($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3057 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3058 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3059 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3060 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3061 |
instruct vsub16B_mem(vecX dst, vecX src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3062 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3063 |
match(Set dst (SubVB src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3064 |
format %{ "vpsubb $dst,$src,$mem\t! sub packed16B" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3065 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3066 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3067 |
__ vpsubb($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3068 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3069 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3070 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3071 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3072 |
instruct vsub32B_reg(vecY dst, vecY src1, vecY src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3073 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 32); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3074 |
match(Set dst (SubVB src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3075 |
format %{ "vpsubb $dst,$src1,$src2\t! sub packed32B" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3076 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3077 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3078 |
__ vpsubb($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3079 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3080 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3081 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3082 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3083 |
instruct vsub32B_mem(vecY dst, vecY src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3084 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 32); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3085 |
match(Set dst (SubVB src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3086 |
format %{ "vpsubb $dst,$src,$mem\t! sub packed32B" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3087 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3088 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3089 |
__ vpsubb($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3090 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3091 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3092 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3093 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3094 |
// Shorts/Chars vector sub |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3095 |
instruct vsub2S(vecS dst, vecS src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3096 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3097 |
match(Set dst (SubVS dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3098 |
format %{ "psubw $dst,$src\t! sub packed2S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3099 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3100 |
__ psubw($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3101 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3102 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3103 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3104 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3105 |
instruct vsub2S_reg(vecS dst, vecS src1, vecS src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3106 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3107 |
match(Set dst (SubVS src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3108 |
format %{ "vpsubw $dst,$src1,$src2\t! sub packed2S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3109 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3110 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3111 |
__ vpsubw($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3112 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3113 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3114 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3115 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3116 |
instruct vsub4S(vecD dst, vecD src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3117 |
predicate(n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3118 |
match(Set dst (SubVS dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3119 |
format %{ "psubw $dst,$src\t! sub packed4S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3120 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3121 |
__ psubw($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3122 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3123 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3124 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3125 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3126 |
instruct vsub4S_reg(vecD dst, vecD src1, vecD src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3127 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3128 |
match(Set dst (SubVS src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3129 |
format %{ "vpsubw $dst,$src1,$src2\t! sub packed4S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3130 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3131 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3132 |
__ vpsubw($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3133 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3134 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3135 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3136 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3137 |
instruct vsub8S(vecX dst, vecX src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3138 |
predicate(n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3139 |
match(Set dst (SubVS dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3140 |
format %{ "psubw $dst,$src\t! sub packed8S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3141 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3142 |
__ psubw($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3143 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3144 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3145 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3146 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3147 |
instruct vsub8S_reg(vecX dst, vecX src1, vecX src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3148 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3149 |
match(Set dst (SubVS src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3150 |
format %{ "vpsubw $dst,$src1,$src2\t! sub packed8S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3151 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3152 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3153 |
__ vpsubw($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3154 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3155 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3156 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3157 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3158 |
instruct vsub8S_mem(vecX dst, vecX src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3159 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3160 |
match(Set dst (SubVS src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3161 |
format %{ "vpsubw $dst,$src,$mem\t! sub packed8S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3162 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3163 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3164 |
__ vpsubw($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3165 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3166 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3167 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3168 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3169 |
instruct vsub16S_reg(vecY dst, vecY src1, vecY src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3170 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3171 |
match(Set dst (SubVS src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3172 |
format %{ "vpsubw $dst,$src1,$src2\t! sub packed16S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3173 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3174 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3175 |
__ vpsubw($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3176 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3177 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3178 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3179 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3180 |
instruct vsub16S_mem(vecY dst, vecY src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3181 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3182 |
match(Set dst (SubVS src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3183 |
format %{ "vpsubw $dst,$src,$mem\t! sub packed16S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3184 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3185 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3186 |
__ vpsubw($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3187 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3188 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3189 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3190 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3191 |
// Integers vector sub |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3192 |
instruct vsub2I(vecD dst, vecD src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3193 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3194 |
match(Set dst (SubVI dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3195 |
format %{ "psubd $dst,$src\t! sub packed2I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3196 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3197 |
__ psubd($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3198 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3199 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3200 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3201 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3202 |
instruct vsub2I_reg(vecD dst, vecD src1, vecD src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3203 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3204 |
match(Set dst (SubVI src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3205 |
format %{ "vpsubd $dst,$src1,$src2\t! sub packed2I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3206 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3207 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3208 |
__ vpsubd($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3209 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3210 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3211 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3212 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3213 |
instruct vsub4I(vecX dst, vecX src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3214 |
predicate(n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3215 |
match(Set dst (SubVI dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3216 |
format %{ "psubd $dst,$src\t! sub packed4I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3217 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3218 |
__ psubd($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3219 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3220 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3221 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3222 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3223 |
instruct vsub4I_reg(vecX dst, vecX src1, vecX src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3224 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3225 |
match(Set dst (SubVI src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3226 |
format %{ "vpsubd $dst,$src1,$src2\t! sub packed4I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3227 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3228 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3229 |
__ vpsubd($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3230 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3231 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3232 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3233 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3234 |
instruct vsub4I_mem(vecX dst, vecX src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3235 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3236 |
match(Set dst (SubVI src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3237 |
format %{ "vpsubd $dst,$src,$mem\t! sub packed4I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3238 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3239 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3240 |
__ vpsubd($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3241 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3242 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3243 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3244 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3245 |
instruct vsub8I_reg(vecY dst, vecY src1, vecY src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3246 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3247 |
match(Set dst (SubVI src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3248 |
format %{ "vpsubd $dst,$src1,$src2\t! sub packed8I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3249 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3250 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3251 |
__ vpsubd($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3252 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3253 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3254 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3255 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3256 |
instruct vsub8I_mem(vecY dst, vecY src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3257 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3258 |
match(Set dst (SubVI src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3259 |
format %{ "vpsubd $dst,$src,$mem\t! sub packed8I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3260 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3261 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3262 |
__ vpsubd($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3263 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3264 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3265 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3266 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3267 |
// Longs vector sub |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3268 |
instruct vsub2L(vecX dst, vecX src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3269 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3270 |
match(Set dst (SubVL dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3271 |
format %{ "psubq $dst,$src\t! sub packed2L" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3272 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3273 |
__ psubq($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3274 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3275 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3276 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3277 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3278 |
instruct vsub2L_reg(vecX dst, vecX src1, vecX src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3279 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3280 |
match(Set dst (SubVL src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3281 |
format %{ "vpsubq $dst,$src1,$src2\t! sub packed2L" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3282 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3283 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3284 |
__ vpsubq($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3285 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3286 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3287 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3288 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3289 |
instruct vsub2L_mem(vecX dst, vecX src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3290 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3291 |
match(Set dst (SubVL src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3292 |
format %{ "vpsubq $dst,$src,$mem\t! sub packed2L" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3293 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3294 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3295 |
__ vpsubq($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3296 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3297 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3298 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3299 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3300 |
instruct vsub4L_reg(vecY dst, vecY src1, vecY src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3301 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3302 |
match(Set dst (SubVL src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3303 |
format %{ "vpsubq $dst,$src1,$src2\t! sub packed4L" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3304 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3305 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3306 |
__ vpsubq($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3307 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3308 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3309 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3310 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3311 |
instruct vsub4L_mem(vecY dst, vecY src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3312 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3313 |
match(Set dst (SubVL src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3314 |
format %{ "vpsubq $dst,$src,$mem\t! sub packed4L" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3315 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3316 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3317 |
__ vpsubq($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3318 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3319 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3320 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3321 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3322 |
// Floats vector sub |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3323 |
instruct vsub2F(vecD dst, vecD src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3324 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3325 |
match(Set dst (SubVF dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3326 |
format %{ "subps $dst,$src\t! sub packed2F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3327 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3328 |
__ subps($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3329 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3330 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3331 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3332 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3333 |
instruct vsub2F_reg(vecD dst, vecD src1, vecD src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3334 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3335 |
match(Set dst (SubVF src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3336 |
format %{ "vsubps $dst,$src1,$src2\t! sub packed2F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3337 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3338 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3339 |
__ vsubps($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3340 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3341 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3342 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3343 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3344 |
instruct vsub4F(vecX dst, vecX src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3345 |
predicate(n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3346 |
match(Set dst (SubVF dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3347 |
format %{ "subps $dst,$src\t! sub packed4F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3348 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3349 |
__ subps($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3350 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3351 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3352 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3353 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3354 |
instruct vsub4F_reg(vecX dst, vecX src1, vecX src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3355 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3356 |
match(Set dst (SubVF src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3357 |
format %{ "vsubps $dst,$src1,$src2\t! sub packed4F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3358 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3359 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3360 |
__ vsubps($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3361 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3362 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3363 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3364 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3365 |
instruct vsub4F_mem(vecX dst, vecX src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3366 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3367 |
match(Set dst (SubVF src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3368 |
format %{ "vsubps $dst,$src,$mem\t! sub packed4F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3369 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3370 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3371 |
__ vsubps($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3372 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3373 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3374 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3375 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3376 |
instruct vsub8F_reg(vecY dst, vecY src1, vecY src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3377 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3378 |
match(Set dst (SubVF src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3379 |
format %{ "vsubps $dst,$src1,$src2\t! sub packed8F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3380 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3381 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3382 |
__ vsubps($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3383 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3384 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3385 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3386 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3387 |
instruct vsub8F_mem(vecY dst, vecY src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3388 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3389 |
match(Set dst (SubVF src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3390 |
format %{ "vsubps $dst,$src,$mem\t! sub packed8F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3391 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3392 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3393 |
__ vsubps($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3394 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3395 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3396 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3397 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3398 |
// Doubles vector sub |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3399 |
instruct vsub2D(vecX dst, vecX src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3400 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3401 |
match(Set dst (SubVD dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3402 |
format %{ "subpd $dst,$src\t! sub packed2D" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3403 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3404 |
__ subpd($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3405 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3406 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3407 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3408 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3409 |
instruct vsub2D_reg(vecX dst, vecX src1, vecX src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3410 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3411 |
match(Set dst (SubVD src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3412 |
format %{ "vsubpd $dst,$src1,$src2\t! sub packed2D" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3413 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3414 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3415 |
__ vsubpd($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3416 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3417 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3418 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3419 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3420 |
instruct vsub2D_mem(vecX dst, vecX src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3421 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3422 |
match(Set dst (SubVD src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3423 |
format %{ "vsubpd $dst,$src,$mem\t! sub packed2D" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3424 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3425 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3426 |
__ vsubpd($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3427 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3428 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3429 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3430 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3431 |
instruct vsub4D_reg(vecY dst, vecY src1, vecY src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3432 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3433 |
match(Set dst (SubVD src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3434 |
format %{ "vsubpd $dst,$src1,$src2\t! sub packed4D" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3435 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3436 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3437 |
__ vsubpd($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3438 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3439 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3440 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3441 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3442 |
instruct vsub4D_mem(vecY dst, vecY src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3443 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3444 |
match(Set dst (SubVD src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3445 |
format %{ "vsubpd $dst,$src,$mem\t! sub packed4D" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3446 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3447 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3448 |
__ vsubpd($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3449 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3450 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3451 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3452 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3453 |
// --------------------------------- MUL -------------------------------------- |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3454 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3455 |
// Shorts/Chars vector mul |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3456 |
instruct vmul2S(vecS dst, vecS src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3457 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3458 |
match(Set dst (MulVS dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3459 |
format %{ "pmullw $dst,$src\t! mul packed2S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3460 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3461 |
__ pmullw($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3462 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3463 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3464 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3465 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3466 |
instruct vmul2S_reg(vecS dst, vecS src1, vecS src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3467 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3468 |
match(Set dst (MulVS src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3469 |
format %{ "vpmullw $dst,$src1,$src2\t! mul packed2S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3470 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3471 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3472 |
__ vpmullw($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3473 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3474 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3475 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3476 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3477 |
instruct vmul4S(vecD dst, vecD src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3478 |
predicate(n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3479 |
match(Set dst (MulVS dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3480 |
format %{ "pmullw $dst,$src\t! mul packed4S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3481 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3482 |
__ pmullw($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3483 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3484 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3485 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3486 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3487 |
instruct vmul4S_reg(vecD dst, vecD src1, vecD src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3488 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3489 |
match(Set dst (MulVS src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3490 |
format %{ "vpmullw $dst,$src1,$src2\t! mul packed4S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3491 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3492 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3493 |
__ vpmullw($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3494 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3495 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3496 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3497 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3498 |
instruct vmul8S(vecX dst, vecX src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3499 |
predicate(n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3500 |
match(Set dst (MulVS dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3501 |
format %{ "pmullw $dst,$src\t! mul packed8S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3502 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3503 |
__ pmullw($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3504 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3505 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3506 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3507 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3508 |
instruct vmul8S_reg(vecX dst, vecX src1, vecX src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3509 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3510 |
match(Set dst (MulVS src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3511 |
format %{ "vpmullw $dst,$src1,$src2\t! mul packed8S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3512 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3513 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3514 |
__ vpmullw($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3515 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3516 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3517 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3518 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3519 |
instruct vmul8S_mem(vecX dst, vecX src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3520 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3521 |
match(Set dst (MulVS src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3522 |
format %{ "vpmullw $dst,$src,$mem\t! mul packed8S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3523 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3524 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3525 |
__ vpmullw($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3526 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3527 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3528 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3529 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3530 |
instruct vmul16S_reg(vecY dst, vecY src1, vecY src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3531 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3532 |
match(Set dst (MulVS src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3533 |
format %{ "vpmullw $dst,$src1,$src2\t! mul packed16S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3534 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3535 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3536 |
__ vpmullw($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3537 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3538 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3539 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3540 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3541 |
instruct vmul16S_mem(vecY dst, vecY src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3542 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3543 |
match(Set dst (MulVS src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3544 |
format %{ "vpmullw $dst,$src,$mem\t! mul packed16S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3545 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3546 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3547 |
__ vpmullw($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3548 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3549 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3550 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3551 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3552 |
// Integers vector mul (sse4_1) |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3553 |
instruct vmul2I(vecD dst, vecD src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3554 |
predicate(UseSSE > 3 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3555 |
match(Set dst (MulVI dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3556 |
format %{ "pmulld $dst,$src\t! mul packed2I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3557 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3558 |
__ pmulld($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3559 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3560 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3561 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3562 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3563 |
instruct vmul2I_reg(vecD dst, vecD src1, vecD src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3564 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3565 |
match(Set dst (MulVI src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3566 |
format %{ "vpmulld $dst,$src1,$src2\t! mul packed2I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3567 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3568 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3569 |
__ vpmulld($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3570 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3571 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3572 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3573 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3574 |
instruct vmul4I(vecX dst, vecX src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3575 |
predicate(UseSSE > 3 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3576 |
match(Set dst (MulVI dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3577 |
format %{ "pmulld $dst,$src\t! mul packed4I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3578 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3579 |
__ pmulld($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3580 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3581 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3582 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3583 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3584 |
instruct vmul4I_reg(vecX dst, vecX src1, vecX src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3585 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3586 |
match(Set dst (MulVI src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3587 |
format %{ "vpmulld $dst,$src1,$src2\t! mul packed4I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3588 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3589 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3590 |
__ vpmulld($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3591 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3592 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3593 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3594 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3595 |
instruct vmul4I_mem(vecX dst, vecX src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3596 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3597 |
match(Set dst (MulVI src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3598 |
format %{ "vpmulld $dst,$src,$mem\t! mul packed4I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3599 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3600 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3601 |
__ vpmulld($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3602 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3603 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3604 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3605 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3606 |
instruct vmul8I_reg(vecY dst, vecY src1, vecY src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3607 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3608 |
match(Set dst (MulVI src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3609 |
format %{ "vpmulld $dst,$src1,$src2\t! mul packed8I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3610 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3611 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3612 |
__ vpmulld($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3613 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3614 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3615 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3616 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3617 |
instruct vmul8I_mem(vecY dst, vecY src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3618 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3619 |
match(Set dst (MulVI src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3620 |
format %{ "vpmulld $dst,$src,$mem\t! mul packed8I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3621 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3622 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3623 |
__ vpmulld($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3624 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3625 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3626 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3627 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3628 |
// Floats vector mul |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3629 |
instruct vmul2F(vecD dst, vecD src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3630 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3631 |
match(Set dst (MulVF dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3632 |
format %{ "mulps $dst,$src\t! mul packed2F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3633 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3634 |
__ mulps($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3635 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3636 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3637 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3638 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3639 |
instruct vmul2F_reg(vecD dst, vecD src1, vecD src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3640 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3641 |
match(Set dst (MulVF src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3642 |
format %{ "vmulps $dst,$src1,$src2\t! mul packed2F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3643 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3644 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3645 |
__ vmulps($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3646 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3647 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3648 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3649 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3650 |
instruct vmul4F(vecX dst, vecX src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3651 |
predicate(n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3652 |
match(Set dst (MulVF dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3653 |
format %{ "mulps $dst,$src\t! mul packed4F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3654 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3655 |
__ mulps($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3656 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3657 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3658 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3659 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3660 |
instruct vmul4F_reg(vecX dst, vecX src1, vecX src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3661 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3662 |
match(Set dst (MulVF src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3663 |
format %{ "vmulps $dst,$src1,$src2\t! mul packed4F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3664 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3665 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3666 |
__ vmulps($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3667 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3668 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3669 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3670 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3671 |
instruct vmul4F_mem(vecX dst, vecX src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3672 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3673 |
match(Set dst (MulVF src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3674 |
format %{ "vmulps $dst,$src,$mem\t! mul packed4F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3675 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3676 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3677 |
__ vmulps($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3678 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3679 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3680 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3681 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3682 |
instruct vmul8F_reg(vecY dst, vecY src1, vecY src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3683 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3684 |
match(Set dst (MulVF src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3685 |
format %{ "vmulps $dst,$src1,$src2\t! mul packed8F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3686 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3687 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3688 |
__ vmulps($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3689 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3690 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3691 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3692 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3693 |
instruct vmul8F_mem(vecY dst, vecY src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3694 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3695 |
match(Set dst (MulVF src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3696 |
format %{ "vmulps $dst,$src,$mem\t! mul packed8F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3697 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3698 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3699 |
__ vmulps($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3700 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3701 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3702 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3703 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3704 |
// Doubles vector mul |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3705 |
instruct vmul2D(vecX dst, vecX src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3706 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3707 |
match(Set dst (MulVD dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3708 |
format %{ "mulpd $dst,$src\t! mul packed2D" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3709 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3710 |
__ mulpd($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3711 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3712 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3713 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3714 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3715 |
instruct vmul2D_reg(vecX dst, vecX src1, vecX src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3716 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3717 |
match(Set dst (MulVD src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3718 |
format %{ "vmulpd $dst,$src1,$src2\t! mul packed2D" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3719 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3720 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3721 |
__ vmulpd($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3722 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3723 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3724 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3725 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3726 |
instruct vmul2D_mem(vecX dst, vecX src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3727 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3728 |
match(Set dst (MulVD src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3729 |
format %{ "vmulpd $dst,$src,$mem\t! mul packed2D" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3730 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3731 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3732 |
__ vmulpd($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3733 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3734 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3735 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3736 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3737 |
instruct vmul4D_reg(vecY dst, vecY src1, vecY src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3738 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3739 |
match(Set dst (MulVD src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3740 |
format %{ "vmulpd $dst,$src1,$src2\t! mul packed4D" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3741 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3742 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3743 |
__ vmulpd($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3744 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3745 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3746 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3747 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3748 |
instruct vmul4D_mem(vecY dst, vecY src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3749 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3750 |
match(Set dst (MulVD src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3751 |
format %{ "vmulpd $dst,$src,$mem\t! mul packed4D" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3752 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3753 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3754 |
__ vmulpd($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3755 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3756 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3757 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3758 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3759 |
// --------------------------------- DIV -------------------------------------- |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3760 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3761 |
// Floats vector div |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3762 |
instruct vdiv2F(vecD dst, vecD src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3763 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3764 |
match(Set dst (DivVF dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3765 |
format %{ "divps $dst,$src\t! div packed2F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3766 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3767 |
__ divps($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3768 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3769 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3770 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3771 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3772 |
instruct vdiv2F_reg(vecD dst, vecD src1, vecD src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3773 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3774 |
match(Set dst (DivVF src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3775 |
format %{ "vdivps $dst,$src1,$src2\t! div packed2F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3776 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3777 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3778 |
__ vdivps($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3779 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3780 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3781 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3782 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3783 |
instruct vdiv4F(vecX dst, vecX src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3784 |
predicate(n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3785 |
match(Set dst (DivVF dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3786 |
format %{ "divps $dst,$src\t! div packed4F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3787 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3788 |
__ divps($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3789 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3790 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3791 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3792 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3793 |
instruct vdiv4F_reg(vecX dst, vecX src1, vecX src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3794 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3795 |
match(Set dst (DivVF src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3796 |
format %{ "vdivps $dst,$src1,$src2\t! div packed4F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3797 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3798 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3799 |
__ vdivps($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3800 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3801 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3802 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3803 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3804 |
instruct vdiv4F_mem(vecX dst, vecX src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3805 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3806 |
match(Set dst (DivVF src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3807 |
format %{ "vdivps $dst,$src,$mem\t! div packed4F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3808 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3809 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3810 |
__ vdivps($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3811 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3812 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3813 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3814 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3815 |
instruct vdiv8F_reg(vecY dst, vecY src1, vecY src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3816 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3817 |
match(Set dst (DivVF src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3818 |
format %{ "vdivps $dst,$src1,$src2\t! div packed8F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3819 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3820 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3821 |
__ vdivps($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3822 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3823 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3824 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3825 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3826 |
instruct vdiv8F_mem(vecY dst, vecY src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3827 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3828 |
match(Set dst (DivVF src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3829 |
format %{ "vdivps $dst,$src,$mem\t! div packed8F" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3830 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3831 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3832 |
__ vdivps($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3833 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3834 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3835 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3836 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3837 |
// Doubles vector div |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3838 |
instruct vdiv2D(vecX dst, vecX src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3839 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3840 |
match(Set dst (DivVD dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3841 |
format %{ "divpd $dst,$src\t! div packed2D" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3842 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3843 |
__ divpd($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3844 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3845 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3846 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3847 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3848 |
instruct vdiv2D_reg(vecX dst, vecX src1, vecX src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3849 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3850 |
match(Set dst (DivVD src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3851 |
format %{ "vdivpd $dst,$src1,$src2\t! div packed2D" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3852 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3853 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3854 |
__ vdivpd($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3855 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3856 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3857 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3858 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3859 |
instruct vdiv2D_mem(vecX dst, vecX src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3860 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3861 |
match(Set dst (DivVD src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3862 |
format %{ "vdivpd $dst,$src,$mem\t! div packed2D" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3863 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3864 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3865 |
__ vdivpd($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3866 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3867 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3868 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3869 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3870 |
instruct vdiv4D_reg(vecY dst, vecY src1, vecY src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3871 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3872 |
match(Set dst (DivVD src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3873 |
format %{ "vdivpd $dst,$src1,$src2\t! div packed4D" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3874 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3875 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3876 |
__ vdivpd($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3877 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3878 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3879 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3880 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3881 |
instruct vdiv4D_mem(vecY dst, vecY src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3882 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3883 |
match(Set dst (DivVD src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3884 |
format %{ "vdivpd $dst,$src,$mem\t! div packed4D" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3885 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3886 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3887 |
__ vdivpd($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3888 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3889 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3890 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3891 |
|
13930 | 3892 |
// ------------------------------ Shift --------------------------------------- |
3893 |
||
3894 |
// Left and right shift count vectors are the same on x86 |
|
3895 |
// (only lowest bits of xmm reg are used for count). |
|
3896 |
instruct vshiftcnt(vecS dst, rRegI cnt) %{ |
|
3897 |
match(Set dst (LShiftCntV cnt)); |
|
3898 |
match(Set dst (RShiftCntV cnt)); |
|
3899 |
format %{ "movd $dst,$cnt\t! load shift count" %} |
|
3900 |
ins_encode %{ |
|
3901 |
__ movdl($dst$$XMMRegister, $cnt$$Register); |
|
3902 |
%} |
|
3903 |
ins_pipe( pipe_slow ); |
|
3904 |
%} |
|
3905 |
||
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3906 |
// ------------------------------ LeftShift ----------------------------------- |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3907 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3908 |
// Shorts/Chars vector left shift |
13930 | 3909 |
instruct vsll2S(vecS dst, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3910 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3911 |
match(Set dst (LShiftVS dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3912 |
format %{ "psllw $dst,$shift\t! left shift packed2S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3913 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3914 |
__ psllw($dst$$XMMRegister, $shift$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3915 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3916 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3917 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3918 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3919 |
instruct vsll2S_imm(vecS dst, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3920 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3921 |
match(Set dst (LShiftVS dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3922 |
format %{ "psllw $dst,$shift\t! left shift packed2S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3923 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3924 |
__ psllw($dst$$XMMRegister, (int)$shift$$constant); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3925 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3926 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3927 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3928 |
|
13930 | 3929 |
instruct vsll2S_reg(vecS dst, vecS src, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3930 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3931 |
match(Set dst (LShiftVS src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3932 |
format %{ "vpsllw $dst,$src,$shift\t! left shift packed2S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3933 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3934 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3935 |
__ vpsllw($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3936 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3937 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3938 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3939 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3940 |
instruct vsll2S_reg_imm(vecS dst, vecS src, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3941 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3942 |
match(Set dst (LShiftVS src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3943 |
format %{ "vpsllw $dst,$src,$shift\t! left shift packed2S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3944 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3945 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3946 |
__ vpsllw($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3947 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3948 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3949 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3950 |
|
13930 | 3951 |
instruct vsll4S(vecD dst, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3952 |
predicate(n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3953 |
match(Set dst (LShiftVS dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3954 |
format %{ "psllw $dst,$shift\t! left shift packed4S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3955 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3956 |
__ psllw($dst$$XMMRegister, $shift$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3957 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3958 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3959 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3960 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3961 |
instruct vsll4S_imm(vecD dst, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3962 |
predicate(n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3963 |
match(Set dst (LShiftVS dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3964 |
format %{ "psllw $dst,$shift\t! left shift packed4S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3965 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3966 |
__ psllw($dst$$XMMRegister, (int)$shift$$constant); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3967 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3968 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3969 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3970 |
|
13930 | 3971 |
instruct vsll4S_reg(vecD dst, vecD src, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3972 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3973 |
match(Set dst (LShiftVS src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3974 |
format %{ "vpsllw $dst,$src,$shift\t! left shift packed4S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3975 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3976 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3977 |
__ vpsllw($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3978 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3979 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3980 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3981 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3982 |
instruct vsll4S_reg_imm(vecD dst, vecD src, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3983 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3984 |
match(Set dst (LShiftVS src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3985 |
format %{ "vpsllw $dst,$src,$shift\t! left shift packed4S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3986 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3987 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3988 |
__ vpsllw($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3989 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3990 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3991 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3992 |
|
13930 | 3993 |
instruct vsll8S(vecX dst, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3994 |
predicate(n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3995 |
match(Set dst (LShiftVS dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3996 |
format %{ "psllw $dst,$shift\t! left shift packed8S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3997 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3998 |
__ psllw($dst$$XMMRegister, $shift$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
3999 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4000 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4001 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4002 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4003 |
instruct vsll8S_imm(vecX dst, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4004 |
predicate(n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4005 |
match(Set dst (LShiftVS dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4006 |
format %{ "psllw $dst,$shift\t! left shift packed8S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4007 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4008 |
__ psllw($dst$$XMMRegister, (int)$shift$$constant); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4009 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4010 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4011 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4012 |
|
13930 | 4013 |
instruct vsll8S_reg(vecX dst, vecX src, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4014 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4015 |
match(Set dst (LShiftVS src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4016 |
format %{ "vpsllw $dst,$src,$shift\t! left shift packed8S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4017 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4018 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4019 |
__ vpsllw($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4020 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4021 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4022 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4023 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4024 |
instruct vsll8S_reg_imm(vecX dst, vecX src, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4025 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4026 |
match(Set dst (LShiftVS src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4027 |
format %{ "vpsllw $dst,$src,$shift\t! left shift packed8S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4028 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4029 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4030 |
__ vpsllw($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4031 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4032 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4033 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4034 |
|
13930 | 4035 |
instruct vsll16S_reg(vecY dst, vecY src, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4036 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4037 |
match(Set dst (LShiftVS src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4038 |
format %{ "vpsllw $dst,$src,$shift\t! left shift packed16S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4039 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4040 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4041 |
__ vpsllw($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4042 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4043 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4044 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4045 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4046 |
instruct vsll16S_reg_imm(vecY dst, vecY src, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4047 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4048 |
match(Set dst (LShiftVS src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4049 |
format %{ "vpsllw $dst,$src,$shift\t! left shift packed16S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4050 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4051 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4052 |
__ vpsllw($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4053 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4054 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4055 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4056 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4057 |
// Integers vector left shift |
13930 | 4058 |
instruct vsll2I(vecD dst, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4059 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4060 |
match(Set dst (LShiftVI dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4061 |
format %{ "pslld $dst,$shift\t! left shift packed2I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4062 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4063 |
__ pslld($dst$$XMMRegister, $shift$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4064 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4065 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4066 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4067 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4068 |
instruct vsll2I_imm(vecD dst, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4069 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4070 |
match(Set dst (LShiftVI dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4071 |
format %{ "pslld $dst,$shift\t! left shift packed2I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4072 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4073 |
__ pslld($dst$$XMMRegister, (int)$shift$$constant); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4074 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4075 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4076 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4077 |
|
13930 | 4078 |
instruct vsll2I_reg(vecD dst, vecD src, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4079 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4080 |
match(Set dst (LShiftVI src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4081 |
format %{ "vpslld $dst,$src,$shift\t! left shift packed2I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4082 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4083 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4084 |
__ vpslld($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4085 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4086 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4087 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4088 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4089 |
instruct vsll2I_reg_imm(vecD dst, vecD src, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4090 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4091 |
match(Set dst (LShiftVI src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4092 |
format %{ "vpslld $dst,$src,$shift\t! left shift packed2I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4093 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4094 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4095 |
__ vpslld($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4096 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4097 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4098 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4099 |
|
13930 | 4100 |
instruct vsll4I(vecX dst, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4101 |
predicate(n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4102 |
match(Set dst (LShiftVI dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4103 |
format %{ "pslld $dst,$shift\t! left shift packed4I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4104 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4105 |
__ pslld($dst$$XMMRegister, $shift$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4106 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4107 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4108 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4109 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4110 |
instruct vsll4I_imm(vecX dst, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4111 |
predicate(n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4112 |
match(Set dst (LShiftVI dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4113 |
format %{ "pslld $dst,$shift\t! left shift packed4I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4114 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4115 |
__ pslld($dst$$XMMRegister, (int)$shift$$constant); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4116 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4117 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4118 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4119 |
|
13930 | 4120 |
instruct vsll4I_reg(vecX dst, vecX src, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4121 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4122 |
match(Set dst (LShiftVI src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4123 |
format %{ "vpslld $dst,$src,$shift\t! left shift packed4I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4124 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4125 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4126 |
__ vpslld($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4127 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4128 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4129 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4130 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4131 |
instruct vsll4I_reg_imm(vecX dst, vecX src, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4132 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4133 |
match(Set dst (LShiftVI src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4134 |
format %{ "vpslld $dst,$src,$shift\t! left shift packed4I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4135 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4136 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4137 |
__ vpslld($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4138 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4139 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4140 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4141 |
|
13930 | 4142 |
instruct vsll8I_reg(vecY dst, vecY src, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4143 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4144 |
match(Set dst (LShiftVI src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4145 |
format %{ "vpslld $dst,$src,$shift\t! left shift packed8I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4146 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4147 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4148 |
__ vpslld($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4149 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4150 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4151 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4152 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4153 |
instruct vsll8I_reg_imm(vecY dst, vecY src, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4154 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4155 |
match(Set dst (LShiftVI src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4156 |
format %{ "vpslld $dst,$src,$shift\t! left shift packed8I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4157 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4158 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4159 |
__ vpslld($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4160 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4161 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4162 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4163 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4164 |
// Longs vector left shift |
13930 | 4165 |
instruct vsll2L(vecX dst, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4166 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4167 |
match(Set dst (LShiftVL dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4168 |
format %{ "psllq $dst,$shift\t! left shift packed2L" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4169 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4170 |
__ psllq($dst$$XMMRegister, $shift$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4171 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4172 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4173 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4174 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4175 |
instruct vsll2L_imm(vecX dst, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4176 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4177 |
match(Set dst (LShiftVL dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4178 |
format %{ "psllq $dst,$shift\t! left shift packed2L" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4179 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4180 |
__ psllq($dst$$XMMRegister, (int)$shift$$constant); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4181 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4182 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4183 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4184 |
|
13930 | 4185 |
instruct vsll2L_reg(vecX dst, vecX src, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4186 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4187 |
match(Set dst (LShiftVL src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4188 |
format %{ "vpsllq $dst,$src,$shift\t! left shift packed2L" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4189 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4190 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4191 |
__ vpsllq($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4192 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4193 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4194 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4195 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4196 |
instruct vsll2L_reg_imm(vecX dst, vecX src, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4197 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4198 |
match(Set dst (LShiftVL src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4199 |
format %{ "vpsllq $dst,$src,$shift\t! left shift packed2L" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4200 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4201 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4202 |
__ vpsllq($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4203 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4204 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4205 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4206 |
|
13930 | 4207 |
instruct vsll4L_reg(vecY dst, vecY src, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4208 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4209 |
match(Set dst (LShiftVL src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4210 |
format %{ "vpsllq $dst,$src,$shift\t! left shift packed4L" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4211 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4212 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4213 |
__ vpsllq($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4214 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4215 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4216 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4217 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4218 |
instruct vsll4L_reg_imm(vecY dst, vecY src, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4219 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4220 |
match(Set dst (LShiftVL src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4221 |
format %{ "vpsllq $dst,$src,$shift\t! left shift packed4L" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4222 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4223 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4224 |
__ vpsllq($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4225 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4226 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4227 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4228 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4229 |
// ----------------------- LogicalRightShift ----------------------------------- |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4230 |
|
14131
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4231 |
// Shorts vector logical right shift produces incorrect Java result |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4232 |
// for negative data because java code convert short value into int with |
14131
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4233 |
// sign extension before a shift. But char vectors are fine since chars are |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4234 |
// unsigned values. |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4235 |
|
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4236 |
instruct vsrl2S(vecS dst, vecS shift) %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4237 |
predicate(n->as_Vector()->length() == 2); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4238 |
match(Set dst (URShiftVS dst shift)); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4239 |
format %{ "psrlw $dst,$shift\t! logical right shift packed2S" %} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4240 |
ins_encode %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4241 |
__ psrlw($dst$$XMMRegister, $shift$$XMMRegister); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4242 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4243 |
ins_pipe( pipe_slow ); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4244 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4245 |
|
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4246 |
instruct vsrl2S_imm(vecS dst, immI8 shift) %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4247 |
predicate(n->as_Vector()->length() == 2); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4248 |
match(Set dst (URShiftVS dst shift)); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4249 |
format %{ "psrlw $dst,$shift\t! logical right shift packed2S" %} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4250 |
ins_encode %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4251 |
__ psrlw($dst$$XMMRegister, (int)$shift$$constant); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4252 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4253 |
ins_pipe( pipe_slow ); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4254 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4255 |
|
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4256 |
instruct vsrl2S_reg(vecS dst, vecS src, vecS shift) %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4257 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4258 |
match(Set dst (URShiftVS src shift)); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4259 |
format %{ "vpsrlw $dst,$src,$shift\t! logical right shift packed2S" %} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4260 |
ins_encode %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4261 |
bool vector256 = false; |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4262 |
__ vpsrlw($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4263 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4264 |
ins_pipe( pipe_slow ); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4265 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4266 |
|
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4267 |
instruct vsrl2S_reg_imm(vecS dst, vecS src, immI8 shift) %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4268 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4269 |
match(Set dst (URShiftVS src shift)); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4270 |
format %{ "vpsrlw $dst,$src,$shift\t! logical right shift packed2S" %} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4271 |
ins_encode %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4272 |
bool vector256 = false; |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4273 |
__ vpsrlw($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4274 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4275 |
ins_pipe( pipe_slow ); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4276 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4277 |
|
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4278 |
instruct vsrl4S(vecD dst, vecS shift) %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4279 |
predicate(n->as_Vector()->length() == 4); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4280 |
match(Set dst (URShiftVS dst shift)); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4281 |
format %{ "psrlw $dst,$shift\t! logical right shift packed4S" %} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4282 |
ins_encode %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4283 |
__ psrlw($dst$$XMMRegister, $shift$$XMMRegister); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4284 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4285 |
ins_pipe( pipe_slow ); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4286 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4287 |
|
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4288 |
instruct vsrl4S_imm(vecD dst, immI8 shift) %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4289 |
predicate(n->as_Vector()->length() == 4); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4290 |
match(Set dst (URShiftVS dst shift)); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4291 |
format %{ "psrlw $dst,$shift\t! logical right shift packed4S" %} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4292 |
ins_encode %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4293 |
__ psrlw($dst$$XMMRegister, (int)$shift$$constant); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4294 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4295 |
ins_pipe( pipe_slow ); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4296 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4297 |
|
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4298 |
instruct vsrl4S_reg(vecD dst, vecD src, vecS shift) %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4299 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4300 |
match(Set dst (URShiftVS src shift)); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4301 |
format %{ "vpsrlw $dst,$src,$shift\t! logical right shift packed4S" %} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4302 |
ins_encode %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4303 |
bool vector256 = false; |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4304 |
__ vpsrlw($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4305 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4306 |
ins_pipe( pipe_slow ); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4307 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4308 |
|
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4309 |
instruct vsrl4S_reg_imm(vecD dst, vecD src, immI8 shift) %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4310 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4311 |
match(Set dst (URShiftVS src shift)); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4312 |
format %{ "vpsrlw $dst,$src,$shift\t! logical right shift packed4S" %} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4313 |
ins_encode %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4314 |
bool vector256 = false; |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4315 |
__ vpsrlw($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4316 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4317 |
ins_pipe( pipe_slow ); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4318 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4319 |
|
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4320 |
instruct vsrl8S(vecX dst, vecS shift) %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4321 |
predicate(n->as_Vector()->length() == 8); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4322 |
match(Set dst (URShiftVS dst shift)); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4323 |
format %{ "psrlw $dst,$shift\t! logical right shift packed8S" %} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4324 |
ins_encode %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4325 |
__ psrlw($dst$$XMMRegister, $shift$$XMMRegister); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4326 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4327 |
ins_pipe( pipe_slow ); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4328 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4329 |
|
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4330 |
instruct vsrl8S_imm(vecX dst, immI8 shift) %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4331 |
predicate(n->as_Vector()->length() == 8); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4332 |
match(Set dst (URShiftVS dst shift)); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4333 |
format %{ "psrlw $dst,$shift\t! logical right shift packed8S" %} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4334 |
ins_encode %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4335 |
__ psrlw($dst$$XMMRegister, (int)$shift$$constant); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4336 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4337 |
ins_pipe( pipe_slow ); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4338 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4339 |
|
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4340 |
instruct vsrl8S_reg(vecX dst, vecX src, vecS shift) %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4341 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 8); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4342 |
match(Set dst (URShiftVS src shift)); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4343 |
format %{ "vpsrlw $dst,$src,$shift\t! logical right shift packed8S" %} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4344 |
ins_encode %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4345 |
bool vector256 = false; |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4346 |
__ vpsrlw($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4347 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4348 |
ins_pipe( pipe_slow ); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4349 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4350 |
|
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4351 |
instruct vsrl8S_reg_imm(vecX dst, vecX src, immI8 shift) %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4352 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 8); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4353 |
match(Set dst (URShiftVS src shift)); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4354 |
format %{ "vpsrlw $dst,$src,$shift\t! logical right shift packed8S" %} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4355 |
ins_encode %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4356 |
bool vector256 = false; |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4357 |
__ vpsrlw($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4358 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4359 |
ins_pipe( pipe_slow ); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4360 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4361 |
|
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4362 |
instruct vsrl16S_reg(vecY dst, vecY src, vecS shift) %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4363 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 16); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4364 |
match(Set dst (URShiftVS src shift)); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4365 |
format %{ "vpsrlw $dst,$src,$shift\t! logical right shift packed16S" %} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4366 |
ins_encode %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4367 |
bool vector256 = true; |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4368 |
__ vpsrlw($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4369 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4370 |
ins_pipe( pipe_slow ); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4371 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4372 |
|
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4373 |
instruct vsrl16S_reg_imm(vecY dst, vecY src, immI8 shift) %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4374 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 16); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4375 |
match(Set dst (URShiftVS src shift)); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4376 |
format %{ "vpsrlw $dst,$src,$shift\t! logical right shift packed16S" %} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4377 |
ins_encode %{ |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4378 |
bool vector256 = true; |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4379 |
__ vpsrlw($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4380 |
%} |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4381 |
ins_pipe( pipe_slow ); |
e376e3d428c9
8001183: incorrect results of char vectors right shift operaiton
kvn
parents:
13930
diff
changeset
|
4382 |
%} |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4383 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4384 |
// Integers vector logical right shift |
13930 | 4385 |
instruct vsrl2I(vecD dst, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4386 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4387 |
match(Set dst (URShiftVI dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4388 |
format %{ "psrld $dst,$shift\t! logical right shift packed2I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4389 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4390 |
__ psrld($dst$$XMMRegister, $shift$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4391 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4392 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4393 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4394 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4395 |
instruct vsrl2I_imm(vecD dst, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4396 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4397 |
match(Set dst (URShiftVI dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4398 |
format %{ "psrld $dst,$shift\t! logical right shift packed2I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4399 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4400 |
__ psrld($dst$$XMMRegister, (int)$shift$$constant); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4401 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4402 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4403 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4404 |
|
13930 | 4405 |
instruct vsrl2I_reg(vecD dst, vecD src, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4406 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4407 |
match(Set dst (URShiftVI src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4408 |
format %{ "vpsrld $dst,$src,$shift\t! logical right shift packed2I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4409 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4410 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4411 |
__ vpsrld($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4412 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4413 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4414 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4415 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4416 |
instruct vsrl2I_reg_imm(vecD dst, vecD src, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4417 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4418 |
match(Set dst (URShiftVI src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4419 |
format %{ "vpsrld $dst,$src,$shift\t! logical right shift packed2I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4420 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4421 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4422 |
__ vpsrld($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4423 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4424 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4425 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4426 |
|
13930 | 4427 |
instruct vsrl4I(vecX dst, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4428 |
predicate(n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4429 |
match(Set dst (URShiftVI dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4430 |
format %{ "psrld $dst,$shift\t! logical right shift packed4I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4431 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4432 |
__ psrld($dst$$XMMRegister, $shift$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4433 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4434 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4435 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4436 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4437 |
instruct vsrl4I_imm(vecX dst, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4438 |
predicate(n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4439 |
match(Set dst (URShiftVI dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4440 |
format %{ "psrld $dst,$shift\t! logical right shift packed4I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4441 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4442 |
__ psrld($dst$$XMMRegister, (int)$shift$$constant); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4443 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4444 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4445 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4446 |
|
13930 | 4447 |
instruct vsrl4I_reg(vecX dst, vecX src, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4448 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4449 |
match(Set dst (URShiftVI src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4450 |
format %{ "vpsrld $dst,$src,$shift\t! logical right shift packed4I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4451 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4452 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4453 |
__ vpsrld($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4454 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4455 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4456 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4457 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4458 |
instruct vsrl4I_reg_imm(vecX dst, vecX src, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4459 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4460 |
match(Set dst (URShiftVI src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4461 |
format %{ "vpsrld $dst,$src,$shift\t! logical right shift packed4I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4462 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4463 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4464 |
__ vpsrld($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4465 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4466 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4467 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4468 |
|
13930 | 4469 |
instruct vsrl8I_reg(vecY dst, vecY src, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4470 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4471 |
match(Set dst (URShiftVI src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4472 |
format %{ "vpsrld $dst,$src,$shift\t! logical right shift packed8I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4473 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4474 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4475 |
__ vpsrld($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4476 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4477 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4478 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4479 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4480 |
instruct vsrl8I_reg_imm(vecY dst, vecY src, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4481 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4482 |
match(Set dst (URShiftVI src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4483 |
format %{ "vpsrld $dst,$src,$shift\t! logical right shift packed8I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4484 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4485 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4486 |
__ vpsrld($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4487 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4488 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4489 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4490 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4491 |
// Longs vector logical right shift |
13930 | 4492 |
instruct vsrl2L(vecX dst, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4493 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4494 |
match(Set dst (URShiftVL dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4495 |
format %{ "psrlq $dst,$shift\t! logical right shift packed2L" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4496 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4497 |
__ psrlq($dst$$XMMRegister, $shift$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4498 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4499 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4500 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4501 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4502 |
instruct vsrl2L_imm(vecX dst, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4503 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4504 |
match(Set dst (URShiftVL dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4505 |
format %{ "psrlq $dst,$shift\t! logical right shift packed2L" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4506 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4507 |
__ psrlq($dst$$XMMRegister, (int)$shift$$constant); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4508 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4509 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4510 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4511 |
|
13930 | 4512 |
instruct vsrl2L_reg(vecX dst, vecX src, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4513 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4514 |
match(Set dst (URShiftVL src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4515 |
format %{ "vpsrlq $dst,$src,$shift\t! logical right shift packed2L" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4516 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4517 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4518 |
__ vpsrlq($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4519 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4520 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4521 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4522 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4523 |
instruct vsrl2L_reg_imm(vecX dst, vecX src, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4524 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4525 |
match(Set dst (URShiftVL src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4526 |
format %{ "vpsrlq $dst,$src,$shift\t! logical right shift packed2L" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4527 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4528 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4529 |
__ vpsrlq($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4530 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4531 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4532 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4533 |
|
13930 | 4534 |
instruct vsrl4L_reg(vecY dst, vecY src, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4535 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4536 |
match(Set dst (URShiftVL src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4537 |
format %{ "vpsrlq $dst,$src,$shift\t! logical right shift packed4L" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4538 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4539 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4540 |
__ vpsrlq($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4541 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4542 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4543 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4544 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4545 |
instruct vsrl4L_reg_imm(vecY dst, vecY src, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4546 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4547 |
match(Set dst (URShiftVL src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4548 |
format %{ "vpsrlq $dst,$src,$shift\t! logical right shift packed4L" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4549 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4550 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4551 |
__ vpsrlq($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4552 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4553 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4554 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4555 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4556 |
// ------------------- ArithmeticRightShift ----------------------------------- |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4557 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4558 |
// Shorts/Chars vector arithmetic right shift |
13930 | 4559 |
instruct vsra2S(vecS dst, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4560 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4561 |
match(Set dst (RShiftVS dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4562 |
format %{ "psraw $dst,$shift\t! arithmetic right shift packed2S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4563 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4564 |
__ psraw($dst$$XMMRegister, $shift$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4565 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4566 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4567 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4568 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4569 |
instruct vsra2S_imm(vecS dst, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4570 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4571 |
match(Set dst (RShiftVS dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4572 |
format %{ "psraw $dst,$shift\t! arithmetic right shift packed2S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4573 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4574 |
__ psraw($dst$$XMMRegister, (int)$shift$$constant); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4575 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4576 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4577 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4578 |
|
13930 | 4579 |
instruct vsra2S_reg(vecS dst, vecS src, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4580 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4581 |
match(Set dst (RShiftVS src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4582 |
format %{ "vpsraw $dst,$src,$shift\t! arithmetic right shift packed2S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4583 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4584 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4585 |
__ vpsraw($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4586 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4587 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4588 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4589 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4590 |
instruct vsra2S_reg_imm(vecS dst, vecS src, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4591 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4592 |
match(Set dst (RShiftVS src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4593 |
format %{ "vpsraw $dst,$src,$shift\t! arithmetic right shift packed2S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4594 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4595 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4596 |
__ vpsraw($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4597 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4598 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4599 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4600 |
|
13930 | 4601 |
instruct vsra4S(vecD dst, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4602 |
predicate(n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4603 |
match(Set dst (RShiftVS dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4604 |
format %{ "psraw $dst,$shift\t! arithmetic right shift packed4S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4605 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4606 |
__ psraw($dst$$XMMRegister, $shift$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4607 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4608 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4609 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4610 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4611 |
instruct vsra4S_imm(vecD dst, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4612 |
predicate(n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4613 |
match(Set dst (RShiftVS dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4614 |
format %{ "psraw $dst,$shift\t! arithmetic right shift packed4S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4615 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4616 |
__ psraw($dst$$XMMRegister, (int)$shift$$constant); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4617 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4618 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4619 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4620 |
|
13930 | 4621 |
instruct vsra4S_reg(vecD dst, vecD src, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4622 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4623 |
match(Set dst (RShiftVS src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4624 |
format %{ "vpsraw $dst,$src,$shift\t! arithmetic right shift packed4S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4625 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4626 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4627 |
__ vpsraw($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4628 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4629 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4630 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4631 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4632 |
instruct vsra4S_reg_imm(vecD dst, vecD src, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4633 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4634 |
match(Set dst (RShiftVS src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4635 |
format %{ "vpsraw $dst,$src,$shift\t! arithmetic right shift packed4S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4636 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4637 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4638 |
__ vpsraw($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4639 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4640 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4641 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4642 |
|
13930 | 4643 |
instruct vsra8S(vecX dst, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4644 |
predicate(n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4645 |
match(Set dst (RShiftVS dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4646 |
format %{ "psraw $dst,$shift\t! arithmetic right shift packed8S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4647 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4648 |
__ psraw($dst$$XMMRegister, $shift$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4649 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4650 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4651 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4652 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4653 |
instruct vsra8S_imm(vecX dst, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4654 |
predicate(n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4655 |
match(Set dst (RShiftVS dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4656 |
format %{ "psraw $dst,$shift\t! arithmetic right shift packed8S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4657 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4658 |
__ psraw($dst$$XMMRegister, (int)$shift$$constant); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4659 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4660 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4661 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4662 |
|
13930 | 4663 |
instruct vsra8S_reg(vecX dst, vecX src, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4664 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4665 |
match(Set dst (RShiftVS src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4666 |
format %{ "vpsraw $dst,$src,$shift\t! arithmetic right shift packed8S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4667 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4668 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4669 |
__ vpsraw($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4670 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4671 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4672 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4673 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4674 |
instruct vsra8S_reg_imm(vecX dst, vecX src, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4675 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4676 |
match(Set dst (RShiftVS src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4677 |
format %{ "vpsraw $dst,$src,$shift\t! arithmetic right shift packed8S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4678 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4679 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4680 |
__ vpsraw($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4681 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4682 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4683 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4684 |
|
13930 | 4685 |
instruct vsra16S_reg(vecY dst, vecY src, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4686 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4687 |
match(Set dst (RShiftVS src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4688 |
format %{ "vpsraw $dst,$src,$shift\t! arithmetic right shift packed16S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4689 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4690 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4691 |
__ vpsraw($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4692 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4693 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4694 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4695 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4696 |
instruct vsra16S_reg_imm(vecY dst, vecY src, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4697 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4698 |
match(Set dst (RShiftVS src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4699 |
format %{ "vpsraw $dst,$src,$shift\t! arithmetic right shift packed16S" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4700 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4701 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4702 |
__ vpsraw($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4703 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4704 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4705 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4706 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4707 |
// Integers vector arithmetic right shift |
13930 | 4708 |
instruct vsra2I(vecD dst, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4709 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4710 |
match(Set dst (RShiftVI dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4711 |
format %{ "psrad $dst,$shift\t! arithmetic right shift packed2I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4712 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4713 |
__ psrad($dst$$XMMRegister, $shift$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4714 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4715 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4716 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4717 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4718 |
instruct vsra2I_imm(vecD dst, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4719 |
predicate(n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4720 |
match(Set dst (RShiftVI dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4721 |
format %{ "psrad $dst,$shift\t! arithmetic right shift packed2I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4722 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4723 |
__ psrad($dst$$XMMRegister, (int)$shift$$constant); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4724 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4725 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4726 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4727 |
|
13930 | 4728 |
instruct vsra2I_reg(vecD dst, vecD src, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4729 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4730 |
match(Set dst (RShiftVI src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4731 |
format %{ "vpsrad $dst,$src,$shift\t! arithmetic right shift packed2I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4732 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4733 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4734 |
__ vpsrad($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4735 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4736 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4737 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4738 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4739 |
instruct vsra2I_reg_imm(vecD dst, vecD src, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4740 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 2); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4741 |
match(Set dst (RShiftVI src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4742 |
format %{ "vpsrad $dst,$src,$shift\t! arithmetic right shift packed2I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4743 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4744 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4745 |
__ vpsrad($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4746 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4747 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4748 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4749 |
|
13930 | 4750 |
instruct vsra4I(vecX dst, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4751 |
predicate(n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4752 |
match(Set dst (RShiftVI dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4753 |
format %{ "psrad $dst,$shift\t! arithmetic right shift packed4I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4754 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4755 |
__ psrad($dst$$XMMRegister, $shift$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4756 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4757 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4758 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4759 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4760 |
instruct vsra4I_imm(vecX dst, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4761 |
predicate(n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4762 |
match(Set dst (RShiftVI dst shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4763 |
format %{ "psrad $dst,$shift\t! arithmetic right shift packed4I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4764 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4765 |
__ psrad($dst$$XMMRegister, (int)$shift$$constant); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4766 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4767 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4768 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4769 |
|
13930 | 4770 |
instruct vsra4I_reg(vecX dst, vecX src, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4771 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4772 |
match(Set dst (RShiftVI src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4773 |
format %{ "vpsrad $dst,$src,$shift\t! arithmetic right shift packed4I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4774 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4775 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4776 |
__ vpsrad($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4777 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4778 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4779 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4780 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4781 |
instruct vsra4I_reg_imm(vecX dst, vecX src, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4782 |
predicate(UseAVX > 0 && n->as_Vector()->length() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4783 |
match(Set dst (RShiftVI src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4784 |
format %{ "vpsrad $dst,$src,$shift\t! arithmetic right shift packed4I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4785 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4786 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4787 |
__ vpsrad($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4788 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4789 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4790 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4791 |
|
13930 | 4792 |
instruct vsra8I_reg(vecY dst, vecY src, vecS shift) %{ |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4793 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4794 |
match(Set dst (RShiftVI src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4795 |
format %{ "vpsrad $dst,$src,$shift\t! arithmetic right shift packed8I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4796 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4797 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4798 |
__ vpsrad($dst$$XMMRegister, $src$$XMMRegister, $shift$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4799 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4800 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4801 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4802 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4803 |
instruct vsra8I_reg_imm(vecY dst, vecY src, immI8 shift) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4804 |
predicate(UseAVX > 1 && n->as_Vector()->length() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4805 |
match(Set dst (RShiftVI src shift)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4806 |
format %{ "vpsrad $dst,$src,$shift\t! arithmetic right shift packed8I" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4807 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4808 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4809 |
__ vpsrad($dst$$XMMRegister, $src$$XMMRegister, (int)$shift$$constant, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4810 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4811 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4812 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4813 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4814 |
// There are no longs vector arithmetic right shift instructions. |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4815 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4816 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4817 |
// --------------------------------- AND -------------------------------------- |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4818 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4819 |
instruct vand4B(vecS dst, vecS src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4820 |
predicate(n->as_Vector()->length_in_bytes() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4821 |
match(Set dst (AndV dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4822 |
format %{ "pand $dst,$src\t! and vectors (4 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4823 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4824 |
__ pand($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4825 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4826 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4827 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4828 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4829 |
instruct vand4B_reg(vecS dst, vecS src1, vecS src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4830 |
predicate(UseAVX > 0 && n->as_Vector()->length_in_bytes() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4831 |
match(Set dst (AndV src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4832 |
format %{ "vpand $dst,$src1,$src2\t! and vectors (4 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4833 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4834 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4835 |
__ vpand($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4836 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4837 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4838 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4839 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4840 |
instruct vand8B(vecD dst, vecD src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4841 |
predicate(n->as_Vector()->length_in_bytes() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4842 |
match(Set dst (AndV dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4843 |
format %{ "pand $dst,$src\t! and vectors (8 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4844 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4845 |
__ pand($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4846 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4847 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4848 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4849 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4850 |
instruct vand8B_reg(vecD dst, vecD src1, vecD src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4851 |
predicate(UseAVX > 0 && n->as_Vector()->length_in_bytes() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4852 |
match(Set dst (AndV src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4853 |
format %{ "vpand $dst,$src1,$src2\t! and vectors (8 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4854 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4855 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4856 |
__ vpand($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4857 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4858 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4859 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4860 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4861 |
instruct vand16B(vecX dst, vecX src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4862 |
predicate(n->as_Vector()->length_in_bytes() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4863 |
match(Set dst (AndV dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4864 |
format %{ "pand $dst,$src\t! and vectors (16 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4865 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4866 |
__ pand($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4867 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4868 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4869 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4870 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4871 |
instruct vand16B_reg(vecX dst, vecX src1, vecX src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4872 |
predicate(UseAVX > 0 && n->as_Vector()->length_in_bytes() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4873 |
match(Set dst (AndV src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4874 |
format %{ "vpand $dst,$src1,$src2\t! and vectors (16 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4875 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4876 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4877 |
__ vpand($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4878 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4879 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4880 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4881 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4882 |
instruct vand16B_mem(vecX dst, vecX src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4883 |
predicate(UseAVX > 0 && n->as_Vector()->length_in_bytes() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4884 |
match(Set dst (AndV src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4885 |
format %{ "vpand $dst,$src,$mem\t! and vectors (16 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4886 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4887 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4888 |
__ vpand($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4889 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4890 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4891 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4892 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4893 |
instruct vand32B_reg(vecY dst, vecY src1, vecY src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4894 |
predicate(UseAVX > 1 && n->as_Vector()->length_in_bytes() == 32); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4895 |
match(Set dst (AndV src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4896 |
format %{ "vpand $dst,$src1,$src2\t! and vectors (32 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4897 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4898 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4899 |
__ vpand($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4900 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4901 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4902 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4903 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4904 |
instruct vand32B_mem(vecY dst, vecY src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4905 |
predicate(UseAVX > 1 && n->as_Vector()->length_in_bytes() == 32); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4906 |
match(Set dst (AndV src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4907 |
format %{ "vpand $dst,$src,$mem\t! and vectors (32 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4908 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4909 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4910 |
__ vpand($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4911 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4912 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4913 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4914 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4915 |
// --------------------------------- OR --------------------------------------- |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4916 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4917 |
instruct vor4B(vecS dst, vecS src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4918 |
predicate(n->as_Vector()->length_in_bytes() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4919 |
match(Set dst (OrV dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4920 |
format %{ "por $dst,$src\t! or vectors (4 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4921 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4922 |
__ por($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4923 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4924 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4925 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4926 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4927 |
instruct vor4B_reg(vecS dst, vecS src1, vecS src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4928 |
predicate(UseAVX > 0 && n->as_Vector()->length_in_bytes() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4929 |
match(Set dst (OrV src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4930 |
format %{ "vpor $dst,$src1,$src2\t! or vectors (4 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4931 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4932 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4933 |
__ vpor($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4934 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4935 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4936 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4937 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4938 |
instruct vor8B(vecD dst, vecD src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4939 |
predicate(n->as_Vector()->length_in_bytes() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4940 |
match(Set dst (OrV dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4941 |
format %{ "por $dst,$src\t! or vectors (8 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4942 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4943 |
__ por($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4944 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4945 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4946 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4947 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4948 |
instruct vor8B_reg(vecD dst, vecD src1, vecD src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4949 |
predicate(UseAVX > 0 && n->as_Vector()->length_in_bytes() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4950 |
match(Set dst (OrV src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4951 |
format %{ "vpor $dst,$src1,$src2\t! or vectors (8 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4952 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4953 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4954 |
__ vpor($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4955 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4956 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4957 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4958 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4959 |
instruct vor16B(vecX dst, vecX src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4960 |
predicate(n->as_Vector()->length_in_bytes() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4961 |
match(Set dst (OrV dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4962 |
format %{ "por $dst,$src\t! or vectors (16 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4963 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4964 |
__ por($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4965 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4966 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4967 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4968 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4969 |
instruct vor16B_reg(vecX dst, vecX src1, vecX src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4970 |
predicate(UseAVX > 0 && n->as_Vector()->length_in_bytes() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4971 |
match(Set dst (OrV src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4972 |
format %{ "vpor $dst,$src1,$src2\t! or vectors (16 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4973 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4974 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4975 |
__ vpor($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4976 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4977 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4978 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4979 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4980 |
instruct vor16B_mem(vecX dst, vecX src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4981 |
predicate(UseAVX > 0 && n->as_Vector()->length_in_bytes() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4982 |
match(Set dst (OrV src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4983 |
format %{ "vpor $dst,$src,$mem\t! or vectors (16 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4984 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4985 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4986 |
__ vpor($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4987 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4988 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4989 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4990 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4991 |
instruct vor32B_reg(vecY dst, vecY src1, vecY src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4992 |
predicate(UseAVX > 1 && n->as_Vector()->length_in_bytes() == 32); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4993 |
match(Set dst (OrV src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4994 |
format %{ "vpor $dst,$src1,$src2\t! or vectors (32 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4995 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4996 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4997 |
__ vpor($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4998 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
4999 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5000 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5001 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5002 |
instruct vor32B_mem(vecY dst, vecY src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5003 |
predicate(UseAVX > 1 && n->as_Vector()->length_in_bytes() == 32); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5004 |
match(Set dst (OrV src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5005 |
format %{ "vpor $dst,$src,$mem\t! or vectors (32 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5006 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5007 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5008 |
__ vpor($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5009 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5010 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5011 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5012 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5013 |
// --------------------------------- XOR -------------------------------------- |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5014 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5015 |
instruct vxor4B(vecS dst, vecS src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5016 |
predicate(n->as_Vector()->length_in_bytes() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5017 |
match(Set dst (XorV dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5018 |
format %{ "pxor $dst,$src\t! xor vectors (4 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5019 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5020 |
__ pxor($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5021 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5022 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5023 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5024 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5025 |
instruct vxor4B_reg(vecS dst, vecS src1, vecS src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5026 |
predicate(UseAVX > 0 && n->as_Vector()->length_in_bytes() == 4); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5027 |
match(Set dst (XorV src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5028 |
format %{ "vpxor $dst,$src1,$src2\t! xor vectors (4 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5029 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5030 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5031 |
__ vpxor($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5032 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5033 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5034 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5035 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5036 |
instruct vxor8B(vecD dst, vecD src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5037 |
predicate(n->as_Vector()->length_in_bytes() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5038 |
match(Set dst (XorV dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5039 |
format %{ "pxor $dst,$src\t! xor vectors (8 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5040 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5041 |
__ pxor($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5042 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5043 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5044 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5045 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5046 |
instruct vxor8B_reg(vecD dst, vecD src1, vecD src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5047 |
predicate(UseAVX > 0 && n->as_Vector()->length_in_bytes() == 8); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5048 |
match(Set dst (XorV src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5049 |
format %{ "vpxor $dst,$src1,$src2\t! xor vectors (8 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5050 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5051 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5052 |
__ vpxor($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5053 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5054 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5055 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5056 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5057 |
instruct vxor16B(vecX dst, vecX src) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5058 |
predicate(n->as_Vector()->length_in_bytes() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5059 |
match(Set dst (XorV dst src)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5060 |
format %{ "pxor $dst,$src\t! xor vectors (16 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5061 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5062 |
__ pxor($dst$$XMMRegister, $src$$XMMRegister); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5063 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5064 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5065 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5066 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5067 |
instruct vxor16B_reg(vecX dst, vecX src1, vecX src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5068 |
predicate(UseAVX > 0 && n->as_Vector()->length_in_bytes() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5069 |
match(Set dst (XorV src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5070 |
format %{ "vpxor $dst,$src1,$src2\t! xor vectors (16 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5071 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5072 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5073 |
__ vpxor($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5074 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5075 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5076 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5077 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5078 |
instruct vxor16B_mem(vecX dst, vecX src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5079 |
predicate(UseAVX > 0 && n->as_Vector()->length_in_bytes() == 16); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5080 |
match(Set dst (XorV src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5081 |
format %{ "vpxor $dst,$src,$mem\t! xor vectors (16 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5082 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5083 |
bool vector256 = false; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5084 |
__ vpxor($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5085 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5086 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5087 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5088 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5089 |
instruct vxor32B_reg(vecY dst, vecY src1, vecY src2) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5090 |
predicate(UseAVX > 1 && n->as_Vector()->length_in_bytes() == 32); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5091 |
match(Set dst (XorV src1 src2)); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5092 |
format %{ "vpxor $dst,$src1,$src2\t! xor vectors (32 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5093 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5094 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5095 |
__ vpxor($dst$$XMMRegister, $src1$$XMMRegister, $src2$$XMMRegister, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5096 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5097 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5098 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5099 |
|
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5100 |
instruct vxor32B_mem(vecY dst, vecY src, memory mem) %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5101 |
predicate(UseAVX > 1 && n->as_Vector()->length_in_bytes() == 32); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5102 |
match(Set dst (XorV src (LoadVector mem))); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5103 |
format %{ "vpxor $dst,$src,$mem\t! xor vectors (32 bytes)" %} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5104 |
ins_encode %{ |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5105 |
bool vector256 = true; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5106 |
__ vpxor($dst$$XMMRegister, $src$$XMMRegister, $mem$$Address, vector256); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5107 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5108 |
ins_pipe( pipe_slow ); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5109 |
%} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13294
diff
changeset
|
5110 |