view tests/mini/compile_asm_fpinstr_compare.d @ 1534:8ca25bd765a3

Build fix for the latest LLVMContext changes (LLVM r75445) This shouldn't break the build with older LLVM revs. We include LLVMContext.h in gen/llvm.h now to make the transition a little bit easier.
author Benjamin Kramer <benny.kra@gmail.com>
date Mon, 13 Jul 2009 12:17:58 +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;    
}
}