[GHC] #11297: CmmSwitchTest fails on arm

#11297: CmmSwitchTest fails on arm -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.10.3 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: Incorrect result Unknown/Multiple | at runtime Test Case: CmmSwitchTest | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- {{{ Actual stdout output differs from expected: --- /dev/null 2015-12-26 13:34:29.750000000 +0100 +++ ./codeGen/should_run/CmmSwitchTest.run.stdout.normalised 2015-12-26 22:14:17.937137588 +0100 @@ -0,0 +1,57 @@ +ERR: aj (-1) is 1337 and not 41. +ERR: ak (-11) is 1337 and not 36. +ERR: ak (-10) is 1337 and not 37. +ERR: ak (-9) is 1337 and not 37. +ERR: ak (-8) is 1337 and not 38. +ERR: ak (-7) is 1337 and not 38. +ERR: ak (-6) is 1337 and not 39. +ERR: ak (-5) is 1337 and not 39. +ERR: ak (-4) is 1337 and not 40. +ERR: ak (-3) is 1337 and not 40. +ERR: ak (-2) is 1337 and not 41. +ERR: ak (-1) is 1337 and not 41. +ERR: al (0) is 1337 and not 42. +ERR: al (1) is 1337 and not 42. +ERR: al (2) is 1337 and not 43. +ERR: al (3) is 1337 and not 43. +ERR: al (4) is 1337 and not 44. +ERR: al (5) is 1337 and not 44. +ERR: al (6) is 1337 and not 45. +ERR: al (7) is 1337 and not 45. +ERR: al (8) is 1337 and not 46. +ERR: al (9) is 1337 and not 46. +ERR: al (10) is 1337 and not 47. +ERR: al (-11) is 1337 and not 36. +ERR: al (-10) is 1337 and not 37. +ERR: al (-9) is 1337 and not 37. +ERR: al (-8) is 1337 and not 38. +ERR: al (-7) is 1337 and not 38. +ERR: al (-6) is 1337 and not 39. +ERR: al (-5) is 1337 and not 39. +ERR: al (-4) is 1337 and not 40. +ERR: al (-3) is 1337 and not 40. +ERR: al (-2) is 1337 and not 41. +ERR: al (-1) is 1337 and not 41. +ERR: ay (4294967295) is 1337 and not 41. +ERR: az (4294967285) is 1337 and not 36. +ERR: az (4294967286) is 1337 and not 37. +ERR: az (4294967287) is 1337 and not 37. +ERR: az (4294967288) is 1337 and not 38. +ERR: az (4294967289) is 1337 and not 38. +ERR: az (4294967290) is 1337 and not 39. +ERR: az (4294967291) is 1337 and not 39. +ERR: az (4294967292) is 1337 and not 40. +ERR: az (4294967293) is 1337 and not 40. +ERR: az (4294967294) is 1337 and not 41. +ERR: az (4294967295) is 1337 and not 41. +ERR: ba (4294967285) is 1337 and not 36. +ERR: ba (4294967286) is 1337 and not 37. +ERR: ba (4294967287) is 1337 and not 37. +ERR: ba (4294967288) is 1337 and not 38. +ERR: ba (4294967289) is 1337 and not 38. +ERR: ba (4294967290) is 1337 and not 39. +ERR: ba (4294967291) is 1337 and not 39. +ERR: ba (4294967292) is 1337 and not 40. +ERR: ba (4294967293) is 1337 and not 40. +ERR: ba (4294967294) is 1337 and not 41. +ERR: ba (4294967295) is 1337 and not 41. \ No newline at end of file *** unexpected failure for CmmSwitchTest(normal) }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11297 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11297: CmmSwitchTest fails on arm -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.10.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: CmmSwitchTest Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * cc: nomeata (added) Comment: It actually appears that this test is generally broken on 32-bit platforms due to its use of 64-bit literals. I'm going to mark this as `expect_broken` on 32-bit platforms for now. Ccing nomeata who is the original author. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11297#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11297: CmmSwitchTest fails on arm
-------------------------------------+-------------------------------------
Reporter: bgamari | Owner: bgamari
Type: bug | Status: new
Priority: normal | Milestone: 8.0.1
Component: Compiler | Version: 7.10.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Incorrect result | Unknown/Multiple
at runtime | Test Case: CmmSwitchTest
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#11297: CmmSwitchTest fails on arm -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.10.3 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: CmmSwitchTest Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by nomeata): * keywords: => newcomer Comment: Yes, as you write on the mailing list, it would make sense to have tests for both platform, guarded by CPP. Note that the test case is actually produced by `CmmSwitchTestGen.hs` in the same directory. I won’t get to it immediately, so marking this as newcomer. Not a very “hip” task, but a nice small thing for anyone who wants to easily get a GHC commit with his name on it :-) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11297#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11297: CmmSwitchTest fails on 32-bit platforms -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.10.3 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: CmmSwitchTest Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11297#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11297: CmmSwitchTest fails on 32-bit platforms -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Test Suite | Version: 7.10.3 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: CmmSwitchTest Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * component: Compiler => Test Suite -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11297#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11297: CmmSwitchTest is broken on 32-bit platforms -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Test Suite | Version: 7.10.3 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: CmmSwitchTest Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11297#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11297: CmmSwitchTest is broken on 32-bit platforms -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Test Suite | Version: 7.10.3 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: CmmSwitchTest Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * owner: bgamari => Comment: Unassigning, to make this ticket actually show up on the [wiki:Newcomers] page. @bgamari: please claim it back if you planned to work on this yourself. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11297#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11297: CmmSwitchTest is broken on 32-bit platforms -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Test Suite | Version: 7.10.3 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: CmmSwitchTest Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by avd): @bgamari, @thomie, I would like to work on this ticket. I reproduced it and already have a patch, need to submit it to Phabricator. Can you make me an owner (as https://ghc.haskell.org/trac/ghc/wiki/Phabricator requires) or should I do this by myself? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11297#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11297: CmmSwitchTest is broken on 32-bit platforms -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Test Suite | Version: 7.10.3 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: CmmSwitchTest Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by avd): * cc: avd (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11297#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11297: CmmSwitchTest is broken on 32-bit platforms -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Test Suite | Version: 7.10.3 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: CmmSwitchTest Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by nomeata): You are very welcome to make yourself the owner of the ticket, using the “assign to” feature below. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11297#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11297: CmmSwitchTest is broken on 32-bit platforms -------------------------------------+------------------------------------- Reporter: bgamari | Owner: avd Type: bug | Status: new Priority: normal | Milestone: Component: Test Suite | Version: 7.10.3 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: CmmSwitchTest Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by avd): * owner: => avd -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11297#comment:12 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11297: CmmSwitchTest is broken on 32-bit platforms -------------------------------------+------------------------------------- Reporter: bgamari | Owner: avd Type: bug | Status: new Priority: normal | Milestone: Component: Test Suite | Version: 7.10.3 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: CmmSwitchTest Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2226 Wiki Page: | -------------------------------------+------------------------------------- Changes (by avd): * differential: => Phab:D2226 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11297#comment:13 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11297: CmmSwitchTest is broken on 32-bit platforms
-------------------------------------+-------------------------------------
Reporter: bgamari | Owner: avd
Type: bug | Status: new
Priority: normal | Milestone:
Component: Test Suite | Version: 7.10.3
Resolution: | Keywords: newcomer
Operating System: Unknown/Multiple | Architecture:
Type of failure: Incorrect result | Unknown/Multiple
at runtime | Test Case: CmmSwitchTest
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D2226
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Austin Seipp

#11297: CmmSwitchTest is broken on 32-bit platforms -------------------------------------+------------------------------------- Reporter: bgamari | Owner: avd Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Test Suite | Version: 7.10.3 Resolution: fixed | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: CmmSwitchTest Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2226 Wiki Page: | -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: new => closed * resolution: => fixed * milestone: => 8.2.1 Comment: Thanks Alex! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11297#comment:15 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC