Author: jhibbits
Date: Wed Jan 18 03:42:21 2017
New Revision: 312369
URL: https://svnweb.freebsd.org/changeset/base/312369

Log:
  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

Modified:
  head/sys/powerpc/aim/trap_subr32.S

Modified: head/sys/powerpc/aim/trap_subr32.S
==============================================================================
--- head/sys/powerpc/aim/trap_subr32.S  Wed Jan 18 03:35:42 2017        
(r312368)
+++ head/sys/powerpc/aim/trap_subr32.S  Wed Jan 18 03:42:21 2017        
(r312369)
@@ -406,7 +406,7 @@ im0:
        mtctr %r1                       /* load counter */
 im1:
        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
                                         * count not zero */
        bne instr_sec_hash              /* if not found set up second hash
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to