URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 303 |
Rev 338 |
! PR middle-end/20030
|
! PR middle-end/20030
|
! we were messing up the access in LSAME for
|
! we were messing up the access in LSAME for
|
! the character arguments.
|
! the character arguments.
|
program foo
|
program foo
|
character*1 a1, a2, b
|
character*1 a1, a2, b
|
logical LSAME, x
|
logical LSAME, x
|
a1='A'
|
a1='A'
|
a2='A'
|
a2='A'
|
b='B'
|
b='B'
|
x = LSAME(a1,a2)
|
x = LSAME(a1,a2)
|
if ( .not. x ) then
|
if ( .not. x ) then
|
call abort ();
|
call abort ();
|
endif
|
endif
|
end
|
end
|
|
|
logical function LSAME( CA, CB )
|
logical function LSAME( CA, CB )
|
character CA, CB
|
character CA, CB
|
integer INTA, INTB
|
integer INTA, INTB
|
INTA = ICHAR( CA )
|
INTA = ICHAR( CA )
|
INTB = ICHAR( CB )
|
INTB = ICHAR( CB )
|
LSAME = INTA.EQ.INTB
|
LSAME = INTA.EQ.INTB
|
end
|
end
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.