1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Use the explicit expanded form of cmp.

Clang apparently requires the explicit form of this instruction, and rejects
uses which ignore the optional cmpD register.  This was the only use of the
shorthand form of the instruction, so just fix it up to match the others.

PR:		kern/215681
Submitted by:	Mark Millard
Reported by:	Mark Millard <markmi _AT_ dsl-only.net>
MFC after:	2 weeks
This commit is contained in:
Justin Hibbits 2017-01-18 03:42:21 +00:00
parent ff2c4d3f79
commit 18e367f4aa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=312369

View File

@ -406,7 +406,7 @@ im0:
mtctr %r1 /* load counter */ mtctr %r1 /* load counter */
im1: im1:
lwzu %r1, 8(%r2) /* get next pte */ lwzu %r1, 8(%r2) /* get next pte */
cmp 0, %r1, %r3 /* see if found pte */ cmp 0, 0, %r1, %r3 /* see if found pte */
bdnzf 2, im1 /* dec count br if cmp ne and if bdnzf 2, im1 /* dec count br if cmp ne and if
* count not zero */ * count not zero */
bne instr_sec_hash /* if not found set up second hash bne instr_sec_hash /* if not found set up second hash