[Bug hsa/86948] Internal compiler error compiling brig.dg/test/gimple/mulhi.hsail

2018-08-17 Thread pekka.jaaskelainen at parmance dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86948

--- Comment #5 from Pekka Jääskeläinen  
---
Hi Alexander. I just verified that the patch fixes the make check-brig
regression here. Are you going to post this to ML for review or how shall we
proceed?

[Bug hsa/81713] BIT_FIELD_REF produced by Brig FE do not pass new verification

2017-08-04 Thread pekka.jaaskelainen at parmance dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81713

--- Comment #3 from Pekka Jääskeläinen  
---
Committed in r250874.

[Bug hsa/81713] BIT_FIELD_REF produced by Brig FE do not pass new verification

2017-08-04 Thread pekka.jaaskelainen at parmance dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81713

--- Comment #2 from Pekka Jääskeläinen  
---
https://github.com/linehill/gccbrig/commit/feab8a56be8cbe3b95f4dd121e7db4306f75655e.patch
 I will commit this a bit later unless you wish to fix it sooner.

[Bug other/79250] brig/brigfrontend/brig-to-generic.cc: two small problems

2017-02-01 Thread pekka.jaaskelainen at parmance dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79250

--- Comment #2 from Pekka Jääskeläinen  
---
Committed in r245084.

[Bug other/79250] brig/brigfrontend/brig-to-generic.cc: two small problems

2017-01-27 Thread pekka.jaaskelainen at parmance dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79250

Pekka Jääskeläinen  changed:

   What|Removed |Added

 CC||pekka.jaaskelainen@parmance
   ||.com

--- Comment #1 from Pekka Jääskeläinen  
---
Created attachment 40605
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40605=edit
patch for the issues

[Bug libgcc/67624] New: arm/fp16.c __gnu_f2h_internal has wrong pattern for INF/NAN

2015-09-18 Thread pekka.jaaskelainen at parmance dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67624

Bug ID: 67624
   Summary: arm/fp16.c __gnu_f2h_internal has wrong pattern for
INF/NAN
   Product: gcc
   Version: 4.9.1
Status: UNCONFIRMED
  Severity: major
  Priority: P3
 Component: libgcc
  Assignee: unassigned at gcc dot gnu.org
  Reporter: pekka.jaaskelainen at parmance dot com
  Target Milestone: ---

I believe the f2h conversion routine uses wrong mask for INF/NAN in the early
shortcut. It seems to be the case also in the gcc HEAD.

This should fix it:

--- arm/fp16.c  2015-09-18 15:53:51.069011932 +0300
+++ fp16.c  2015-09-18 15:50:50.653013393 +0300
@@ -35,7 +35,7 @@
 {
   if (!ieee)
return sign;
-  return sign | 0x7e00 | (mantissa >> 13);
+  return sign | 0x7c00 | (mantissa >> 13);
 }

   if (aexp == 0 && mantissa == 0)