re PR target/80107 (ICE in final_scan_insn, at final.c:2964)

PR target/80107
	* config/rs6000/rs6000.md (extendhi<mode>2): Add test for
	TARGET_VSX_SMALL_INTEGER.
	* gfortran.dg/pr80107.f: New.

From-SVN: r246619
This commit is contained in:
Pat Haugen 2017-03-31 15:59:46 +00:00 committed by Pat Haugen
parent 094e6b7a9d
commit 99e6cfd6c1
4 changed files with 18 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2017-03-31 Pat Haugen <pthaugen@us.ibm.com>
PR target/80107
* config/rs6000/rs6000.md (extendhi<mode>2): Add test for
TARGET_VSX_SMALL_INTEGER.
2017-03-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
* doc/extend.texi (PowerPC AltiVec Built-in Functions): Add

View File

@ -954,7 +954,7 @@
(define_insn "*extendhi<mode>2"
[(set (match_operand:EXTHI 0 "gpc_reg_operand" "=r,r,?*wK,?*wK")
(sign_extend:EXTHI (match_operand:HI 1 "reg_or_mem_operand" "m,r,Z,wK")))]
"rs6000_gen_cell_microcode"
"rs6000_gen_cell_microcode || TARGET_VSX_SMALL_INTEGER"
"@
lha%U1%X1 %0,%1
extsh %0,%1

View File

@ -1,3 +1,8 @@
2017-03-31 Pat Haugen <pthaugen@us.ibm.com>
PR target/80107
* gfortran.dg/pr80107.f: New.
2017-03-31 Jeff Law <law@redhat.com>
PR tree-optimization/49498

View File

@ -0,0 +1,6 @@
! { dg-do compile { target { powerpc*-*-* } } }
! { dg-options "-O0 -mpower9-dform-vector -mno-gen-cell-microcode" }
integer(kind=2) j, j2, ja
call c_c(CMPLX(j),(1.,0.),'CMPLX(integer(2))')
end