[commit: ghc] master: Add subWordC# on x86ish (8160f42)
git at git.haskell.org
git at git.haskell.org
Sat Oct 31 15:40:47 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/8160f42b8dad33e47b4c73ed3f9bf889462e7bfe/ghc
>---------------------------------------------------------------
commit 8160f42b8dad33e47b4c73ed3f9bf889462e7bfe
Author: Nikita Karetnikov <nikita at karetnikov.org>
Date: Sat Oct 31 12:27:54 2015 +0100
Add subWordC# on x86ish
This adds a subWordC# primop which implements subtraction with overflow
reporting.
Reviewers: tibbe, goldfire, rwbarton, bgamari, austin, hvr
Reviewed By: bgamari
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1334
GHC Trac Issues: #10962
>---------------------------------------------------------------
8160f42b8dad33e47b4c73ed3f9bf889462e7bfe
compiler/cmm/CmmMachOp.hs | 1 +
compiler/cmm/PprC.hs | 1 +
compiler/codeGen/StgCmmPrim.hs | 17 +++++++++++++++++
compiler/llvmGen/LlvmCodeGen/CodeGen.hs | 13 +++++++++++--
compiler/nativeGen/PPC/CodeGen.hs | 1 +
compiler/nativeGen/SPARC/CodeGen.hs | 1 +
compiler/nativeGen/X86/CodeGen.hs | 15 ++++++++++-----
compiler/prelude/primops.txt.pp | 5 +++++
libraries/base/GHC/Natural.hs | 7 -------
libraries/integer-gmp/src/GHC/Integer/Type.hs | 7 -------
testsuite/tests/numeric/should_run/T10962.hs | 16 ++++++++++++++++
testsuite/tests/numeric/should_run/T10962.stdout-ws-32 | 2 ++
testsuite/tests/numeric/should_run/T10962.stdout-ws-64 | 2 ++
testsuite/tests/numeric/should_run/all.T | 1 +
14 files changed, 68 insertions(+), 21 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 8160f42b8dad33e47b4c73ed3f9bf889462e7bfe
More information about the ghc-commits
mailing list