diff options
author | Seraphime Kirkovski <kirkseraph@gmail.com> | 2016-06-18 10:28:19 (GMT) |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-06-18 22:27:06 (GMT) |
commit | f12fb8ab5d5ad7a26c84f98e446bc70064dcdcec (patch) | |
tree | d1e7b421a54b4d23fcd3d85eebf6cf296e63a568 | |
parent | 4d71cc89b4e9648f3fbb29c8fcd25d725616e265 (diff) | |
download | ghc-f12fb8ab5d5ad7a26c84f98e446bc70064dcdcec.zip ghc-f12fb8ab5d5ad7a26c84f98e446bc70064dcdcec.tar.gz ghc-f12fb8ab5d5ad7a26c84f98e446bc70064dcdcec.tar.bz2 |
Fix trac #10647: Notice about lack of SIMD support
Fixes #10647. Changes the error message when a SIMD size
variable is required in the native code generation backend.
Test Plan:
Try compiling the test case given in the ticket :
{-# LANGUAGE MagicHash #-}
module Foo where
import GHC.Prim
data V = V Int8X16#
GHC should give a clearer error message
Reviewers: austin, bgamari
Reviewed By: bgamari
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D2325
GHC Trac Issues: #10647
-rw-r--r-- | compiler/nativeGen/Format.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/nativeGen/Format.hs b/compiler/nativeGen/Format.hs index 92a8ef8..00811f1 100644 --- a/compiler/nativeGen/Format.hs +++ b/compiler/nativeGen/Format.hs @@ -57,7 +57,9 @@ intFormat width W16 -> II16 W32 -> II32 W64 -> II64 - other -> pprPanic "Format.intFormat" (ppr other) + other -> sorry $ "The native code generator cannot " ++ + "produce code for Format.intFormat " ++ show other + ++ "\n\tConsider using the llvm backend with -fllvm" -- | Get the float format of this width. |