|
|
1
|
+;;; -*- Mode: LISP; Syntax: Common-Lisp; Base: 10; Package: x86 -*-
|
|
|
2
|
+;;;
|
|
|
3
|
+;;; **********************************************************************
|
|
|
4
|
+;;; This code was written as part of the CMU Common Lisp project at
|
|
|
5
|
+;;; Carnegie Mellon University, and has been placed in the public domain.
|
|
|
6
|
+;;; If you want to use this code or any part of CMU Common Lisp, please contact
|
|
|
7
|
+;;; Scott Fahlman or slisp-group@cs.cmu.edu.
|
|
|
8
|
+;;;
|
|
|
9
|
+(ext:file-comment
|
|
|
10
|
+ "$Header: src/compiler/x86/sse2-array.lisp $")
|
|
|
11
|
+;;;
|
|
|
12
|
+;;; **********************************************************************
|
|
|
13
|
+;;;
|
|
|
14
|
+;;; This file contains the x86 definitions for array operations.
|
|
|
15
|
+;;;
|
|
|
16
|
+
|
|
|
17
|
+(in-package :amd64)
|
|
|
18
|
+(intl:textdomain "cmucl-sse2")
|
|
|
19
|
+
|
|
|
20
|
+(macrolet
|
|
|
21
|
+ ((frob (type move copy scale)
|
|
|
22
|
+ (let ((ref-name (symbolicate "DATA-VECTOR-REF/SIMPLE-ARRAY-" type "-FLOAT"))
|
|
|
23
|
+ (c-ref-name (symbolicate "DATA-VECTOR-REF-C/SIMPLE-ARRAY-" type "-FLOAT"))
|
|
|
24
|
+ (set-name (symbolicate "DATA-VECTOR-SET/SIMPLE-ARRAY-" type "-FLOAT"))
|
|
|
25
|
+ (c-set-name (symbolicate "DATA-VECTOR-SET-C/SIMPLE-ARRAY-" type "-FLOAT"))
|
|
|
26
|
+ (result-sc (symbolicate type "-REG"))
|
|
|
27
|
+ (result-type (symbolicate type "-FLOAT"))
|
|
|
28
|
+ (array-sc (symbolicate "SIMPLE-ARRAY-" type "-FLOAT")))
|
|
|
29
|
+ `(progn
|
|
|
30
|
+ (define-vop (,ref-name)
|
|
|
31
|
+ (:note "inline array access")
|
|
|
32
|
+ (:translate data-vector-ref)
|
|
|
33
|
+ (:policy :fast-safe)
|
|
|
34
|
+ (:args (object :scs (descriptor-reg))
|
|
|
35
|
+ (index :scs (any-reg)))
|
|
|
36
|
+ (:arg-types ,array-sc positive-fixnum)
|
|
|
37
|
+ (:results (value :scs (,result-sc)))
|
|
|
38
|
+ (:result-types ,result-type)
|
|
|
39
|
+ (:guard (backend-featurep :sse2))
|
|
|
40
|
+ (:generator 5
|
|
|
41
|
+ (inst ,move value
|
|
|
42
|
+ (make-ea :dword :base object :index index :scale ,scale
|
|
|
43
|
+ :disp (- (* vm:vector-data-offset vm:word-bytes)
|
|
|
44
|
+ vm:other-pointer-type)))))
|
|
|
45
|
+ (define-vop (,c-ref-name)
|
|
|
46
|
+ (:note "inline array access")
|
|
|
47
|
+ (:translate data-vector-ref)
|
|
|
48
|
+ (:policy :fast-safe)
|
|
|
49
|
+ (:args (object :scs (descriptor-reg)))
|
|
|
50
|
+ (:info index)
|
|
|
51
|
+ (:arg-types ,array-sc (:constant (signed-byte 30)))
|
|
|
52
|
+ (:results (value :scs (,result-sc)))
|
|
|
53
|
+ (:result-types ,result-type)
|
|
|
54
|
+ (:guard (backend-featurep :sse2))
|
|
|
55
|
+ (:generator 4
|
|
|
56
|
+ (inst ,move value
|
|
|
57
|
+ (make-ea :dword :base object
|
|
|
58
|
+ :disp (- (+ (* vm:vector-data-offset vm:word-bytes)
|
|
|
59
|
+ (* ,(* 4 scale) index))
|
|
|
60
|
+ vm:other-pointer-type)))))
|
|
|
61
|
+ (define-vop (,set-name)
|
|
|
62
|
+ (:note "inline array store")
|
|
|
63
|
+ (:translate data-vector-set)
|
|
|
64
|
+ (:policy :fast-safe)
|
|
|
65
|
+ (:args (object :scs (descriptor-reg))
|
|
|
66
|
+ (index :scs (any-reg))
|
|
|
67
|
+ (value :scs (,result-sc) :target result))
|
|
|
68
|
+ (:arg-types ,array-sc positive-fixnum ,result-type)
|
|
|
69
|
+ (:results (result :scs (,result-sc)))
|
|
|
70
|
+ (:result-types ,result-type)
|
|
|
71
|
+ (:guard (backend-featurep :sse2))
|
|
|
72
|
+ (:generator 5
|
|
|
73
|
+ (inst ,move (make-ea :dword :base object :index index :scale ,scale
|
|
|
74
|
+ :disp (- (* vm:vector-data-offset vm:word-bytes)
|
|
|
75
|
+ vm:other-pointer-type))
|
|
|
76
|
+ value)
|
|
|
77
|
+ (unless (location= result value)
|
|
|
78
|
+ (inst ,copy result value))))
|
|
|
79
|
+
|
|
|
80
|
+ (define-vop (,c-set-name)
|
|
|
81
|
+ (:note "inline array store")
|
|
|
82
|
+ (:translate data-vector-set)
|
|
|
83
|
+ (:policy :fast-safe)
|
|
|
84
|
+ (:args (object :scs (descriptor-reg))
|
|
|
85
|
+ (value :scs (,result-sc) :target result))
|
|
|
86
|
+ (:info index)
|
|
|
87
|
+ (:arg-types ,array-sc (:constant (signed-byte 30))
|
|
|
88
|
+ ,result-type)
|
|
|
89
|
+ (:results (result :scs (,result-sc)))
|
|
|
90
|
+ (:result-types ,result-type)
|
|
|
91
|
+ (:guard (backend-featurep :sse2))
|
|
|
92
|
+ (:generator 4
|
|
|
93
|
+ (inst ,move (make-ea :dword :base object
|
|
|
94
|
+ :disp (- (+ (* vm:vector-data-offset
|
|
|
95
|
+ vm:word-bytes)
|
|
|
96
|
+ (* ,(* 4 scale) index))
|
|
|
97
|
+ vm:other-pointer-type))
|
|
|
98
|
+ value)
|
|
|
99
|
+ (unless (location= result value)
|
|
|
100
|
+ (inst ,copy result value))))))))
|
|
|
101
|
+ (frob single movss movss 1)
|
|
|
102
|
+ (frob double movsd movsd 2)
|
|
|
103
|
+ (frob complex-single movlps movaps 2)
|
|
|
104
|
+ (frob complex-double movupd movapd 4))
|
|
|
105
|
+
|
|
|
106
|
+
|
|
|
107
|
+#+double-double
|
|
|
108
|
+(progn
|
|
|
109
|
+(define-vop (data-vector-ref/simple-array-double-double-float)
|
|
|
110
|
+ (:note "inline array access")
|
|
|
111
|
+ (:translate data-vector-ref)
|
|
|
112
|
+ (:policy :fast-safe)
|
|
|
113
|
+ (:args (object :scs (descriptor-reg) :to :result)
|
|
|
114
|
+ (index :scs (any-reg)))
|
|
|
115
|
+ (:arg-types simple-array-double-double-float positive-fixnum)
|
|
|
116
|
+ (:results (value :scs (double-double-reg)))
|
|
|
117
|
+ (:result-types double-double-float)
|
|
|
118
|
+ (:guard (backend-featurep :sse2))
|
|
|
119
|
+ (:generator 7
|
|
|
120
|
+ (let ((hi-tn (double-double-reg-hi-tn value)))
|
|
|
121
|
+ (inst movsd hi-tn
|
|
|
122
|
+ (make-ea :dword :base object :index index :scale 4
|
|
|
123
|
+ :disp (- (* vm:vector-data-offset vm:word-bytes)
|
|
|
124
|
+ vm:other-pointer-type))))
|
|
|
125
|
+ (let ((lo-tn (double-double-reg-lo-tn value)))
|
|
|
126
|
+ (inst movsd lo-tn (make-ea :dword :base object :index index :scale 4
|
|
|
127
|
+ :disp (- (+ (* vm:vector-data-offset vm:word-bytes)
|
|
|
128
|
+ 8)
|
|
|
129
|
+ vm:other-pointer-type))))))
|
|
|
130
|
+
|
|
|
131
|
+(define-vop (data-vector-ref-c/simple-array-double-double-float)
|
|
|
132
|
+ (:note "inline array access")
|
|
|
133
|
+ (:translate data-vector-ref)
|
|
|
134
|
+ (:policy :fast-safe)
|
|
|
135
|
+ (:args (object :scs (descriptor-reg) :to :result))
|
|
|
136
|
+ (:arg-types simple-array-double-double-float (:constant index))
|
|
|
137
|
+ (:info index)
|
|
|
138
|
+ (:results (value :scs (double-double-reg)))
|
|
|
139
|
+ (:result-types double-double-float)
|
|
|
140
|
+ (:guard (backend-featurep :sse2))
|
|
|
141
|
+ (:generator 5
|
|
|
142
|
+ (let ((hi-tn (double-double-reg-hi-tn value)))
|
|
|
143
|
+ (inst movsd hi-tn
|
|
|
144
|
+ (make-ea :dword :base object
|
|
|
145
|
+ :disp (- (+ (* vm:vector-data-offset vm:word-bytes)
|
|
|
146
|
+ (* 16 index))
|
|
|
147
|
+ vm:other-pointer-type))))
|
|
|
148
|
+ (let ((lo-tn (double-double-reg-lo-tn value)))
|
|
|
149
|
+ (inst movsd lo-tn
|
|
|
150
|
+ (make-ea :dword :base object
|
|
|
151
|
+ :disp (- (+ (* vm:vector-data-offset vm:word-bytes)
|
|
|
152
|
+ (* 16 index)
|
|
|
153
|
+ 8)
|
|
|
154
|
+ vm:other-pointer-type))))))
|
|
|
155
|
+
|
|
|
156
|
+(define-vop (data-vector-set/simple-array-double-double-float)
|
|
|
157
|
+ (:note "inline array store")
|
|
|
158
|
+ (:translate data-vector-set)
|
|
|
159
|
+ (:policy :fast-safe)
|
|
|
160
|
+ (:args (object :scs (descriptor-reg) :to :result)
|
|
|
161
|
+ (index :scs (any-reg))
|
|
|
162
|
+ (value :scs (double-double-reg) :target result))
|
|
|
163
|
+ (:arg-types simple-array-double-double-float positive-fixnum
|
|
|
164
|
+ double-double-float)
|
|
|
165
|
+ (:results (result :scs (double-double-reg)))
|
|
|
166
|
+ (:result-types double-double-float)
|
|
|
167
|
+ (:guard (backend-featurep :sse2))
|
|
|
168
|
+ (:generator 20
|
|
|
169
|
+ (let ((value-real (double-double-reg-hi-tn value))
|
|
|
170
|
+ (result-real (double-double-reg-hi-tn result)))
|
|
|
171
|
+ (inst movsd (make-ea :dword :base object :index index :scale 4
|
|
|
172
|
+ :disp (- (* vm:vector-data-offset
|
|
|
173
|
+ vm:word-bytes)
|
|
|
174
|
+ vm:other-pointer-type))
|
|
|
175
|
+ value-real)
|
|
|
176
|
+ (inst movsd result-real value-real))
|
|
|
177
|
+ (let ((value-imag (double-double-reg-lo-tn value))
|
|
|
178
|
+ (result-imag (double-double-reg-lo-tn result)))
|
|
|
179
|
+ (inst movsd (make-ea :dword :base object :index index :scale 4
|
|
|
180
|
+ :disp (- (+ (* vm:vector-data-offset vm:word-bytes)
|
|
|
181
|
+ 8)
|
|
|
182
|
+ vm:other-pointer-type))
|
|
|
183
|
+ value-imag)
|
|
|
184
|
+ (inst movsd result-imag value-imag))))
|
|
|
185
|
+
|
|
|
186
|
+(define-vop (data-vector-set-c/simple-array-double-double-float)
|
|
|
187
|
+ (:note "inline array store")
|
|
|
188
|
+ (:translate data-vector-set)
|
|
|
189
|
+ (:policy :fast-safe)
|
|
|
190
|
+ (:args (object :scs (descriptor-reg) :to :result)
|
|
|
191
|
+ (value :scs (double-double-reg) :target result))
|
|
|
192
|
+ (:arg-types simple-array-double-double-float
|
|
|
193
|
+ (:constant index)
|
|
|
194
|
+ double-double-float)
|
|
|
195
|
+ (:info index)
|
|
|
196
|
+ (:results (result :scs (double-double-reg)))
|
|
|
197
|
+ (:result-types double-double-float)
|
|
|
198
|
+ (:guard (backend-featurep :sse2))
|
|
|
199
|
+ (:generator 20
|
|
|
200
|
+ (let ((value-real (double-double-reg-hi-tn value))
|
|
|
201
|
+ (result-real (double-double-reg-hi-tn result)))
|
|
|
202
|
+ (inst movsd (make-ea :dword :base object
|
|
|
203
|
+ :disp (- (+ (* vm:vector-data-offset
|
|
|
204
|
+ vm:word-bytes)
|
|
|
205
|
+ (* 16 index))
|
|
|
206
|
+ vm:other-pointer-type))
|
|
|
207
|
+ value-real)
|
|
|
208
|
+ (inst movsd result-real value-real))
|
|
|
209
|
+ (let ((value-imag (double-double-reg-lo-tn value))
|
|
|
210
|
+ (result-imag (double-double-reg-lo-tn result)))
|
|
|
211
|
+ (inst movsd (make-ea :dword :base object
|
|
|
212
|
+ :disp (- (+ (* vm:vector-data-offset vm:word-bytes)
|
|
|
213
|
+ (* 16 index)
|
|
|
214
|
+ 8)
|
|
|
215
|
+ vm:other-pointer-type))
|
|
|
216
|
+ value-imag)
|
|
|
217
|
+ (inst movsd result-imag value-imag))))
|
|
|
218
|
+
|
|
|
219
|
+(define-vop (data-vector-ref/simple-array-complex-double-double-float)
|
|
|
220
|
+ (:note "inline array access")
|
|
|
221
|
+ (:translate data-vector-ref)
|
|
|
222
|
+ (:policy :fast-safe)
|
|
|
223
|
+ (:args (object :scs (descriptor-reg) :to :result)
|
|
|
224
|
+ (index :scs (any-reg)))
|
|
|
225
|
+ (:arg-types simple-array-complex-double-double-float positive-fixnum)
|
|
|
226
|
+ (:results (value :scs (complex-double-double-reg)))
|
|
|
227
|
+ (:result-types complex-double-double-float)
|
|
|
228
|
+ (:guard (backend-featurep :sse2))
|
|
|
229
|
+ (:generator 7
|
|
|
230
|
+ (let ((real-tn (complex-double-double-reg-real-hi-tn value)))
|
|
|
231
|
+ (inst movsd real-tn
|
|
|
232
|
+ (make-ea :dword :base object :index index :scale 8
|
|
|
233
|
+ :disp (- (* vm:vector-data-offset vm:word-bytes)
|
|
|
234
|
+ vm:other-pointer-type))))
|
|
|
235
|
+ (let ((real-tn (complex-double-double-reg-real-lo-tn value)))
|
|
|
236
|
+ (inst movsd real-tn
|
|
|
237
|
+ (make-ea :dword :base object :index index :scale 8
|
|
|
238
|
+ :disp (- (+ (* vm:vector-data-offset vm:word-bytes)
|
|
|
239
|
+ 8)
|
|
|
240
|
+ vm:other-pointer-type))))
|
|
|
241
|
+ (let ((imag-tn (complex-double-double-reg-imag-hi-tn value)))
|
|
|
242
|
+ (inst movsd imag-tn
|
|
|
243
|
+ (make-ea :dword :base object :index index :scale 8
|
|
|
244
|
+ :disp (- (+ (* vm:vector-data-offset vm:word-bytes)
|
|
|
245
|
+ 16)
|
|
|
246
|
+ vm:other-pointer-type))))
|
|
|
247
|
+ (let ((imag-tn (complex-double-double-reg-imag-lo-tn value)))
|
|
|
248
|
+ (inst movsd imag-tn
|
|
|
249
|
+ (make-ea :dword :base object :index index :scale 8
|
|
|
250
|
+ :disp (- (+ (* vm:vector-data-offset vm:word-bytes)
|
|
|
251
|
+ 24)
|
|
|
252
|
+ vm:other-pointer-type))))))
|
|
|
253
|
+
|
|
|
254
|
+(define-vop (data-vector-ref-c/simple-array-complex-double-double-float)
|
|
|
255
|
+ (:note "inline array access")
|
|
|
256
|
+ (:translate data-vector-ref)
|
|
|
257
|
+ (:policy :fast-safe)
|
|
|
258
|
+ (:args (object :scs (descriptor-reg) :to :result))
|
|
|
259
|
+ (:arg-types simple-array-complex-double-double-float (:constant index))
|
|
|
260
|
+ (:info index)
|
|
|
261
|
+ (:results (value :scs (complex-double-double-reg)))
|
|
|
262
|
+ (:result-types complex-double-double-float)
|
|
|
263
|
+ (:guard (backend-featurep :sse2))
|
|
|
264
|
+ (:generator 5
|
|
|
265
|
+ (let ((real-tn (complex-double-double-reg-real-hi-tn value)))
|
|
|
266
|
+ (inst movsd real-tn
|
|
|
267
|
+ (make-ea :dword :base object
|
|
|
268
|
+ :disp (- (+ (* vm:vector-data-offset vm:word-bytes)
|
|
|
269
|
+ (* 32 index))
|
|
|
270
|
+ vm:other-pointer-type))))
|
|
|
271
|
+ (let ((real-tn (complex-double-double-reg-real-lo-tn value)))
|
|
|
272
|
+ (inst movsd real-tn
|
|
|
273
|
+ (make-ea :dword :base object
|
|
|
274
|
+ :disp (- (+ (* vm:vector-data-offset vm:word-bytes)
|
|
|
275
|
+ (* 32 index)
|
|
|
276
|
+ 8)
|
|
|
277
|
+ vm:other-pointer-type))))
|
|
|
278
|
+ (let ((imag-tn (complex-double-double-reg-imag-hi-tn value)))
|
|
|
279
|
+ (inst movsd imag-tn
|
|
|
280
|
+ (make-ea :dword :base object
|
|
|
281
|
+ :disp (- (+ (* vm:vector-data-offset vm:word-bytes)
|
|
|
282
|
+ (* 32 index)
|
|
|
283
|
+ 16)
|
|
|
284
|
+ vm:other-pointer-type))))
|
|
|
285
|
+ (let ((imag-tn (complex-double-double-reg-imag-lo-tn value)))
|
|
|
286
|
+ (inst movsd imag-tn
|
|
|
287
|
+ (make-ea :dword :base object
|
|
|
288
|
+ :disp (- (+ (* vm:vector-data-offset vm:word-bytes)
|
|
|
289
|
+ (* 32 index)
|
|
|
290
|
+ 24)
|
|
|
291
|
+ vm:other-pointer-type))))))
|
|
|
292
|
+
|
|
|
293
|
+(define-vop (data-vector-set/simple-array-complex-double-double-float)
|
|
|
294
|
+ (:note "inline array store")
|
|
|
295
|
+ (:translate data-vector-set)
|
|
|
296
|
+ (:policy :fast-safe)
|
|
|
297
|
+ (:args (object :scs (descriptor-reg) :to :result)
|
|
|
298
|
+ (index :scs (any-reg))
|
|
|
299
|
+ (value :scs (complex-double-double-reg) :target result))
|
|
|
300
|
+ (:arg-types simple-array-complex-double-double-float positive-fixnum
|
|
|
301
|
+ complex-double-double-float)
|
|
|
302
|
+ (:results (result :scs (complex-double-double-reg)))
|
|
|
303
|
+ (:result-types complex-double-double-float)
|
|
|
304
|
+ (:guard (backend-featurep :sse2))
|
|
|
305
|
+ (:generator 20
|
|
|
306
|
+ (let ((value-real (complex-double-double-reg-real-hi-tn value))
|
|
|
307
|
+ (result-real (complex-double-double-reg-real-hi-tn result)))
|
|
|
308
|
+ (inst movsd (make-ea :dword :base object :index index :scale 8
|
|
|
309
|
+ :disp (- (* vm:vector-data-offset
|
|
|
310
|
+ vm:word-bytes)
|
|
|
311
|
+ vm:other-pointer-type))
|
|
|
312
|
+ value-real)
|
|
|
313
|
+ (inst movsd result-real value-real))
|
|
|
314
|
+ (let ((value-real (complex-double-double-reg-real-lo-tn value))
|
|
|
315
|
+ (result-real (complex-double-double-reg-real-lo-tn result)))
|
|
|
316
|
+ (inst movsd (make-ea :dword :base object :index index :scale 8
|
|
|
317
|
+ :disp (- (+ (* vm:vector-data-offset
|
|
|
318
|
+ vm:word-bytes)
|
|
|
319
|
+ 8)
|
|
|
320
|
+ vm:other-pointer-type))
|
|
|
321
|
+ value-real)
|
|
|
322
|
+ (inst movsd result-real value-real))
|
|
|
323
|
+ (let ((value-imag (complex-double-double-reg-imag-hi-tn value))
|
|
|
324
|
+ (result-imag (complex-double-double-reg-imag-hi-tn result)))
|
|
|
325
|
+ (inst movsd (make-ea :dword :base object :index index :scale 8
|
|
|
326
|
+ :disp (- (+ (* vm:vector-data-offset vm:word-bytes)
|
|
|
327
|
+ 16)
|
|
|
328
|
+ vm:other-pointer-type))
|
|
|
329
|
+ value-imag)
|
|
|
330
|
+ (inst movsd result-imag value-imag))
|
|
|
331
|
+ (let ((value-imag (complex-double-double-reg-imag-lo-tn value))
|
|
|
332
|
+ (result-imag (complex-double-double-reg-imag-lo-tn result)))
|
|
|
333
|
+ (inst movsd (make-ea :dword :base object :index index :scale 8
|
|
|
334
|
+ :disp (- (+ (* vm:vector-data-offset vm:word-bytes)
|
|
|
335
|
+ 24)
|
|
|
336
|
+ vm:other-pointer-type))
|
|
|
337
|
+ value-imag)
|
|
|
338
|
+ (inst movsd result-imag value-imag))))
|
|
|
339
|
+
|
|
|
340
|
+(define-vop (data-vector-set-c/simple-array-complex-double-double-float)
|
|
|
341
|
+ (:note "inline array store")
|
|
|
342
|
+ (:translate data-vector-set)
|
|
|
343
|
+ (:policy :fast-safe)
|
|
|
344
|
+ (:args (object :scs (descriptor-reg) :to :result)
|
|
|
345
|
+ (value :scs (complex-double-double-reg) :target result))
|
|
|
346
|
+ (:arg-types simple-array-complex-double-double-float
|
|
|
347
|
+ (:constant index)
|
|
|
348
|
+ complex-double-double-float)
|
|
|
349
|
+ (:info index)
|
|
|
350
|
+ (:results (result :scs (complex-double-double-reg)))
|
|
|
351
|
+ (:result-types complex-double-double-float)
|
|
|
352
|
+ (:guard (backend-featurep :sse2))
|
|
|
353
|
+ (:generator 20
|
|
|
354
|
+ (let ((value-real (complex-double-double-reg-real-hi-tn value))
|
|
|
355
|
+ (result-real (complex-double-double-reg-real-hi-tn result)))
|
|
|
356
|
+ (inst movsd (make-ea :dword :base object
|
|
|
357
|
+ :disp (- (+ (* vm:vector-data-offset
|
|
|
358
|
+ vm:word-bytes)
|
|
|
359
|
+ (* 32 index))
|
|
|
360
|
+ vm:other-pointer-type))
|
|
|
361
|
+ value-real)
|
|
|
362
|
+ (inst movsd result-real value-real))
|
|
|
363
|
+ (let ((value-real (complex-double-double-reg-real-lo-tn value))
|
|
|
364
|
+ (result-real (complex-double-double-reg-real-lo-tn result)))
|
|
|
365
|
+ (inst movsd (make-ea :dword :base object
|
|
|
366
|
+ :disp (- (+ (* vm:vector-data-offset
|
|
|
367
|
+ vm:word-bytes)
|
|
|
368
|
+ (* 32 index)
|
|
|
369
|
+ 8)
|
|
|
370
|
+ vm:other-pointer-type))
|
|
|
371
|
+ value-real)
|
|
|
372
|
+ (inst movsd result-real value-real))
|
|
|
373
|
+ (let ((value-imag (complex-double-double-reg-imag-hi-tn value))
|
|
|
374
|
+ (result-imag (complex-double-double-reg-imag-hi-tn result)))
|
|
|
375
|
+ (inst movsd (make-ea :dword :base object
|
|
|
376
|
+ :disp (- (+ (* vm:vector-data-offset vm:word-bytes)
|
|
|
377
|
+ (* 32 index)
|
|
|
378
|
+ 16)
|
|
|
379
|
+ vm:other-pointer-type))
|
|
|
380
|
+ value-imag)
|
|
|
381
|
+ (inst movsd result-imag value-imag))
|
|
|
382
|
+ (let ((value-imag (complex-double-double-reg-imag-lo-tn value))
|
|
|
383
|
+ (result-imag (complex-double-double-reg-imag-lo-tn result)))
|
|
|
384
|
+ (inst movsd (make-ea :dword :base object
|
|
|
385
|
+ :disp (- (+ (* vm:vector-data-offset vm:word-bytes)
|
|
|
386
|
+ (* 32 index)
|
|
|
387
|
+ 24)
|
|
|
388
|
+ vm:other-pointer-type))
|
|
|
389
|
+ value-imag)
|
|
|
390
|
+ (inst movsd result-imag value-imag))))
|
|
|
391
|
+
|
|
|
392
|
+)
|