[Bug target/94248] [amdgcn] Doesn't build with RTL checking

2020-03-23 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94248 --- Comment #3 from Andrew Stubbs --- Actually, I think that recent changes to the register alignment mean that this can't happen any more, so the whole check is probably obsolete. I thought that --enable-checking=yes was already covering this.

[Bug target/94282] [amdgcn] ld: error: undefined symbol: __gxx_personality_v0

2020-03-26 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94282 --- Comment #3 from Andrew Stubbs --- (In reply to Andrew Pinski from comment #2) > (In reply to Tobias Burnus from comment #1) > > The symbol __gxx_personality_v0 is part of libsupc++ – which I believe is > > not build to to lacking/restricted C

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-17 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #11 from Andrew Stubbs --- (In reply to Jakub Jelinek from comment #10) > or if instead we should drop the "status = " for the cases where nothing > checks it. Andrew? I think checking the status is probably good practice, even thoug

[Bug target/94248] [amdgcn] Doesn't build with RTL checking

2020-04-21 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94248 --- Comment #5 from Andrew Stubbs --- (In reply to Thomas Schwinge from comment #4) > (In reply to Andrew Stubbs from comment #3) > > Actually, I think that recent changes to the register alignment mean that > > this can't happen any more, so the

[Bug target/94278] [amdgcn] Offloading build failures due to 'llvm-mc' SIGSEGV

2020-04-21 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94278 --- Comment #2 from Andrew Stubbs --- Well, it works for me: PASS: libgomp.c/examples-4/async_target-2.c (test for excess errors) PASS: libgomp.c/examples-4/async_target-2.c execution test That's with an unmodified LLVM 9 we built ourselves.

[Bug target/94248] [amdgcn] Doesn't build with RTL checking

2020-04-22 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94248 --- Comment #7 from Andrew Stubbs --- I'd rather remove the whole if branch, but given you've tested this already then it's probably the best short term fix. Please go ahead.

[Bug target/94278] [amdgcn] Offloading build failures due to 'llvm-mc' SIGSEGV

2020-04-23 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94278 --- Comment #4 from Andrew Stubbs --- Almost all the tests listed in pr81430 pass for me (and the exception I found is a link error). I don't understand what's happening with your build, but from my point of view the patch fixes an issue that do

[Bug target/94282] [amdgcn] ld: error: undefined symbol: __gxx_personality_v0

2020-04-23 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94282 --- Comment #6 from Andrew Stubbs --- I think we've decided to with Thomas's approach. Thomas, please go ahead and commit.

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-23 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #23 from Andrew Stubbs --- (In reply to Jakub Jelinek from comment #12) > (In reply to Andrew Stubbs from comment #11) > > (In reply to Jakub Jelinek from comment #10) > > > or if instead we should drop the "status = " for the cases w

[Bug testsuite/94725] Tests with proprietary license notices

2020-04-23 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94725 Andrew Stubbs changed: What|Removed |Added CC||ams at gcc dot gnu.org --- Comment #2

[Bug middle-end/93488] [OpenACC] ICE in type-cast 'async', 'wait' clauses

2020-04-24 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93488 Andrew Stubbs changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/95730] GCN offloading ICEs after commit fe7ebef7fe4f9acb79658ed9db0749b07efc3105 "Add support for __builtin_bswap128"

2020-06-17 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95730 --- Comment #1 from Andrew Stubbs --- GCN uses TImode for a few special purposes, but lacks real TImode support. (Basically, it allows TImode loads and stores for the SLP fake vectorization, and there's one instruction that needs two DImode valu

[Bug target/95730] GCN offloading ICEs after commit fe7ebef7fe4f9acb79658ed9db0749b07efc3105 "Add support for __builtin_bswap128"

2020-06-18 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95730 --- Comment #3 from Andrew Stubbs --- The GCN port does not define a scalar_mode_supported, and I think the default definition is allowing TImode (as long long int). As I said, the SLP fake-vector load/store use it fine as a substitute for V4SI o

[Bug target/95864] [11 Regression] GCN offloading execution regressions after commit f062c3f11505b70c5275e5bc0e52f3e441f8afbc "amdgcn: Switch to HSACO v3 binary format"

2020-06-24 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95864 --- Comment #1 from Andrew Stubbs --- I'm aware of these issues. I fixed all the test failures that were definitely bugs in the HSACOv3 implementation, and the ones that remain appear to be either latent bugs uncovered by the new driver configur

[Bug target/96306] gcn libgomp build broken after "libomp: Add omp_depend_kind to omp_lib.{f90,h}"

2020-07-24 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96306 --- Comment #3 from Andrew Stubbs --- TImode was added for use by a few instructions that take two 64-bit values in consecutive registers. It's also useful for the SLP fake vectorization stuff. It wasn't intended for use with user types; I proba

[Bug target/96306] gcn libgomp build broken after "libomp: Add omp_depend_kind to omp_lib.{f90,h}"

2020-07-24 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96306 --- Comment #5 from Andrew Stubbs --- GCC will automatically generate libgcc calls for types up to 2*BITS_PER_WORD, but no further. Since BITS_PER_WORD is 32 on GCN this means no automatic TImode support for anything that would go that route (suc

[Bug target/95730] GCN offloading ICEs after commit fe7ebef7fe4f9acb79658ed9db0749b07efc3105 "Add support for __builtin_bswap128"

2020-07-24 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95730 --- Comment #4 from Andrew Stubbs --- In fact default_scalar_mode_supported_p does return *false* for TImode (because LONG_LONG_TYPE_SIZE == 64, and BITS_PER_WORD == 32). Therefore int128_t does not exist, as far as users are concerned. I'm not

[Bug target/96306] gcn libgomp build broken after "libomp: Add omp_depend_kind to omp_lib.{f90,h}"

2020-07-24 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96306 --- Comment #8 from Andrew Stubbs --- I'm loath to enable TImode if it's going to ICE all over the place, and I can't just drop everything else and implement working TImode unless there's an easy solution. It's always been on the nice-to-have lis

[Bug tree-optimization/92772] New: wrong code vectorizing masked max

2019-12-03 Thread ams at gcc dot gnu.org
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: ams at gcc dot gnu.org Target Milestone: --- The testcase pr65947-10.c fails on amdgcn because there are more vector lanes than there is data, and the algorithm created doesn't allow for this. (Actually there

[Bug tree-optimization/92772] wrong code vectorizing masked max

2019-12-04 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92772 --- Comment #3 from Andrew Stubbs --- The GCN architecture can handle the masking, but I don't know how we'd represent or apply that in the middle end? I can probably implement extract_last, and that might be more efficient, but I don't see how

[Bug tree-optimization/92772] wrong code vectorizing masked max

2019-12-04 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92772 --- Comment #6 from Andrew Stubbs --- (In reply to Richard Biener from comment #4) > Btw, isn't the issue that the reduction looks at all lanes? That is, > I think the code simply assumes that for fully masked loops at least > one iteration is p

[Bug tree-optimization/92772] wrong code vectorizing masked max

2019-12-17 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92772 Andrew Stubbs changed: What|Removed |Added Priority|P3 |P5 Severity|critical

[Bug bootstrap/93409] [10 Regression] gcn libgomp plugin fails to build for x32

2020-01-24 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93409 Andrew Stubbs changed: What|Removed |Added CC||ams at gcc dot gnu.org --- Comment #1

[Bug target/47976] New: Recent fortran testsuite regressions

2011-03-03 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47976 Summary: Recent fortran testsuite regressions Product: gcc Version: 4.5.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@g

[Bug target/42947] multilib and startup files paths differ on sh4 with -m4 and without -m4 where -m4 is default multilib

2013-08-20 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42947 --- Comment #4 from Andrew Stubbs --- With multilibs enabled this is usually the correct behaviour, but I wouldn't have expected this with --disable-multilib.

