<div dir="ltr">thanks Peter!</div><br><div class="gmail_quote"><div dir="ltr">On Sun, Nov 18, 2018 at 10:38 AM Peter Trommler <<a href="mailto:trp@bluewin.ch">trp@bluewin.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Gabor,<br>
<br>
I sent a pull request with a fix to GHC on github.<br>
<br>
Cheers, Peter<br>
<br>
> On 18. Nov 2018, at 13:02, Gabor Greif <<a href="mailto:ggreif@gmail.com" target="_blank">ggreif@gmail.com</a>> wrote:<br>
> <br>
> Hello Abhiroop!<br>
> <br>
> LLVM backend seems to choke on this still:<br>
> <br>
> ghc-stage1: panic! (the 'impossible' happened)<br>
>  (GHC version 8.7.20181118 for x86_64-unknown-linux):<br>
>       LlvmCodeGen.CodeGen.cmmPrimOpFunctions: MO_S_QuotRem W16 not supported here<br>
> <br>
> Please report this as a GHC bug:  <a href="http://www.haskell.org/ghc/reportabug" rel="noreferrer" target="_blank">http://www.haskell.org/ghc/reportabug</a><br>
> <br>
> Cheers,<br>
> <br>
>    Gabor<br>
> <br>
> On 11/17/18, <a href="mailto:git@git.haskell.org" target="_blank">git@git.haskell.org</a> <<a href="mailto:git@git.haskell.org" target="_blank">git@git.haskell.org</a>> wrote:<br>
>> Repository : ssh://<a href="http://git@git.haskell.org/ghc" rel="noreferrer" target="_blank">git@git.haskell.org/ghc</a><br>
>> <br>
>> On branch  : master<br>
>> Link       :<br>
>> <a href="http://ghc.haskell.org/trac/ghc/changeset/36fcf9edee31513db2ddbf716ee0aa79766cbe69/ghc" rel="noreferrer" target="_blank">http://ghc.haskell.org/trac/ghc/changeset/36fcf9edee31513db2ddbf716ee0aa79766cbe69/ghc</a><br>
>> <br>
>>> ---------------------------------------------------------------<br>
>> <br>
>> commit 36fcf9edee31513db2ddbf716ee0aa79766cbe69<br>
>> Author: Abhiroop Sarkar <<a href="mailto:asiamgenius@gmail.com" target="_blank">asiamgenius@gmail.com</a>><br>
>> Date:   Mon Nov 5 12:06:58 2018 -0500<br>
>> <br>
>>    Introduce Int16# and Word16#<br>
>> <br>
>>    This builds off of D4475.<br>
>> <br>
>>    Bumps binary submodule.<br>
>> <br>
>>    Reviewers: carter, AndreasK, hvr, goldfire, bgamari, simonmar<br>
>> <br>
>>    Subscribers: rwbarton, thomie<br>
>> <br>
>>    Differential Revision: <a href="https://phabricator.haskell.org/D5006" rel="noreferrer" target="_blank">https://phabricator.haskell.org/D5006</a><br>
>> <br>
>> <br>
>>> ---------------------------------------------------------------<br>
>> <br>
>> 36fcf9edee31513db2ddbf716ee0aa79766cbe69<br>
>> compiler/cmm/CmmUtils.hs                           |   4 +<br>
>> compiler/codeGen/StgCmmArgRep.hs                   |   2 +<br>
>> compiler/codeGen/StgCmmPrim.hs                     |  45 +++++<br>
>> compiler/prelude/PrelNames.hs                      | 115 ++++++------<br>
>> compiler/prelude/TysPrim.hs                        |  22 ++-<br>
>> compiler/prelude/TysWiredIn.hs                     |  15 +-<br>
>> compiler/prelude/TysWiredIn.hs-boot                |   1 +<br>
>> compiler/prelude/primops.txt.pp                    |  82 +++++++++<br>
>> compiler/simplStg/RepType.hs                       |   2 +<br>
>> compiler/typecheck/TcGenDeriv.hs                   |  42 ++++-<br>
>> compiler/types/TyCon.hs                            |   4 +<br>
>> compiler/utils/Binary.hs                           |   4 +<br>
>> libraries/base/Data/Typeable/Internal.hs           |   2 +<br>
>> libraries/binary                                   |   2 +-<br>
>> libraries/ghc-prim/GHC/Types.hs                    |   6 +-<br>
>> testsuite/tests/ffi/should_run/PrimFFIInt16.hs     |  28 +++<br>
>> .../{PrimFFIInt8.stdout => PrimFFIInt16.stdout}    |   0<br>
>> testsuite/tests/ffi/should_run/PrimFFIInt16_c.c    |   7 +<br>
>> testsuite/tests/ffi/should_run/PrimFFIWord16.hs    |  28 +++<br>
>> .../{PrimFFIInt8.stdout => PrimFFIWord16.stdout}   |   0<br>
>> testsuite/tests/ffi/should_run/PrimFFIWord16_c.c   |   7 +<br>
>> testsuite/tests/ffi/should_run/all.T               |   4 +<br>
>> testsuite/tests/primops/should_run/ArithInt16.hs   | 197<br>
>> +++++++++++++++++++++<br>
>> .../tests/primops/should_run/ArithInt16.stdout     |   8 +<br>
>> testsuite/tests/primops/should_run/ArithWord16.hs  | 194<br>
>> ++++++++++++++++++++<br>
>> .../tests/primops/should_run/ArithWord16.stdout    |   8 +<br>
>> .../primops/should_run/{CmpInt8.hs => CmpInt16.hs} |  34 ++--<br>
>> .../should_run/{CmpInt8.stdout => CmpInt16.stdout} |   0<br>
>> .../should_run/{CmpWord8.hs => CmpWord16.hs}       |  34 ++--<br>
>> .../{CmpInt8.stdout => CmpWord16.stdout}           |   0<br>
>> testsuite/tests/primops/should_run/ShowPrim.hs     |  16 +-<br>
>> testsuite/tests/primops/should_run/ShowPrim.stdout |   3 +-<br>
>> testsuite/tests/primops/should_run/all.T           |   5 +<br>
>> utils/genprimopcode/Main.hs                        |   4 +-<br>
>> 34 files changed, 809 insertions(+), 116 deletions(-)<br>
>> <br>
>> Diff suppressed because of size. To see it, use:<br>
>> <br>
>>    git diff-tree --root --patch-with-stat --no-color --find-copies-harder<br>
>> --ignore-space-at-eol --cc 36fcf9edee31513db2ddbf716ee0aa79766cbe69<br>
>> _______________________________________________<br>
>> ghc-commits mailing list<br>
>> <a href="mailto:ghc-commits@haskell.org" target="_blank">ghc-commits@haskell.org</a><br>
>> <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-commits" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-commits</a><br>
>> <br>
> _______________________________________________<br>
> ghc-devs mailing list<br>
> <a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
> <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
<br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</blockquote></div>