https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81386

--- Comment #6 from seurer at gcc dot gnu.org ---
So here is comparing 249423 (works) with 249424 (fails):


seurer@genoa:~/gcc/build/gcc-test2$ svn info $GCC_SRC
. . .
Revision: 249423
. . .
seurer@genoa:~/gcc/build/gcc-test2$ /home/seurer/gcc/build/gcc-test2/gcc/xgcc
-B/home/seurer/gcc/build/gcc-test2/gcc/
/home/seurer/gcc/gcc-test2/libgomp/testsuite/libgomp.fortran/appendix-a/a.16.1.f90
-B/home/seurer/gcc/build/gcc-test2/powerpc64le-unknown-linux-gnu/./libgomp/
-B/home/seurer/gcc/build/gcc-test2/powerpc64le-unknown-linux-gnu/./libgomp/.libs
-I/home/seurer/gcc/build/gcc-test2/powerpc64le-unknown-linux-gnu/./libgomp
-I/home/seurer/gcc/gcc-test2/libgomp/testsuite/../../include
-I/home/seurer/gcc/gcc-test2/libgomp/testsuite/.. -fmessage-length=0
-fno-diagnostics-show-caret -Wno-hsa -fdiagnostics-color=never -fopenmp -O3 -g
-B/home/seurer/gcc/build/gcc-test2/powerpc64le-unknown-linux-gnu/./libgomp/../libgfortran/.libs
-fintrinsic-modules-path=/home/seurer/gcc/build/gcc-test2/powerpc64le-unknown-linux-gnu/./libgomp
-L/home/seurer/gcc/build/gcc-test2/powerpc64le-unknown-linux-gnu/./libgomp/.libs
-L/home/seurer/gcc/build/gcc-test2/powerpc64le-unknown-linux-gnu/./libgomp/../libgfortran/.libs
-lgfortran -foffload=-lgfortran -lm -o ./a.16.1.exe
seurer@genoa:~/gcc/build/gcc-test2$ ./a.16.1.exe 
 X(           1 ) =    55000.0000     , Y(           1 ) =    2.00000000    
 X(           2 ) =    45010.0000     , Y(           2 ) =    4.00000000    
 X(           3 ) =    45020.0000     , Y(           3 ) =    6.00000000    
 X(           4 ) =    45030.0000     , Y(           4 ) =    8.00000000    
 X(           5 ) =    45040.0000     , Y(           5 ) =    10.0000000    
 X(           6 ) =    45050.0000     , Y(           6 ) =    12.0000000    
 X(           7 ) =    45060.0000     , Y(           7 ) =    14.0000000    
 X(           8 ) =    45070.0000     , Y(           8 ) =    16.0000000    
 X(           9 ) =    45080.0000     , Y(           9 ) =    18.0000000    
 X(          10 ) =    45090.0000     , Y(          10 ) =    20.0000000    


seurer@genoa:~/gcc/build/gcc-test$ svn info $GCC_SRC
Path: /home/seurer/gcc/gcc-test
Working Copy Root Path: /home/seurer/gcc/gcc-test
. . .
Revision: 249424
. . .
seurer@genoa:~/gcc/build/gcc-test$ /home/seurer/gcc/build/gcc-test/gcc/xgcc
-B/home/seurer/gcc/build/gcc-test/gcc/
/home/seurer/gcc/gcc-test/libgomp/testsuite/libgomp.fortran/appendix-a/a.16.1.f90
-B/home/seurer/gcc/build/gcc-test/powerpc64le-unknown-linux-gnu/./libgomp/
-B/home/seurer/gcc/build/gcc-test/powerpc64le-unknown-linux-gnu/./libgomp/.libs
-I/home/seurer/gcc/build/gcc-test/powerpc64le-unknown-linux-gnu/./libgomp
-I/home/seurer/gcc/gcc-test/libgomp/testsuite/../../include
-I/home/seurer/gcc/gcc-test/libgomp/testsuite/.. -fmessage-length=0
-fno-diagnostics-show-caret -Wno-hsa -fdiagnostics-color=never -fopenmp -O3 -g3
-B/home/seurer/gcc/build/gcc-test/powerpc64le-unknown-linux-gnu/./libgomp/../libgfortran/.libs
-fintrinsic-modules-path=/home/seurer/gcc/build/gcc-test/powerpc64le-unknown-linux-gnu/./libgomp
-L/home/seurer/gcc/build/gcc-test/powerpc64le-unknown-linux-gnu/./libgomp/.libs
-L/home/seurer/gcc/build/gcc-test/powerpc64le-unknown-linux-gnu/./libgomp/../libgfortran/.libs
-lgfortran -foffload=-lgfortran -lm -o ./a.16.1.exe
seurer@genoa:~/gcc/build/gcc-test$ ./a.16.1.exe 

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0  0x3fff98cb9a9f in ???
Segmentation fault (core dumped)