[Bug bootstrap/50128] [4.7 Regression] bootstrap failure

2011-08-19 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50128 --- Comment #1 from Andrew Stubbs 2011-08-19 16:24:09 UTC --- I believe this is fixed in 177910, if not before.

[Bug target/43862] GCC doesn't use 16-bit armv5te multiplies when possible

2011-08-23 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43862 Andrew Stubbs changed: What|Removed |Added CC||ams at gcc dot gnu.org --- Comment #3

[Bug target/50193] ARM: ICE on a | (b << negative-constant)

2011-09-01 Thread ams at gcc dot gnu.org
||2011-09-01 CC||ams at gcc dot gnu.org AssignedTo|unassigned at gcc dot |ams at gcc dot gnu.org |gnu.org | Ever Confirmed|0 |1 --- Comment #2 from Andrew

[Bug tree-optimization/50318] New: ICE optimizing widening multiply-and-accumulate

2011-09-07 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50318 Bug #: 50318 Summary: ICE optimizing widening multiply-and-accumulate Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Pr

[Bug tree-optimization/50318] ICE optimizing widening multiply-and-accumulate

2011-09-07 Thread ams at gcc dot gnu.org
||2011-09-07 AssignedTo|unassigned at gcc dot |ams at gcc dot gnu.org |gnu.org | Ever Confirmed|0 |1 --- Comment #1 from Andrew Stubbs 2011-09-07 11:08:06 UTC --- The problem is a bug in my recent

[Bug tree-optimization/50318] ICE optimizing widening multiply-and-accumulate

2011-09-08 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50318 --- Comment #2 from Andrew Stubbs 2011-09-08 19:45:41 UTC --- Author: ams Date: Thu Sep 8 19:45:37 2011 New Revision: 178708 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=178708 Log: 2011-09-08 Andrew Stubbs PR tree-optimization

[Bug tree-optimization/50318] ICE optimizing widening multiply-and-accumulate

2011-09-08 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50318 Andrew Stubbs changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|

[Bug target/50193] ARM: ICE on a | (b << negative-constant)

2011-10-10 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50193 Andrew Stubbs changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|

[Bug tree-optimization/50717] Silent code gen fault with incorrect widening of multiply

2011-10-13 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50717 Andrew Stubbs changed: What|Removed |Added CC||ams at gcc dot gnu.org --- Comment #4

[Bug tree-optimization/50717] [4.7 Regression] Silent code gen fault with incorrect widening of multiply

2011-10-14 Thread ams at gcc dot gnu.org
||2011-10-14 AssignedTo|unassigned at gcc dot |ams at gcc dot gnu.org |gnu.org | Ever Confirmed|0 |1 --- Comment #5 from Andrew Stubbs 2011-10-14 15:25:49 UTC --- I think I've identified the

[Bug tree-optimization/50717] [4.7 Regression] Silent code gen fault with incorrect widening of multiply

2011-10-15 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50717 --- Comment #6 from Andrew Stubbs 2011-10-15 21:29:12 UTC --- Patch posted here: http://gcc.gnu.org/ml/gcc-patches/2011-10/msg01397.html

[Bug tree-optimization/50717] [4.7 Regression] Silent code gen fault with incorrect widening of multiply

2011-10-18 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50717 --- Comment #7 from Andrew Stubbs 2011-10-18 19:57:19 UTC --- Author: ams Date: Tue Oct 18 19:57:15 2011 New Revision: 180164 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180164 Log: 2011-10-18 Andrew Stubbs PR tree-optimization

[Bug tree-optimization/50717] [4.7 Regression] Silent code gen fault with incorrect widening of multiply

2011-10-19 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50717 Andrew Stubbs changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|

[Bug target/50809] driver-arm.c:55:11: error: anonymous type with no linkage used to declare variable ' vendors []' with linkage [-Werror]

