I've copied the subadd_n files across from mpn/x86_64w/core2 and mpn/x86_64w/amd64 to mpir-1.1 ready to release 1.1.1 when we sort out the config.guess issue.
No word from Burcin on the issue he reported, so that is going to be difficult to sort out. I'm pretty sure it is miscompiled due to optimisation level set too high, but I don't know if we want to lower it or not. I'd prefer to test that this fixes it first. We might just have to open a ticket and sort it out another time. Bill. 2009/4/20 Jeff Gilchrist <[email protected]>: > > On Mon, Apr 20, 2009 at 10:11 AM, Jason Moxham > <[email protected]> wrote: >> here's another one with even more debug info in it > > Here is the even more output: > > dummy32.s is > .globl cpuid > .globl _cpuid > cpuid: > _cpuid: > pushl %esi > pushl %ebx > movl 16(%esp),%eax > .byte 0x0f > .byte 0xa2 > movl 12(%esp),%esi > movl %ebx,(%esi) > movl %edx,4(%esi) > movl %ecx,8(%esi) > popl %ebx > popl %esi > ret > dummy64.s is > .globl cpuid > .globl _cpuid > cpuid: > _cpuid: > pushq %rbx > movq %rsi,%rax > .byte 0x0f > .byte 0xa2 > movl %ebx,(%rdi) > movl %edx,4(%rdi) > movl %ecx,8(%rdi) > popq %rbx > ret > dummy32.c is > #define CONFIG_GUESS 1 > #define CONFIG_GUESS_32BIT 1 > #define CONFIG_GUESS_64BIT 0 > #define FAT32 0 > #define FAT64 0 > #define INFAT 0 > main (){ > #include "./cpuid.c" > printf ("%s\n", modelstr); > return 0;} > dummy64.c is > #define CONFIG_GUESS 1 > #define CONFIG_GUESS_32BIT 0 > #define CONFIG_GUESS_64BIT 1 > #define FAT32 0 > #define FAT64 0 > #define INFAT 0 > main (){ > #include "./cpuid.c" > printf ("%s\n", modelstr); > return 0;} > dummy-2849664.s: Assembler messages: > dummy-2849664.s:5: Error: bad register name `%rbx' > dummy-2849664.s:6: Error: bad register name `%rsi' > dummy-2849664.s:9: Error: bad register name `%rdi)' > dummy-2849664.s:10: Error: bad register name `%rdi)' > dummy-2849664.s:11: Error: bad register name `%rdi)' > dummy-2849664.s:12: Error: bad register name `%rbx' > dummy-2849664.c:7: warning: return type defaults to âintâ > In file included from dummy-2849664.c:9: > ./cpuid.c: In function âmainâ: > ./cpuid.c:18: warning: implicit declaration of function âcpuidâ > ./cpuid.c:33: warning: implicit declaration of function âstrcmpâ > dummy-2849664.c:9: warning: implicit declaration of function âprintfâ > dummy-2849664.c:9: warning: incompatible implicit declaration of > built-in function âprintfâ > Please report this problem to <[email protected]>. > Problem report saved as /home/jeffg/.ekopath-bugs/pathcc_error_Qou5BC.i > Please review the above file and, if possible, attach it to your problem > report. > Please review the above file and, if possible, attach it to your problem > report. > NOW TRYING AGAIN > dummy-2849632.c:7: warning: return type defaults to âintâ > In file included from dummy-2849632.c:9: > ./cpuid.c: In function âmainâ: > ./cpuid.c:18: warning: implicit declaration of function âcpuidâ > ./cpuid.c:33: warning: implicit declaration of function âstrcmpâ > dummy-2849632.c:9: warning: implicit declaration of function âprintfâ > dummy-2849632.c:9: warning: incompatible implicit declaration of > built-in function âprintfâ > /tmp/cco.yVCgLq: In function `main': > /work/jeffg/mpir-1.1/dummy-2849632.c:7: multiple definition of `main' > /tmp/cco.yVCgLq:/work/jeffg/mpir-1.1/dummy-2849632.c:7: first defined here > /tmp/cco.yVCgLq: In function `main': > (.text+0x5b): undefined reference to `cpuid' > /tmp/cco.yVCgLq: In function `main': > (.text+0x76): undefined reference to `cpuid' > /tmp/cco.yVCgLq: In function `main': > (.text+0x5b): undefined reference to `cpuid' > /tmp/cco.yVCgLq: In function `main': > (.text+0x76): undefined reference to `cpuid' > collect2: ld returned 1 exit status > x86_64-unknown-linux-gnu > > > And if you are wondering what the problem report from pathcc contains, it is: > > cat /home/jeffg/.ekopath-bugs/pathcc_error_Qou5BC.i > /* > > QLogic PathScale(TM) compiler problem report - Mon Apr 20 10:12:50 2009 > Please report this problem to <[email protected]>. > If possible, please attach a copy of this file with your report. > > PLEASE NOTE: This file contains a preprocessed copy of the source file > that may have led to this problem occurring. > > Compiler command line (32-bit ABI used on x86_64 system): > pathcc -Wall -TENV:simd_zmask=OFF -TENV:simd_imask=OFF > -TENV:simd_omask=OFF -O3 -OPT:Ofast -fno-math-errno > > Version 3.0 build information: > Changeset 7bc99d7b56263eff1b5a0573fe4a0f09f71d0e96 > Built by [email protected] in /scratch/mee/3.0-103/ekopath-pending > Build date 2007-02-22 13:05:15 -0800 > > Information from compiler driver: > /usr/bin/gcc returned non-zero status 1 > > The remainder of this file contains a preprocessed copy of the > source file that appears to have led to this problem. > > */ > # 1 "dummy-2849664.c" > # 1 "<built-in>" > # 1 "<command line>" > # 1 "dummy-2849664.c" > > > > > > > main (){ > # 1 "./cpuid.c" 1 > # 12 "./cpuid.c" > char vendor_string[13]; > char features[12]; > long fms; > int family, model, stepping; > char *modelstr; > > cpuid (vendor_string, 0); > vendor_string[12] = 0; > > fms = cpuid (features, 1); > > family = ((fms >> 8) & 15) + ((fms >> 20) & 0xff); > model = ((fms >> 4) & 15) + ((fms >> 12) & 0xf0); > stepping = fms & 15; > > > modelstr = "x86_64"; > > > > > if (strcmp (vendor_string, "GenuineIntel") == 0) > { > switch (family) > { > > > > > > > case 6: > > > > > > > if (model == 15){ modelstr="core2";break;} > if (model == 22){ modelstr="core2";break;} > if (model == 23){ modelstr="penryn";break;} > if (model == 26){ modelstr="nehalem";break;} > if (model == 28){ modelstr="atom";break;} > if (model == 29){ modelstr="penryn";break;} > break; > case 15: > > cpuid(features,0x80000001); > if ( features[8]&1 ){ modelstr="netburstlahf";break;} > modelstr="netburst"; > > > > > > > break; > } > } > else if (strcmp (vendor_string, "AuthenticAMD") == 0) > { > switch (family) > { > # 86 "./cpuid.c" > case 15: > modelstr="k8"; > break; > case 16: > if (model == 2) { modelstr="k10";break;} > if (model == 4) { modelstr="k10";break;} > break; > } > } > # 9 "dummy-2849664.c" 2 > printf ("%s\n", modelstr); > return 0;} > > /* End of PathScale problem report. */ > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "mpir-devel" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/mpir-devel?hl=en -~----------~----~----~----~------~----~------~--~---
