[Bug regression/28170] New: Wrong result after swap byte in one word when compiled in 64-bit mode

2006-06-26 Thread bergner at vnet dot ibm dot com
rd when compiled in 64-bit mode Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: regression AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bergner at vnet

[Bug regression/28170] Wrong result after swap byte in one word when compiled in 64-bit mode

2006-06-26 Thread bergner at vnet dot ibm dot com
--- Comment #1 from bergner at vnet dot ibm dot com 2006-06-26 18:42 --- Created an attachment (id=11758) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11758&action=view) Simple test case to show the problem. The bad code generation is in change_byte_order(). --

[Bug regression/28170] Wrong result after swap byte in one word when compiled in 64-bit mode

2006-06-26 Thread bergner at vnet dot ibm dot com
--- Comment #2 from bergner at vnet dot ibm dot com 2006-06-26 18:44 --- Forgot to mention this fails on both the 4.1 branch and mainline. It does work with 3.4 and earlier versions. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28170

[Bug regression/28170] Wrong result after swap byte in one word when compiled in 64-bit mode

2006-06-26 Thread bergner at vnet dot ibm dot com
--- Comment #3 from bergner at vnet dot ibm dot com 2006-06-26 18:49 --- Janis performed a regression hunt on mainline and identified this patch as the start of the test failure: r83568 | dje | 2004-06-23 21:19:00 + (Wed, 23 Jun 2004) | 7 lines * config/rs6000/rs6000.c

[Bug target/28170] [4.1/4.2 Regression] Wrong result after swap byte in one word when compiled in 64-bit mode

2006-07-06 Thread bergner at vnet dot ibm dot com
--- Comment #10 from bergner at vnet dot ibm dot com 2006-07-06 14:32 --- I used Alan's code changes from comments #8 and #9 on the 4.1 branch and it bootstrapped and regression tested (32-bit and 64-bit) fine. Mainline bootstraps and regression tests are still running. --

[Bug target/28170] [4.1/4.2 Regression] Wrong result after swap byte in one word when compiled in 64-bit mode

2006-07-06 Thread bergner at vnet dot ibm dot com
--- Comment #12 from bergner at vnet dot ibm dot com 2006-07-06 18:00 --- Mainline with Alan's changed bootstrapped, but showed a few regressions. David's suggested fix from comment #7 (using mainline) bootstrapped and is currently in the middle of running the test suite.

[Bug middle-end/24644] [4.1 Regression] gcc-4.1 compiled ppc64 kernels do not boot

2005-11-04 Thread bergner at vnet dot ibm dot com
--- Comment #15 from bergner at vnet dot ibm dot com 2005-11-04 17:38 --- For completeness, here is a minimal test case that shows the problem we are having: [EMAIL PROTECTED]:~/olaf/PR24644-4> cat bar.c register struct paca_struct * local_paca asm("r13"); struc

[Bug driver/20425] -print-search-dirs doesn't honor mutil-os/multilib settings

2005-11-08 Thread bergner at vnet dot ibm dot com
--- Comment #4 from bergner at vnet dot ibm dot com 2005-11-08 16:04 --- Shouldn't libtool being using -print-multi-os-directory rather than -print-search-dirs? http://www.redhat.com/archives/fedora-devel-list/2004-January/msg01027.html -- bergner at vnet dot ibm dot com ch

[Bug middle-end/25248] [4.1/4.2 Regression] 2.6.15-rc4 arch/powerpc/mm/hash_utils_64.c miscompiled

2005-12-05 Thread bergner at vnet dot ibm dot com
--- Comment #8 from bergner at vnet dot ibm dot com 2005-12-06 01:57 --- We're miscompiling htab_bolt_mapping(). What do I win? ;-) I have a userland test case which I'll attach once I've shunk it down a little. -- bergner at vnet dot ibm dot com changed:

[Bug middle-end/25248] [4.1/4.2 Regression] 2.6.15-rc4 arch/powerpc/mm/hash_utils_64.c miscompiled

2005-12-05 Thread bergner at vnet dot ibm dot com
--- Comment #9 from bergner at vnet dot ibm dot com 2005-12-06 06:26 --- Created an attachment (id=10414) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10414&action=view) Minimal test case. Here's a minimal test case. This works with older gcc's and withou

