view tests/mini/compile_asm_fpinstr_compare.d @ 1351:8d501abecd24

Initial (but disabled) fix for ticket #294 , the actual part that fixes the bug is in a #if 0 block as I'm afraid it will cause regressions. I'm most likely not going to be around tonight, and maybe not tomorrow as well, so I'm pushing it in case someone wants to run some serious testing/investigate the problem noted in llvmhelpers.cpp : realignOffset .
author Tomas Lindquist Olsen <tomas.l.olsen gmail com>
date Thu, 14 May 2009 17:20:17 +0200
parents 85b80c4fe48a
children
line wrap: on
line source

void main() {
asm {
    fmul;
    fmul ST, ST(1);
    fmul ST(1), ST;
    fmulp;
    fmulp ST(1), ST;

    fdiv;
    fdiv ST, ST(1);
    fdiv ST(1), ST;
    fdivp;
    fdivp ST(1), ST;
    fdivr;
    fdivr ST, ST(1);
    fdivr ST(1), ST;
    fdivrp;
    fdivrp ST(1), ST;

    fsub;
    fsub ST, ST(1);
    fsub ST(1), ST;
    fsubp;
    fsubp ST(1), ST;
    fsubr;
    fsubr ST, ST(1);
    fsubr ST(1), ST;
    fsubrp;
    fsubrp ST(1), ST;    
}
}