Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,250
    • Issues 5,250
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 561
    • Merge requests 561
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #21968
Closed
Open
Issue created Aug 05, 2022 by Benjamin Maurer@cptwunderlichDeveloper

Regression of T12433

While trying to find a bug in my branch, I found that there seems to be a regression of test case T12433 (#12433 (closed)):

Expected output of T12433: 8 Compiling with GHC 9.2.2, using no optimizations or any opt. level works: e.g.: ghc -O1 testsuite/tests/codeGen/should_run/T12433.hs && ./T12433 prints 8

Using GHC main HEAD (eb425eef418), flavour devel2:

/path/ghcmain/ghc/_build/stage1/bin/ghc T12433.hs && ./T12433 -- prints 8 works

Using any optimization level fails:

/path/ghcmain/ghc/_build/stage1/bin/ghc -O1 T12433.hs && ./T12433 -- prints 4229782

  • Operating System: Ubuntu 20.04
  • System Architecture: x86_64

Compiled with GHC 9.2.2:

T12433.ghc922-noopt.cmm

T12433.ghc922-opt.cmm

Compiled with HEAD:

T12433.noopt.cmm

T12433.opt.cmm

Edited Aug 05, 2022 by Benjamin Maurer
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking