[GHC] #7689: Primitive bitwise operations on Int#
#7689: Primitive bitwise operations on Int# -----------------------------+---------------------------------------------- Reporter: jstolarek | Owner: Type: feature request | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Blockedby: Blocking: | Related: -----------------------------+---------------------------------------------- During recent work I found a need for primitive bitwise operations that work on `Int#` type. Currently existing `and#`, `or#`, `not#` and `xor#` !PrimOps work on `Word#`, which requires writing explicit conversions using `int2Word#` and `word2Int#`. It would be most helpful to have equivalent `andI#`, `orI#`, `notI#` and `xorI#` !PrimOps. -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7689> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#7689: Primitive bitwise operations on Int# -----------------------------+---------------------------------------------- Reporter: jstolarek | Owner: jstolarek Type: feature request | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Blockedby: Blocking: | Related: -----------------------------+---------------------------------------------- Changes (by jstolarek): * owner: => jstolarek -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7689#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#7689: Primitive bitwise operations on Int# -----------------------------+---------------------------------------------- Reporter: jstolarek | Owner: jstolarek Type: feature request | Status: patch Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Blockedby: Blocking: | Related: -----------------------------+---------------------------------------------- Changes (by jstolarek): * status: new => patch -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7689#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#7689: Primitive bitwise operations on Int# -------------------------------+-------------------------------------------- Reporter: jstolarek | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: -------------------------------+-------------------------------------------- Changes (by simonmar): * owner: jstolarek => * difficulty: => Unknown * status: patch => new Comment: Could you please separate out the whitespace changes into a separate patch? -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7689#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#7689: Primitive bitwise operations on Int# -------------------------------+-------------------------------------------- Reporter: jstolarek | Owner: Type: feature request | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: -------------------------------+-------------------------------------------- Changes (by jstolarek): * status: new => patch Comment: Whoops. Sorry about that. I've recently set up my Emacs to remove trailing whitespaces upon saving. A good thing to do, but only assuming that everyone else in the team does that. Anyway, I've uploaded the fixed patch. -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7689#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#7689: Primitive bitwise operations on Int# -------------------------------+-------------------------------------------- Reporter: jstolarek | Owner: Type: feature request | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: -------------------------------+-------------------------------------------- Comment(by jan.stolarek@…): commit 29e86f9b178d3cf436629641ec1f2502c67f0347 {{{ Author: Jan Stolarek <jan.stolarek@p.lodz.pl> Date: Fri Feb 15 13:10:36 2013 +0100 Primitive bitwise operations on Int# (Fixes #7689) compiler/codeGen/StgCmmPrim.hs | 4 ++++ compiler/prelude/PrelRules.lhs | 9 +++++++++ compiler/prelude/primops.txt.pp | 11 +++++++++++ 3 files changed, 24 insertions(+), 0 deletions(-) }}} -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7689#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#7689: Primitive bitwise operations on Int# -------------------------------+-------------------------------------------- Reporter: jstolarek | Owner: Type: feature request | Status: closed Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Resolution: fixed | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: -------------------------------+-------------------------------------------- Changes (by simonmar): * status: patch => closed * resolution: => fixed * milestone: => 7.8.1 Comment: Pushed, thanks! -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7689#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#7689: Primitive bitwise operations on Int# -------------------------------+-------------------------------------------- Reporter: jstolarek | Owner: Type: feature request | Status: new Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Resolution: | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: -------------------------------+-------------------------------------------- Changes (by jstolarek): * status: closed => new * resolution: fixed => Comment: It looks that patch for the Testsuite was not merged. Reopening. -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7689#comment:7> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#7689: Primitive bitwise operations on Int# -------------------------------+-------------------------------------------- Reporter: jstolarek | Owner: Type: feature request | Status: patch Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Resolution: | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: -------------------------------+-------------------------------------------- Changes (by jstolarek): * status: new => patch -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7689#comment:8> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#7689: Primitive bitwise operations on Int# -------------------------------+-------------------------------------------- Reporter: jstolarek | Owner: Type: feature request | Status: closed Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Resolution: fixed | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: -------------------------------+-------------------------------------------- Changes (by simonmar): * status: patch => closed * resolution: => fixed Comment: Sorry about that, done now: {{{ commit de9a5457567313b5890f6aa8caee8f7802464acb Author: Jan Stolarek <jan.stolarek@p.lodz.pl> Date: Thu Feb 14 13:07:26 2013 +0100 Test #7689 Tests primitive bitwise `andI#`, `orI#`, `notI#`, `xorI#` operations on Int# }}} -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7689#comment:9> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC