[GHC] #8131: T7571 with WAY=llvm fails, but not WAY=optllvm

GHC ghc-devs at haskell.org
Sat Oct 26 12:18:57 UTC 2013


#8131: T7571 with WAY=llvm fails, but not WAY=optllvm
----------------------------------------------+----------------------------
        Reporter:  thoughtpolice              |            Owner:  rwbarton
            Type:  bug                        |           Status:  patch
        Priority:  high                       |        Milestone:
       Component:  Compiler                   |          Version:  7.7
      Resolution:                             |         Keywords:
Operating System:  Unknown/Multiple           |     Architecture:
 Type of failure:  None/Unknown               |  Unknown/Multiple
       Test Case:  llvm/should_compile/T8131  |       Difficulty:  Unknown
        Blocking:                             |       Blocked By:
                                              |  Related Tickets:
----------------------------------------------+----------------------------

Comment (by monoidal):

 This happens because the driver runs `compile` in all ways, and
 `compile_fail` only for `[normal]`. Source: `test_common_work` in
 `driver/testlib.py`
 [https://github.com/ghc/testsuite/blob/7d29fbf373befbc0ee60dff01f6a9cabee047862/driver/testlib.py#L591
 link]. Possible fix:

 {{{
 def f( name, opts ):
   opts.only_ways = ['optllvm', 'llvm', 'debugllvm']
   opts.extra_ways = ['optllvm', 'llvm', 'debugllvm']

 setTestOpts(f)

 test('T8131', cmm_src, compile_fail, [''])
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8131#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list