The options were the same:


<       .string "8 8.0.0 20170620 (experimental) [trunk revision 249424]
-mcpu=power8 -g3 -O3 -fmessage-length=0 -fopenmp
-fintrinsic-modules-path=/home/seurer/gcc/build/gcc-test/powerpc64le-unknown-linux-gnu/./libgomp
-foffload=-lgfortran -fintrinsic-modules-path finclude"
---
>       .string " 8.0.0 20170620 (experimental) [trunk revision 249423] 
> -mcpu=power8 -g3 -O3 -fmessage-length=0 -fopenmp 
> -fintrinsic-modules-path=/home/seurer/gcc/build/gcc-test2/powerpc64le-unknown-linux-gnu/./libgomp
>  -foffload=-lgfortran -fintrinsic-modules-path finclude"




11c11
<       .file 1
"/home/seurer/gcc/gcc-test/libgomp/testsuite/libgomp.fortran/appendix-a/a.16.1.f90"
---
>       .file 1 
> "/home/seurer/gcc/gcc-test2/libgomp/testsuite/libgomp.fortran/appendix-a/a.16.1.f90"
171d170
<       addis 8,2,.LC1@toc@ha
174,187d172
<       addi 8,8,.LC1@toc@l
<       addis 10,2,.LC3@toc@ha
<       std 22,-80(1)
<       std 23,-72(1)
<       addi 10,10,.LC3@toc@l
<       std 24,-64(1)
<       std 25,-56(1)
<       addis 9,2,.LC2@toc@ha
<       std 26,-48(1)
<       std 27,-40(1)
<       addi 9,9,.LC2@toc@l
<       vspltisw 4,4
<       std 28,-32(1)
<       std 30,-16(1)
190,191c175,176
<       vspltisw 6,6
<       vspltisw 7,5
---
>       li 9,10000
>       mtctr 9
194,196c179,180
<       std 0,16(1)
<       lis 0,0xfffe
<       std 31,-8(1)
---
>       std 22,-80(1)
>       std 23,-72(1)
199c183
<       vspltisw 8,2
---
>       lis 7,0x1062
202,203c186,187
<       ori 0,0,0xb560
<       lxvd2x 45,0,8
---
>       std 24,-64(1)
>       std 25,-56(1)
206,210c190
<       lxvd2x 37,0,10
<       li 10,2500
<       mtctr 10
<       lxvd2x 44,0,9
<       vspltisw 9,3
---
>       ori 7,7,0x4dd3
212a193,201
>       li 10,1
>       std 26,-48(1)
>       std 27,-40(1)
>       std 28,-32(1)
>       std 30,-16(1)
>       std 0,16(1)
>       lis 0,0xfffe
>       std 31,-8(1)
>       ori 0,0,0xb560
227,232d215
< .LBB28:
<       .loc 1 31 0
<       vspltisw 10,1
< .LBE28:
<       .loc 1 26 0
<       xxpermdi 45,45,45,2
234,236c217,219
<       addis 9,29,0x1
<       addi 9,9,-25536
<       .p2align 4,,15
---
>       addis 8,29,0x1
>       addi 8,8,-25540
>       .p2align 5,,31
238c221
< .LBB29:
---
> .LBB28:
240,256c223,230
<       vmulosw 11,13,12
<       vmulesw 0,13,12
<       vsraw 1,13,5
<       vmrgew 0,11,0
<       vsraw 0,0,6
<       vsubuwm 1,0,1
<       vslw 0,1,7
<       vsubuwm 0,0,1
<       vslw 0,0,8
<       vadduwm 0,0,1
<       vslw 0,0,9
<       vsubuwm 0,13,0
<       vadduwm 13,13,4
<       vadduwm 0,0,10
<       xxpermdi 0,32,32,2
<       stxvd2x 0,0,9
<       addi 9,9,16
---
>       mulhwu 9,10,7
>       srwi 9,9,6
>       mulli 9,9,1000
>       subf 9,9,10
>       addi 10,10,1
>       addi 9,9,1
>       stwu 9,4(8)
>       .loc 1 30 0

Reply via email to