[Bug middle-end/25248] [4.1/4.2 Regression] 2.6.15-rc4 arch/powerpc/mm/hash_utils_64.c miscompiled

2005-12-06 Thread bergner at vnet dot ibm dot com
--- Comment #14 from bergner at vnet dot ibm dot com 2005-12-06 13:40 --- sizeof(unsigned long) and sizeof(unsigned long long) are both 8 bytes on ppc64. Olaf, -O1 isn't a workaround, it's the minimum optimization level that still shows the bug. Trying some -fno-* options,

[Bug middle-end/25248] [4.1/4.2 Regression] 2.6.15-rc4 arch/powerpc/mm/hash_utils_64.c miscompiled

2005-12-06 Thread bergner at vnet dot ibm dot com
--- Comment #22 from bergner at vnet dot ibm dot com 2005-12-06 18:47 --- ...and I can verify that the patch fixes the reduced test case. Thanks! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25248

[Bug middle-end/28690] New: Performace problem with indexed load/stores on powerpc

2006-08-10 Thread bergner at vnet dot ibm dot com
rmace problem with indexed load/stores on powerpc Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bergner at vnet do

[Bug middle-end/28690] [4.2 Regression] Performace problem with indexed load/stores on powerpc

2006-08-25 Thread bergner at vnet dot ibm dot com
--- Comment #3 from bergner at vnet dot ibm dot com 2006-08-26 04:24 --- Ok, I tracked down where the expander is swapping the operands. It's occuring at simplify-rtx.c:simplify_binary_operation() at line 1459: /* Make sure the constant is second. */ if (GET_RTX_CLASS

[Bug middle-end/28690] [4.2 Regression] Performace problem with indexed load/stores on powerpc

2006-09-05 Thread bergner at vnet dot ibm dot com
--- Comment #5 from bergner at vnet dot ibm dot com 2006-09-05 18:43 --- Created an attachment (id=12190) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12190&action=view) Patch to rs6000_legitimize_address to force base pointers into rA position of indexed load/store instr

[Bug middle-end/28690] [4.2 Regression] Performace problem with indexed load/stores on powerpc

2006-09-05 Thread bergner at vnet dot ibm dot com
--- Comment #7 from bergner at vnet dot ibm dot com 2006-09-05 20:01 --- Well, to get REG_POINTER regs to be the first operand, we'd need to increase their commutative_operand_precedence. I tried that change already, but that led to an infinite recursion loop while attempti

[Bug middle-end/28970] New: Wrong code for simple loop test case

2006-09-06 Thread bergner at vnet dot ibm dot com
Version: 4.1.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bergner at vnet dot ibm dot com GCC build triplet: powerpc64-linux GCC host triplet: powerpc64-

[Bug middle-end/28690] [4.2 Regression] Performace problem with indexed load/stores on powerpc

2006-09-06 Thread bergner at vnet dot ibm dot com
--- Comment #8 from bergner at vnet dot ibm dot com 2006-09-07 05:14 --- Ok, this also passed regression tests on powerpc64-linux (32-bit and 64-bit testsuite runs) for c, c++, fortran, objc, obj-c++ and java. Does the attached patch look reasonable to everyone? -- http

[Bug middle-end/28690] [4.2 Regression] Performace problem with indexed load/stores on powerpc

2006-09-21 Thread bergner at vnet dot ibm dot com
--- Comment #9 from bergner at vnet dot ibm dot com 2006-09-21 18:14 --- Created an attachment (id=12305) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12305&action=view) Patch to rs6000_legitimize_address to force base pointers into rA position of indexed load/store instr

[Bug middle-end/28690] [4.2 Regression] Performace problem with indexed load/stores on powerpc

2006-09-21 Thread bergner at vnet dot ibm dot com
--- Comment #10 from bergner at vnet dot ibm dot com 2006-09-21 18:16 --- (From update of attachment 12190) Forgot to obsolete this patch by the updated patch. -- bergner at vnet dot ibm dot com changed: What|Removed |Added

[Bug middle-end/28690] [4.2 Regression] Performace problem with indexed load/stores on powerpc