2011-10-21 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50809 --- Comment #2 from Andrew Stubbs 2011-10-21 10:31:53 UTC --- Author: ams Date: Fri Oct 21 10:31:48 2011 New Revision: 180289 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180289 Log: 2011-10-21 Andrew Stubbs PR target/50809

[Bug target/50809] driver-arm.c:55:11: error: anonymous type with no linkage used to declare variable ' vendors []' with linkage [-Werror]

2011-10-21 Thread ams at gcc dot gnu.org
||FIXED AssignedTo|unassigned at gcc dot |ams at gcc dot gnu.org |gnu.org | --- Comment #3 from Andrew Stubbs 2011-10-21 10:40:16 UTC --- Fixed.

[Bug target/53189] New: DImode and/or/not/xor optimized poorly in core-registers

2012-05-02 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53189 Bug #: 53189 Summary: DImode and/or/not/xor optimized poorly in core-registers Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED

[Bug target/53189] DImode and/or/not/xor optimized poorly in core-registers

2012-05-02 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53189 --- Comment #1 from Andrew Stubbs 2012-05-02 11:25:35 UTC --- I do mean "anddi3" not "adddi3" in the description. :( My fingers have bad habits ...

[Bug target/53189] DImode and/or/not/xor optimized poorly in core-registers

2012-05-14 Thread ams at gcc dot gnu.org
||2012-05-14 AssignedTo|unassigned at gcc dot |ams at gcc dot gnu.org |gnu.org | Ever Confirmed|0 |1 --- Comment #2 from Andrew Stubbs 2012-05-14 09:24:02 UTC --- I'm working on some patche

[Bug target/52260] [4.7 Regression] ICE in clone_tree_hash, at dwarf2out.c:7424

2012-02-15 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52260 Andrew Stubbs changed: What|Removed |Added CC||ams at gcc dot gnu.org

[Bug fortran/88898] [Regression 9] gomp is broken by r268045

2019-01-17 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88898 Andrew Stubbs changed: What|Removed |Added CC||ams at gcc dot gnu.org --- Comment #3

[Bug testsuite/88920] [9 regression] GCC is not configured to support amdgcn-unknown-amdhsa as offload target

2019-01-21 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88920 --- Comment #5 from Andrew Stubbs --- The llvm_binutils check is needed because those tools emit blank lines all over the place, so we end up with hundreds of stupid failures. I'll look into caching it though.

[Bug testsuite/88920] [9 regression] GCC is not configured to support amdgcn-unknown-amdhsa as offload target

2019-01-21 Thread ams at gcc dot gnu.org
at gcc dot gnu.org |ams at gcc dot gnu.org

[Bug testsuite/88920] [9 regression] GCC is not configured to support amdgcn-unknown-amdhsa as offload target

2019-01-21 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88920 --- Comment #7 from Andrew Stubbs --- I'm not sure that an assembler or linker can be labelled "insane" for choosing to include some blank lines amongst its diagnostics. :-) In any case, there's no other tool available, and no time/money availab

[Bug testsuite/88920] [9 regression] GCC is not configured to support amdgcn-unknown-amdhsa as offload target

2019-01-21 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88920 --- Comment #9 from Andrew Stubbs --- (In reply to Jakub Jelinek from comment #8) > First of all, I thought the current trunk amdgcn support is non-offloading > only, so you could at least for now always return 0 from > check_effective_target_off

[Bug testsuite/88920] [9 regression] GCC is not configured to support amdgcn-unknown-amdhsa as offload target

2019-01-21 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88920 --- Comment #11 from Andrew Stubbs --- Created attachment 45481 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45481&action=edit Cache test This patch caches the result so that the (harmless) error message occurs only once. Is there a way

[Bug testsuite/89095] gcc-dg-prune calls check_effective_target_offload_gcn every time

2019-01-29 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89095 --- Comment #2 from Andrew Stubbs --- There's a patch on pr88920, but no review yet. I was planning to chase it today.

