CmmSwitchTest

Alex Dzyoba alex.dzyoba at gmail.com
Thu Apr 21 20:22:59 UTC 2016


Hello,

I was trying to reproduce issue #11297 (CmmSwitchTest is broken on
32-bit platforms ) from Newcomers page and seems to stuck. I would
like to ask for help here, but if there is a more suitable place to
ask, please let me know.

I've built current master (8c33cd4) stage2 compiler, removed
"when(wordsize(32), expect_broken(11297))" from
testsuite/tests/codeGen/should_run/all.T to see same errors as in
issue and got this (unrelated?) assertion:

=====> CmmSwitchTest(normal) 1 of 1 [0, 0, 0]
cd ./codeGen/should_run &&  "/home/avd/ghc/inplace/test
spaces/ghc-stage2" -o CmmSwitchTest CmmSwitchTest.hs -fforce-recomp
-dcore-lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts
-fno-warn-tabs -fno-warn-missed-specialisations -fshow-warning-groups
-fno-ghci-history   > CmmSwitchTest.comp.stderr 2>&1
Compile failed (status 256) errors were:
[1 of 1] Compiling Main             ( CmmSwitchTest.hs, CmmSwitchTest.o )
ghc-stage2: panic! (the 'impossible' happened)
  (GHC version 8.1.20160419 for i386-unknown-linux):
    ASSERT failed!
  CallStack (from HasCallStack):
  assertPprPanic, called at compiler/basicTypes/Literal.hs:224:75 in ghc:Literal
  18446744073709551615

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug


*** unexpected failure for CmmSwitchTest(normal)

Is there anything I can do with this? Is it because that test has
64-bit unboxed integers and I'm running it on 32-bit VM?

Thanks,
Alex


More information about the ghc-devs mailing list