2006-09-21 Thread bergner at vnet dot ibm dot com
--- Comment #11 from bergner at vnet dot ibm dot com 2006-09-21 18:19 --- Created an attachment (id=12306) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12306&action=view) Alternate patch to rs6000_legitimize_address to force base pointers into rA position of indexed loa

[Bug middle-end/28690] [4.2 Regression] Performace problem with indexed load/stores on powerpc

2006-09-22 Thread bergner at vnet dot ibm dot com
--- Comment #12 from bergner at vnet dot ibm dot com 2006-09-22 16:30 --- Anton dicovered that we don't get multiple dimensioned arrays like the following test case: int indexedload(int ***base, int idx0, int idx1, int idx2) { return base[idx0][idx1][idx2]; } This one leads

[Bug middle-end/28690] [4.2 Regression] Performace problem with indexed load/stores on powerpc

2006-09-22 Thread bergner at vnet dot ibm dot com
--- Comment #13 from bergner at vnet dot ibm dot com 2006-09-22 16:56 --- Yet another test case from Anton we don't catch. Will they never end?!?! ;) int indexedload(int *base, int len) { int i, sum = 0; for (i=0; i < len; i++) sum += base[i]; return sum; } In t

[Bug tree-optimization/29290] New: SPEC CPU2000 178.galgel ICE using -O3 -ftree-loop-linear

2006-09-29 Thread bergner at vnet dot ibm dot com
normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bergner at vnet dot ibm dot com GCC build triplet: powerpc64-linux GCC host triplet: powerpc64-linux GCC target triplet: powerpc64-linux http://gcc.gnu.org

[Bug middle-end/28690] [4.2 Regression] Performace problem with indexed load/stores on powerpc

2006-10-02 Thread bergner at vnet dot ibm dot com
--- Comment #17 from bergner at vnet dot ibm dot com 2006-10-03 03:30 --- Created an attachment (id=12375) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12375&action=view) Patch to swap_commutative_operands_p and gen_addr_rtx to force base pointers into rA position of

[Bug middle-end/28690] [4.2 Regression] Performace problem with indexed load/stores on powerpc

2006-10-03 Thread bergner at vnet dot ibm dot com
--- Comment #19 from bergner at vnet dot ibm dot com 2006-10-03 15:51 --- David has already said offline that he would reject any patch that would cause us to view a non-REG_POINTER + REG_POINTER expression an not legitimate. I agree with that. Sorry, but I'm slowly learnin

[Bug middle-end/24644] [4.1 Regression] gcc-4.1 compiled ppc64 kernels do not boot

2005-11-03 Thread bergner at vnet dot ibm dot com
--- Comment #8 from bergner at vnet dot ibm dot com 2005-11-03 21:48 --- Adding myself to the CC list. -- bergner at vnet dot ibm dot com changed: What|Removed |Added

[Bug middle-end/24644] [4.1 Regression] gcc-4.1 compiled ppc64 kernels do not boot

2005-11-03 Thread bergner at vnet dot ibm dot com
--- Comment #11 from bergner at vnet dot ibm dot com 2005-11-04 05:52 --- I've determined why we're dying, but not sure who is at fault yet. While scanning through Olaf's assembly diff's, I noticed some code that normally wouldn't be a problem in user code, bu

[Bug middle-end/42431] [4.5 Regression] wrong code for 200.sixtrack with vectorization and -fdata-sections

2010-02-24 Thread bergner at vnet dot ibm dot com
--- Comment #11 from bergner at vnet dot ibm dot com 2010-02-24 22:08 --- Subject: Re: [4.5 Regression] wrong code for 200.sixtrack with vectorization and -fdata-sections On Wed, 2010-02-24 at 21:01 +, meissner at linux dot vnet dot ibm dot com wrote: > > --- Comme

[Bug middle-end/26049] New: ICE compiling glibc part using -O1 -m64 -mlong-double-128

2006-01-31 Thread bergner at vnet dot ibm dot com
Summary: ICE compiling glibc part using -O1 -m64 -mlong-double- 128 Product: gcc Version: 3.4.6 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org

[Bug middle-end/26049] ICE compiling glibc part using -O1 -m64 -mlong-double-128