[Bug testsuite/88920] [9 regression] GCC is not configured to support amdgcn-unknown-amdhsa as offload target

2019-01-30 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88920 --- Comment #12 from Andrew Stubbs --- Author: ams Date: Wed Jan 30 11:26:31 2019 New Revision: 268384 URL: https://gcc.gnu.org/viewcvs?rev=268384&root=gcc&view=rev Log: Cache effective-target llvm_binutils result. 2019-01-30 Andrew Stubbs

[Bug testsuite/88920] [9 regression] GCC is not configured to support amdgcn-unknown-amdhsa as offload target

2019-01-30 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88920 Andrew Stubbs changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug testsuite/88920] [9 regression] GCC is not configured to support amdgcn-unknown-amdhsa as offload target

2019-01-30 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88920 Andrew Stubbs changed: What|Removed |Added CC||hjl.tools at gmail dot com --- Comment #

[Bug testsuite/89095] gcc-dg-prune calls check_effective_target_offload_gcn every time

2019-01-30 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89095 Andrew Stubbs changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug middle-end/82089] emit_cstore sign-extends BImode result for STORE_FLAG_VALUE == 1

2018-05-18 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82089 Andrew Stubbs changed: What|Removed |Added CC||ams at gcc dot gnu.org --- Comment #5

[Bug tree-optimization/91198] GCC not generating AVX-512 compress/expand instructions

2019-07-18 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91198 --- Comment #1 from Andrew Stubbs --- I don't believe GCC detects that operation automatically. It does support the instruction via intrinsics (builtin functions that correspond to low-level machine features). You should investigate "__builtin_i

[Bug testsuite/88920] [9 regression] GCC is not configured to support amdgcn-unknown-amdhsa as offload target

2019-02-11 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88920 --- Comment #17 from Andrew Stubbs --- If this is going to annoy a lot of people then I suppose I could add an additional message stating that the error can safely be ignored? Or, maybe there's a way to silence/hide the output from check_no_comp

[Bug testsuite/88920] [9 regression] GCC is not configured to support amdgcn-unknown-amdhsa as offload target

2019-02-11 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88920 --- Comment #23 from Andrew Stubbs --- It's caused by the llvm_binutils check, which is used by pretty much every test to determine whether to complain about blank lines in compile output, or not. Right now the easiest way to determine if it's u

[Bug middle-end/90779] New: Fortran array initialization in OpenMP offload regions

2019-06-07 Thread ams at gcc dot gnu.org
Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: ams at gcc dot gnu.org Target Milestone: --- Initializing arrays (or just assigning them) using implied do loops (or whatever the proper Fortran name is) does not work within OpenMP "target" regions

[Bug middle-end/90779] Fortran array initialization in offload regions

2019-06-13 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90779 --- Comment #3 from Andrew Stubbs --- My code now compiles successfully, with the patch, but it hangs at runtime. I need to investigate, but debugging runtime issues on the GPU is slow work.

[Bug middle-end/90779] Fortran array initialization in offload regions

2019-06-14 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90779 --- Comment #4 from Andrew Stubbs --- The problem is that the variables are added to the offload_var_table but not exported so that libgomp cannot find the symbol at load time. This causes a fatal error in a mutex-locked section, which causes lib

[Bug middle-end/90779] Fortran array initialization in offload regions

2019-06-14 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90779 --- Comment #6 from Andrew Stubbs --- There's not observable difference. I don't quite follow what the patch is trying to achieve, but seems like adding the variable to the offload variables does not address the issue here. I've added a hack to

[Bug middle-end/90779] Fortran array initialization in offload regions

2019-06-14 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90779 --- Comment #8 from Andrew Stubbs --- On GCN I get the lto_priv names, but not the globalization. I think that shows what the expected behaviour is, thanks ... I just need to find that magic. That being so, I think I can confirm that your origin

[Bug middle-end/90779] Fortran array initialization in offload regions

