www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Bug 173] New: incorrect size calculation for movq

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/bugzilla/show_bug.cgi?id=173

           Summary: incorrect size calculation for movq
           Product: D
           Version: 0.159
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: thomas-dloop kuehne.cn


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


-- 
Jun 01 2006
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/bugzilla/show_bug.cgi?id=173


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





Fixed in DMD 0.160


-- 
Jun 04 2006