2006-01-31 Thread bergner at vnet dot ibm dot com
--- Comment #1 from bergner at vnet dot ibm dot com 2006-01-31 20:47 --- Created an attachment (id=10767) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10767&action=view) Test case as an attachment. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26049

[Bug target/26610] New: [3.4 only] ICE: unable to find a register to spill in class `FLOAT_REGS'

2006-03-08 Thread bergner at vnet dot ibm dot com
Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bergner at vnet dot ibm dot com GCC build triplet: powerpc64-unknown-linux-gnu GCC host triplet: powerpc64-unknown-linux-gnu GCC target triplet: powerpc64-u

[Bug target/26610] [3.4 only] ICE: unable to find a register to spill in class `FLOAT_REGS'

2006-03-08 Thread bergner at vnet dot ibm dot com
--- Comment #1 from bergner at vnet dot ibm dot com 2006-03-08 22:03 --- Created an attachment (id=10997) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10997&action=view) Reduced test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26610

[Bug middle-end/28690] [4.2/4.3 Regression] Performace problem with indexed load/stores on powerpc

2006-11-07 Thread bergner at vnet dot ibm dot com
--- Comment #24 from bergner at vnet dot ibm dot com 2006-11-08 03:30 --- Ok, Anton hit another test case the last patch doesn't transform. It's actually the same test case as in comment #13, except, "int *base" is now a global variable rather than a function p

[Bug middle-end/28690] [4.2/4.3 Regression] Performace problem with indexed load/stores on powerpc

2006-11-29 Thread bergner at vnet dot ibm dot com
--- Comment #28 from bergner at vnet dot ibm dot com 2006-11-29 20:11 --- Another problem with the current patch, is we get one testsuite regression (gfortran.fortran-torture/compile/defined_type_2.f90 at -O1). For this simple testcase, we end up generating bad assembler: mr 9

[Bug middle-end/28690] [4.2/4.3 Regression] Performace problem with indexed load/stores on powerpc

2006-11-29 Thread bergner at vnet dot ibm dot com
--- Comment #29 from bergner at vnet dot ibm dot com 2006-11-29 22:23 --- Talking with Andrew on IRC, he said the test case in comment #27 fails for the same reason as the test case in comment #24 (ie, it looks like an artificial decl) and should be fixed with his PTR_PLUS_EXPR work

[Bug c++/26943] [gomp] firstprivate not working properly with non-POD

2006-12-04 Thread bergner at vnet dot ibm dot com
--- Comment #11 from bergner at vnet dot ibm dot com 2006-12-05 02:06 --- The testcase pr26943-2.c fails intermittently for me using unpatched mainline. Is anyone else seeing that? I'm building on powerpc64-linux with -m32. If I run it a few times, it mainly passes, but every on

[Bug middle-end/28690] [4.2/4.3 Regression] Performace problem with indexed load/stores on powerpc

2006-12-04 Thread bergner at vnet dot ibm dot com
--- Comment #30 from bergner at vnet dot ibm dot com 2006-12-05 04:22 --- Ok, the problem from comment #28 was due to a latent bug in reload1.c:eliminate_regs_in_insn(). The bug is that eliminate_regs_in_insn() calls single_set() on the passed in insn. This has been fine before, but

[Bug middle-end/28690] [4.2/4.3 Regression] Performace problem with indexed load/stores on powerpc

2006-12-04 Thread bergner at vnet dot ibm dot com
--- Comment #31 from bergner at vnet dot ibm dot com 2006-12-05 04:41 --- ...and here's the patch I mentioned in the previous comment: Index: reload1.c === --- reload1.c (revision 119497) +++ reload1.c (working

[Bug middle-end/30191] [4.3 Regression] GCC error: in eliminate_regs_in_insn, at reload1.c:3126

2006-12-13 Thread bergner at vnet dot ibm dot com
--- Comment #7 from bergner at vnet dot ibm dot com 2006-12-13 19:25 --- Ok, the reload fix has been reverted until we can find another way to fix this. Sorry for all of the trouble. Author: bergner Date: Wed Dec 13 19:19:03 2006 New Revision: 119844 URL: http://gcc.gnu.org/viewcvs