2019-06-17 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90779 --- Comment #14 from Andrew Stubbs --- (In reply to Jakub Jelinek from comment #7) > if I compile just the first TU without the foo () call in there, and > .global .align 4 .u32 var$lto_priv$1[1] = { 5 }; > .global .align 4 .u32

[Bug middle-end/82089] emit_cstore sign-extends BImode result for STORE_FLAG_VALUE == 1

2018-09-27 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82089 --- Comment #7 from Andrew Stubbs --- Author: ams Date: Thu Sep 27 11:15:48 2018 New Revision: 264666 URL: https://gcc.gnu.org/viewcvs?rev=264666&root=gcc&view=rev Log: [pr82089] Don't sign-extend SFV 1 in BImode This is an update of the patch

[Bug middle-end/82089] emit_cstore sign-extends BImode result for STORE_FLAG_VALUE == 1

2018-09-27 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82089 Andrew Stubbs changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug rtl-optimization/86438] [8 Regression] wrong code at -Os

2018-11-16 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86438 Andrew Stubbs changed: What|Removed |Added CC||ams at gcc dot gnu.org --- Comment #9

[Bug middle-end/60102] [4.9/4.10 Regression] powerpc fp-bit ices at dwf_regno

2014-06-12 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60102 Andrew Stubbs changed: What|Removed |Added CC||ams at gcc dot gnu.org --- Comment #13

[Bug middle-end/64491] [5 Regression] incorrect warning: loop exit may only be reached after undefined behavior

2015-03-18 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64491 --- Comment #15 from Andrew Stubbs --- Yeah, I've not managed to come up with a better solution, so I think I'll just revert the patch, for now. :-(

[Bug testsuite/64032] [5 Regression] FAIL: gcc.dg/undefined-loop-2.c (test for warnings, line 18)

2015-03-18 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64032 --- Comment #7 from Andrew Stubbs --- Author: ams Date: Wed Mar 18 14:27:13 2015 New Revision: 221492 URL: https://gcc.gnu.org/viewcvs?rev=221492&root=gcc&view=rev Log: Fix PR64491 2015-03-18 Andrew Stubbs PR middle-end/64491 Revert

[Bug middle-end/64491] [5 Regression] incorrect warning: loop exit may only be reached after undefined behavior

2015-03-18 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64491 --- Comment #16 from Andrew Stubbs --- Author: ams Date: Wed Mar 18 14:27:13 2015 New Revision: 221492 URL: https://gcc.gnu.org/viewcvs?rev=221492&root=gcc&view=rev Log: Fix PR64491 2015-03-18 Andrew Stubbs PR middle-end/64491 Rever

[Bug middle-end/64491] [5 Regression] incorrect warning: loop exit may only be reached after undefined behavior

2015-03-18 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64491 Andrew Stubbs changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug middle-end/64491] [5 Regression] incorrect warning: loop exit may only be reached after undefined behavior

2015-02-18 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64491 --- Comment #8 from Andrew Stubbs --- Just silencing the warning may not be enough. The compiler may optimize away loop exit conditions based on this analysis. The warning mirrors the logic rather than shares it (due to the way the logic is distr

[Bug middle-end/64491] [5 Regression] incorrect warning: loop exit may only be reached after undefined behavior

2015-02-20 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64491 --- Comment #10 from Andrew Stubbs --- I'm trying to look at this problem, but so far all my builds are failing. Probably I have some local cruft. In the meantime, the workaround is to use -Wno-aggressive-loop-optimizations, I think.

[Bug middle-end/64491] [5 Regression] incorrect warning: loop exit may only be reached after undefined behavior

2015-02-24 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64491 --- Comment #11 from Andrew Stubbs --- The compiler has constructed the loop such that it reads like this: f = 0; tmp = 0; do { B[f] = tmp | A[f + 1]; if (f + 1 == 8) break; if (f + 1 > 0) tmp = A[f]; if (f + 1 == 7) { B[f

