cris-elf GAS 64-bit host ffails (was: Re: Your ld changes caused cris-axis-elf regressions)

Hans-Peter Nilsson hans-peter.nilsson@axis.com
Thu Mar 24 10:39:00 GMT 2005


> Date: Wed, 23 Mar 2005 11:24:33 -0800
> From: "H. J. Lu" <hjl@lucon.org>

> BTW, I still got some gas failures.

I presume these are what you saw?
(Quoting the errors would have helped me make sure, but thanks
anyway for reporting.)

XPASS: gas/cris/shexpr-1
XPASS: gas/cris/range-err-1.s  (test for errors, line 29)
XPASS: gas/cris/range-err-1.s  (test for errors, line 38)
XPASS: gas/cris/range-err-1.s  (test for errors, line 50)
FAIL: gas/cris/range-err-1.s  (test for errors, line 64)
FAIL: gas/cris/range-err-1.s  (test for errors, line 67)
FAIL: gas/cris/range-err-1.s (test for excess errors)

I've fixed the FAILs as follows.  The XPASSes remain, as I can't
xfail these tests for 32-bit hosts only.  I agree they're a wart
but I don't see a pressing need to make them go away.  If you're
not happy with that, please suggest a remedy.

The expected errors were expecting results from 32-bit
arithmetic; that's why they FAILed.

Committed.
gas/testsuite:
	* gas/cris/range-err-1.s: Adjust expected messages for hosts with
	64-bit longs.

Index: range-err-1.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/cris/range-err-1.s,v
retrieving revision 1.3
diff -p -c -u -p -r1.3 range-err-1.s
--- range-err-1.s	15 Jun 2003 23:46:37 -0000	1.3
+++ range-err-1.s	23 Mar 2005 23:53:16 -0000
@@ -61,9 +61,9 @@ start:
  add.w 2781868,r13 ; { dg-error "Immediate value not in 16 bit range: 2781868" }
  add.w -2701867,r13 ; { dg-error "Immediate value not in 16 bit range: -2701867" }
 
- add.w 0x9ec0ceac,r13 ; { dg-error "Immediate value not in 16 bit range: -1631531348" }
+ add.w 0x9ec0ceac,r13 ; { dg-error "Immediate value not in 16 bit range: (2663435948|-1631531348)" }
  add.w -0x7ec0cead,r13 ; { dg-error "Immediate value not in 16 bit range: -2126565037" }
 
- add.w const_int_m32,r13 ; { dg-error "Immediate value not in 16 bit range: 781758389" }
+ add.w const_int_m32,r13 ; { dg-error "Immediate value not in 16 bit range: (-3513208907|781758389)" }
  add.w const_int_32,r13 ; { dg-error "Immediate value not in 16 bit range: 462701867" }
  add.w -(three2767+2),r5 ; { dg-error "Immediate value not in 16 bit range: -32769" }

brgds, H-P



More information about the Binutils mailing list