X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fz80%2Fmain.c;h=2f94e3615d7b93733eb1c1e6b46c18d94f948f1a;hb=99bc0b93a68e12551d7c061a435715008835d50a;hp=86501c99324a05cc6e8bb8c6949f8bbdde0dbe54;hpb=a9fac239e06ffa5aebdf9590931b65cf5e0ca11a;p=fw%2Fsdcc diff --git a/src/z80/main.c b/src/z80/main.c index 86501c99..2f94e361 100644 --- a/src/z80/main.c +++ b/src/z80/main.c @@ -652,6 +652,13 @@ _hasNativeMulFor (iCode *ic, sym_link *left, sym_link *right) test = right; val = OP_VALUE (IC_RIGHT (ic)); } + /* 8x8 unsigned multiplication code is shorter than + call overhead for the multiplication routine. */ + else if ( IS_CHAR (right) && IS_UNSIGNED (right) && + IS_CHAR (left) && IS_UNSIGNED(left) && !IS_GB) + { + return TRUE; + } else { return FALSE;