[Bug middle-end/64491] [5 Regression] incorrect warning: loop exit may only be reached after undefined behavior

2015-02-25 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64491 --- Comment #13 from Andrew Stubbs --- I thought of that, but my testcase has 2 exits. I thought of only warning when all the exits were being removed, but the loop->bounds list does not include all the exits, so that can't happen either. I tho

[Bug middle-end/64032] [5 Regression] FAIL: gcc.dg/undefined-loop-2.c (test for warnings, line 18)

2014-11-27 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64032 --- Comment #2 from Andrew Stubbs --- When I configure for powerpc-linux-gnu, undefined-loop-2.c.003t.original contains this: if (((p != 0 ? (unsigned char) array1[i] != 0 : (unsigned char) array2[i] != 0) && i <= 4) && i <= 99) goto ; else go

[Bug testsuite/64032] [5 Regression] FAIL: gcc.dg/undefined-loop-2.c (test for warnings, line 18)

2014-12-24 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64032 --- Comment #5 from Andrew Stubbs --- Author: ams Date: Wed Dec 24 14:27:06 2014 New Revision: 219059 URL: https://gcc.gnu.org/viewcvs?rev=219059&root=gcc&view=rev Log: Fix undefined-loop-2.c test case. 2014-12-24 Andrew Stubbs PR tests

[Bug testsuite/64032] [5 Regression] FAIL: gcc.dg/undefined-loop-2.c (test for warnings, line 18)

2014-12-24 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64032 Andrew Stubbs changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/48250] New: ICE in reload_cse_simplify_operands, at postreload.c:403

2011-03-23 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48250 Summary: ICE in reload_cse_simplify_operands, at postreload.c:403 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c/48783] ARM: kernel compiled at -O2 has a unused reference to __aeabi_uldivmod

2011-04-27 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48783 Andrew Stubbs changed: What|Removed |Added CC||ams at gcc dot gnu.org --- Comment #1

[Bug c/48783] ARM: kernel compiled at -O2 has a unused reference to __aeabi_uldivmod

2011-04-27 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48783 --- Comment #4 from Andrew Stubbs 2011-04-27 11:08:10 UTC --- Somewhat reduced testcase: static void f (unsigned int a) { unsigned long long __res; if (~0ULL % (a / (a & -a)) == 0) { asm ("": "+&r" (__res)); } } int g (unsign

[Bug rtl-optimization/43721] Failure to optimise (a/b) and (a%b) into single __aeabi_idivmod call

2010-10-20 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43721 Andrew Stubbs changed: What|Removed |Added CC||ams at gcc dot gnu.org --- Comment #6

[Bug rtl-optimization/46888] New: missed optimization of zero_extract with constant inputs

2010-12-10 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46888 Summary: missed optimization of zero_extract with constant inputs Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Componen

[Bug rtl-optimization/46888] missed optimization of zero_extract with constant inputs

2010-12-10 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46888 --- Comment #1 from Andrew Stubbs 2010-12-10 17:02:05 UTC --- Two different patches have been posted to fix this: http://gcc.gnu.org/ml/gcc-patches/2010-12/msg00778.html http://gcc.gnu.org/ml/gcc-patches/2010-12/msg00784.html One, or both sh

[Bug target/46092] Improve constant handling of thumb2 instructions

2010-12-10 Thread ams at gcc dot gnu.org
||ams at gcc dot gnu.org AssignedTo|unassigned at gcc dot |ams at gcc dot gnu.org |gnu.org | --- Comment #2 from Andrew Stubbs 2010-12-10 17:23:51 UTC --- I've posted a patch to fix this issue (among others):

[Bug target/46092] Improve constant handling of thumb2 instructions

2010-12-10 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46092 --- Comment #3 from Andrew Stubbs 2010-12-10 17:27:04 UTC --- Oh, I should say, what it actually does is this: subhi r0, r0, #65280 ; 0xff00 subhi r0, r0, #241 ; 0x00f1

