[comp.unix.microport] Fix for GNU C 1.25 signed extension

james@bigtex.uucp (James Van Artsdalen) (08/11/88)

This is needed to make signed extention from byte to word work.  The
compiler was generating an impossible op-code/operand combination.
There are still problems in the floating point handling: don't even
bother with perl yet.

diff -c -r1.1 /usr4/src/gcc-1.25/i386.md
*** /tmp/,RCSt1a05237	Wed Aug 10 15:44:53 1988
--- /usr4/src/gcc-1.25/i386.md	Wed Aug 10 15:24:57 1988
***************
*** 550,556
  	(sign_extend:HI
  	 (match_operand:QI 1 "general_operand" "qm")))]
    ""
!   "movs%B%L %1,%0")
  
  (define_insn "extendqisi2"
    [(set (match_operand:SI 0 "general_operand" "=r")

--- 550,556 -----
  	(sign_extend:HI
  	 (match_operand:QI 1 "general_operand" "qm")))]
    ""
!   "movs%B%W %1,%0")
  
  (define_insn "extendqisi2"
    [(set (match_operand:SI 0 "general_operand" "=r")

-- 
James R. Van Artsdalen    ...!uunet!utastro!bigtex!james     "Live Free or Die"
Home: 512-346-2444 Work: 328-0282; 110 Wild Basin Rd. Ste #230, Austin TX 78746