--
fxcoudert at gcc dot gnu dot org changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last recon
--- Comment #1 from fxcoudert at gcc dot gnu dot org 2007-01-23 13:26
---
matmul also has this problem:
$ cat a.f90
integer(kind=1) :: x(2,2), y(2,2), i
integer :: z(2,2)
print *, matmul(x,y)
!pack
!unpack
print *, maxval(x,dim=2), minval(x,dim=2)
print *, (1.2,0.2)**i
--- Comment #2 from tkoenig at gcc dot gnu dot org 2007-01-29 22:42 ---
For maxval, the usual method of converting the
arguments to default integer kind will have an
"interesting" side effect with an all-false mask:
The value will be a conversion of the default integer
minimum value (soo
--- Comment #3 from tkoenig at gcc dot gnu dot org 2007-01-31 21:07 ---
Created an attachment (id=12990)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12990&action=view)
patch for minval and maxval
Here's a solution for minval and maxval.
I'm not yet sure how to deal with matmul,
--- Comment #4 from fxcoudert at gcc dot gnu dot org 2007-02-07 08:09
---
(In reply to comment #3)
> I'm not yet sure how to deal with matmul, wether by
> converting its arguments or by creating kind=1 and
> kind=2 versions.
I think converting wil have a huge performance hit, so we'd b
--- Comment #5 from tkoenig at gcc dot gnu dot org 2007-02-07 20:08 ---
> I think converting wil have a huge performance hit, so we'd better havec
> kind=1
> and kind=2 versions.
I agree, here's a patch to do this.
For speed reasons, we should also reverse the conversions
through the
--- Comment #6 from tkoenig at gcc dot gnu dot org 2007-02-10 19:57 ---
sum is also missing:
$ cat sum.f90
program main
integer(kind=1), dimension(2,2) :: a
a = 1
print *,sum(a,dim=2)
end program main
$ gfortran sum.f90
/tmp/ccQgrJa3.o: In function `MAIN__':
sum.f90:(.text+0x126):
--- Comment #7 from tkoenig at gcc dot gnu dot org 2007-02-11 19:42 ---
Created an attachment (id=13036)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13036&action=view)
patch
This fixes the missing intrinsics, and removes type conversion
from minloc.
This also reverses http://gc
--- Comment #8 from tkoenig at gcc dot gnu dot org 2007-02-12 20:21 ---
Created an attachment (id=13044)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13044&action=view)
combined patch for this and PR 30765
Regression-test is OK, file generation is OK.
--
tkoenig at gcc dot gn
--- Comment #9 from tkoenig at gcc dot gnu dot org 2007-02-12 20:23 ---
Created an attachment (id=13045)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13045&action=view)
Test case
Test case.
I'll be away for a few days, I'll submit it as a proper patch then.
--
http://gcc.gn
--- Comment #10 from tkoenig at gcc dot gnu dot org 2007-02-12 20:25
---
(In reply to comment #8)
> Created an attachment (id=13044)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13044&action=view) [edit]
> combined patch for this and PR 30765
>
> Regression-test is OK, file gene
--- Comment #11 from tkoenig at gcc dot gnu dot org 2007-02-19 20:49
---
Subject: Bug 30533
Author: tkoenig
Date: Mon Feb 19 20:49:10 2007
New Revision: 122137
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122137
Log:
2007-02-19 Thomas Koenig <[EMAIL PROTECTED]>
PR
12 matches
Mail list logo