
#14830: Use test instead of cmp for comparison against zero. -------------------------------------+------------------------------------- Reporter: AndreasK | Owner: (none) Type: task | Status: new Priority: low | Milestone: Component: Compiler (NCG) | Version: Resolution: | Keywords: CodeGen Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by vanessamchale): `stmtToInstrs` calls `genCondJump` which as far as I can tell only uses `cmp` on registers, not immediate values. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14830#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler