diff options
Diffstat (limited to 'compiler/codeGen')
| -rw-r--r-- | compiler/codeGen/StgCmmPrim.hs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/codeGen/StgCmmPrim.hs b/compiler/codeGen/StgCmmPrim.hs index 9e12427355..e6f4e48425 100644 --- a/compiler/codeGen/StgCmmPrim.hs +++ b/compiler/codeGen/StgCmmPrim.hs @@ -806,9 +806,11 @@ callishPrimOpSupported dflags op WordAdd2Op | ncg && x86ish -> Left (MO_Add2 (wordWidth dflags)) | otherwise -> Right genericWordAdd2Op - IntAddCOp -> Right genericIntAddCOp + IntAddCOp | ncg && x86ish -> Left (MO_AddIntC (wordWidth dflags)) + | otherwise -> Right genericIntAddCOp - IntSubCOp -> Right genericIntSubCOp + IntSubCOp | ncg && x86ish -> Left (MO_SubIntC (wordWidth dflags)) + | otherwise -> Right genericIntSubCOp WordMul2Op | ncg && x86ish -> Left (MO_U_Mul2 (wordWidth dflags)) | otherwise -> Right genericWordMul2Op |
