[GHC] #5856: numrun012 test fails on i686 works on x86_64

GHC cvs-ghc at haskell.org
Wed Jun 20 20:23:20 CEST 2012


#5856: numrun012 test fails on i686 works on x86_64
---------------------------------------------+------------------------------
    Reporter:  td123                         |       Owner:              
        Type:  bug                           |      Status:  infoneeded  
    Priority:  normal                        |   Milestone:  7.6.1       
   Component:  Test Suite                    |     Version:  7.4.1       
    Keywords:  numrun012 unexpected failure  |          Os:  Linux       
Architecture:  x86                           |     Failure:  None/Unknown
  Difficulty:  Unknown                       |    Testcase:  numrun012   
   Blockedby:                                |    Blocking:              
     Related:                                |  
---------------------------------------------+------------------------------

Comment(by td123):

 Note that I am using ghc 7.4.2 now

 {{{
 main = print $ logBase 2 2147483648 > 31
 }}}
 Prints True on x86_64 and False on i686

 The build.mk used to compile ghc is:
 https://projects.archlinux.org/svntogit/packages.git/tree/trunk/build.mk?h=packages/ghc

 I attempted to write the following equivalent C program.

 {{{
 #include <math.h>
 #include <stdio.h>

 int main(int argc, char ** argv) {
         printf("%i\n", (log(2147483648)/log(2)) > 31.0);
         printf("%i\n", (log10(2147483648)/log10(2)) > 31.0);
         return 0;
 }
 }}}

 and it prints out, for both x86_64 and i686:

 {{{
 1
 0
 }}}

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



More information about the Glasgow-haskell-bugs mailing list