linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* bug in arch/ppc/kernel/misc.S: __ashrdi3?
@ 2005-07-15 16:01 Frank van Maarseveen
  2005-07-15 18:22 ` Andreas Schwab
  2005-07-16 17:39 ` Benjamin Herrenschmidt
  0 siblings, 2 replies; 6+ messages in thread
From: Frank van Maarseveen @ 2005-07-15 16:01 UTC (permalink / raw)
  To: linuxppc-dev

I don't really grok the code but an operand seems to be missing and the
assembler makes something out of it I don't trust:

_GLOBAL(__ashrdi3)
	...
	rlwinm  r8,r7,0,32      # t3 = (count < 32) ? 32 : 0

Trying it out:

$ cat a.c
void f(void)
{
        __asm("rlwinm  8,7,0,32");
}
$ ppc_4xx-gcc -O2 -c a.c
$ ppc-linux-objdump -S a.o

a.o:     file format elf32-powerpc

Disassembly of section .text:

00000000 <f>:
f():
   0:   54 e8 06 b4     rlwinm  r8,r7,0,26,26
   4:   4e 80 00 20     blr

-- 
Frank

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-07-18 12:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-15 16:01 bug in arch/ppc/kernel/misc.S: __ashrdi3? Frank van Maarseveen
2005-07-15 18:22 ` Andreas Schwab
2005-07-16 17:39 ` Benjamin Herrenschmidt
2005-07-16 18:02   ` Andreas Schwab
2005-07-16 18:24     ` Benjamin Herrenschmidt
2005-07-18 12:14       ` Gabriel Paubert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).