Fix minor length computation on stormy16
commit148de3aaac6d2b66c635c76d245c7cd1537fa4e0
authorJeff Law <jlaw@ventanamicro>
Mon, 8 May 2023 14:28:26 +0000 (8 08:28 -0600)
committerJeff Law <jlaw@ventanamicro>
Mon, 8 May 2023 14:30:09 +0000 (8 08:30 -0600)
treefd2117d2dade9fccca3078aa75979aaee374b927
parent1b93b9191d073bf9e867ab8bfc8e4b59ba5af1f3
Fix minor length computation on stormy16

Today's build of xstormy16-elf failed due to a branch to an out of range
target.  Manual inspection of the assembly code for the affected function
(divdi3) showed that the zero-extension patterns were claiming a length
of 2, but clearly assembled into 4 bytes.

This patch adds an explicit length to the zero extension pattern and
appears to resolve the issue in my test builds.

gcc/

* config/stormy16/stormy16.md (zero_extendhisi2): Fix length.
gcc/config/stormy16/stormy16.md