This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH ARM] Fixing problem of 32bit multiplication instruction 'smull'


On Thursday 16 May 2013 11:13:06 Jayant R. Sonar wrote:
> Hello Mike,
> 
> Thanks again for reviewing this patch as well.
> 
> >> could you make that into a test case ? :)
> 
> I really don't have a test case in C form as of now.

you posted a small asm snippet.  seems like that'd be sufficient ?

in the Blackfin sim tests, i often just have the script exit 0 or 1 depending 
on the result.  if a specific insn is not calculating the right value (or is 
hitting an error it shouldn't), seems like you could do the same ?

	# pseudo code as my arm asm is not strong
	r1 = <known good value>
	r2 = <some input known to trigger bug>
	r3 = <diff input>
	r4 = r2 * r3
	if r1 != r4
		bx fail
	bx pass
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]