← Back to index
|
Original Bugzilla link
Bug 173 – incorrect size calculation for movq
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-06-01T13:00:00Z
Last change time
2014-02-15T13:20:41Z
Keywords
wrong-code
Assigned to
bugzilla
Creator
thomas-dloop
Comments
Comment #0
by thomas-dloop — 2006-06-01T13:00:33Z
asm{ movq MM0, z; } PASS: cfloat z; cfloat[1] z; double z; double[1] b; long z; long[1] z; FAIL: (bad type/size of operands 'movq') byte[8] z; char[8] z; dchar[2] z; float[2] z; int[2] z; short[4] z; wchar[4] z; XPASS: (too small, but accecpted by DMD) cfloat[0] z; double[0] z; long[0] z; test cases:
http://dstress.kuehne.cn/run/a/asm_movq_02_A.d
http://dstress.kuehne.cn/run/a/asm_movq_02_B.d
http://dstress.kuehne.cn/run/a/asm_movq_02_C.d
http://dstress.kuehne.cn/run/a/asm_movq_02_D.d
http://dstress.kuehne.cn/run/a/asm_movq_02_E.d
http://dstress.kuehne.cn/run/a/asm_movq_02_F.d
http://dstress.kuehne.cn/run/a/asm_movq_02_G.d
http://dstress.kuehne.cn/run/a/asm_movq_02_H.d
http://dstress.kuehne.cn/run/a/asm_movq_02_I.d
http://dstress.kuehne.cn/run/a/asm_movq_02_J.d
http://dstress.kuehne.cn/run/a/asm_movq_02_K.d
http://dstress.kuehne.cn/run/a/asm_movq_02_L.d
http://dstress.kuehne.cn/run/a/asm_movq_02_M.d
http://dstress.kuehne.cn/run/a/asm_movq_02_N.d
http://dstress.kuehne.cn/run/a/asm_movq_02_O.d
http://dstress.kuehne.cn/run/a/asm_movq_02_P.d
http://dstress.kuehne.cn/nocompile/a/asm_movq_02_Q.d
http://dstress.kuehne.cn/nocompile/a/asm_movq_02_R.d
http://dstress.kuehne.cn/nocompile/a/asm_movq_02_S.d
http://dstress.kuehne.cn/nocompile/a/asm_movq_02_T.d
http://dstress.kuehne.cn/nocompile/a/asm_movq_02_U.d
Comment #1
by bugzilla — 2006-06-04T22:17:26Z
Fixed in DMD 0.160
Comment #2
by thomas-dloop — 2006-06-28T12:42:46Z
long still fails:
http://dstress.kuehne.cn/run/a/asm_movq_02_O.d