[Bug target/100208] amdgcn fails to build with llvm-mc from llvm12

2021-04-22 Thread ams at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100208 --- Comment #1 from Andrew Stubbs --- LLVM changed the default parameters, so we either have to change the expectations in the ".amdgcn_target" string (which is basically an assert), or set the attributes be want explicitly on the assembler comm

[Bug tree-optimization/84958] int loads not eliminated against larger stores

2020-10-15 Thread ams at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84958 --- Comment #6 from Andrew Stubbs --- (In reply to Tom de Vries from comment #5) > I've removed the xfail for nvptx. > > The only remaining xfail is for gcn. Is that one still necessary? The test still fails for gcn.

[Bug target/97521] [11 Regression] wrong code with -mno-sse2 since r11-3394

2020-10-23 Thread ams at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97521 --- Comment #21 from Andrew Stubbs --- (In reply to Richard Biener from comment #19) > GCN also uses MODE_INT for the mask mode and thus may be similarly affected. > Andrew - are the bits in the mask dense? Thus for a V4SImode compare > would th

[Bug target/97521] [11 Regression] wrong code with -mno-sse2 since r11-3394

2020-10-23 Thread ams at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97521 --- Comment #22 from Andrew Stubbs --- (In reply to Andrew Stubbs from comment #21) > (In reply to Richard Biener from comment #19) > > GCN also uses MODE_INT for the mask mode and thus may be similarly affected. > > Andrew - are the bits in the

[Bug libgomp/97332] [gcn] GCN_NUM_GANGS/GCN_NUM_WORKERS override compile-time constants

2020-10-08 Thread ams at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97332 Andrew Stubbs changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug target/100418] [12 Regression][gcn] since r12-397 bootstrap fails: error: unrecognizable insn: in extract_insn, at recog.c:2770

2021-05-05 Thread ams at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100418 --- Comment #4 from Andrew Stubbs --- Alexandre's patch has this: emit_move_insn (rem, plus_constant (ptr_mode, rem, -blksize)); Is that generally a valid thing to do? It seems like other places do similar things...

[Bug target/100418] [12 Regression][gcn] since r12-397 bootstrap fails: error: unrecognizable insn: in extract_insn, at recog.c:2770

2021-05-05 Thread ams at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100418 Andrew Stubbs changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug target/100418] [12 Regression][gcn] since r12-397 bootstrap fails: error: unrecognizable insn: in extract_insn, at recog.c:2770

2021-05-05 Thread ams at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100418 --- Comment #9 from Andrew Stubbs --- I found a couple of other places to put force_operand and the full case works now. Running more tests

[Bug target/100418] [12 Regression][gcn] since r12-397 bootstrap fails: error: unrecognizable insn: in extract_insn, at recog.c:2770

2021-05-06 Thread ams at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100418 --- Comment #13 from Andrew Stubbs --- I found a lot more ICEs when testing my patch. They look to be unrelated (TImode come back to haunt us), but it makes it hard to be sure.

[Bug target/100418] [12 Regression][gcn] since r12-397 bootstrap fails: error: unrecognizable insn: in extract_insn, at recog.c:2770

2021-05-14 Thread ams at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100418 Andrew Stubbs changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug testsuite/108898] [13 Regression] Test introduced by r13-6278-g3da77f217c8b2089ecba3eb201e727c3fcdcd19d failed on i386

2023-02-23 Thread ams at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108898 --- Comment #1 from Andrew Stubbs --- I tested it on i686-pc-linux-gnu before I posted the patch, and it was working then. Can you be more specific what configuration you were testing, please?

[Bug testsuite/108898] [13 Regression] Test introduced by r13-6278-g3da77f217c8b2089ecba3eb201e727c3fcdcd19d failed on i386

2023-03-15 Thread ams at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108898 --- Comment #4 from Andrew Stubbs --- I did not know there was a way to do that! I'll add this to my to-do list.

  1   2   >