public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
* atomic_sub_and_test() asm constraints
@ 2010-03-14 12:59 Geert Uytterhoeven
  2010-03-14 14:30 ` Andreas Schwab
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2010-03-14 12:59 UTC (permalink / raw)
  To: Linux/m68k

|   CC      mm/memcontrol.o
| {standard input}: Assembler messages:
| {standard input}:4076: Error: operands mismatch -- statement `subl
12(%fp),170(%a0)' ignored

Seems like we have bad asm constraints in

static inline int atomic_sub_and_test(int i, atomic_t *v)
{
        char c;
        __asm__ __volatile__("subl %2,%1; seq %0" : "=d" (c), "+m"
(*v): "g" (i));
        return c != 0;
}

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

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

end of thread, other threads:[~2010-03-14 14:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-14 12:59 atomic_sub_and_test() asm constraints Geert Uytterhoeven
2010-03-14 14:30 ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox