[Bug target/35659] [4.3/4.4 Regression] Miscompiled code with -O2 (but not with -O2 -funroll-loops) on ia64
------- Comment #16 from mkuvyrkov at gcc dot gnu dot org 2008-06-25 21:33 -------
I can't reproduce the error with today mainline. When I put in one file
'PROGRAM PR35659' and 'SUBROUTINE TLSC (A,B,AUX,IPIV,EPS,X)' and compile it
with any optimization level I get the same "STOP 0" message. Am I doing
something wrong?
I can't spot the problem in the dumps you posted at debian.org. tlsc.s has a
single example of data speculation which seems to be fine. Scheduler
speculatively moves
ld4.a r18 = [r44]
before
st4 [r59] = r14, -60
and then also speculates several uses of r18:
cmp4.ge p6, p7 = r22, r18
...
(p7) ld4 r14 = [r62]
...
(p7) st4 [r77] = r14
then it checks the speculation:
chk.a.clr r18, .L69
and recovers if speculation failed:
.L69:
.mmi
ld4 r18 = [r44]
;;
cmp4.ge p6, p7 = r22, r18
nop 0
;;
.mmi
nop 0
(p7) ld4 r14 = [r62]
nop 0
;;
.mib
(p7) st4 [r77] = r14
nop 0
br .L70
Anyway, can you help me reproduce the issue, so I can take a closer look?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35659
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
Reply to: