public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/64659] New: [SH] Immedate values not used for atomic ops
@ 2015-01-18 21:37 olegendo at gcc dot gnu.org
  2015-01-18 22:22 ` [Bug target/64659] " olegendo at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: olegendo at gcc dot gnu.org @ 2015-01-18 21:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64659

            Bug ID: 64659
           Summary: [SH] Immedate values not used for atomic ops
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: olegendo at gcc dot gnu.org
            Target: sh*-*-*

Compiling the following example:

void test4 (volatile int* mem)
{
  __atomic_or_fetch (mem, 1, __ATOMIC_ACQ_REL);
}

with -O2 -m4a -m{l|b} -matomic-model=soft-gusa results in:

        mov    #1,r1

0:      movli.l    @r4,r0  ! 7  atomic_or_fetchsi_hard  [length = 8]
        or    r1,r0
        movco.l    r0,@r4
        bf    0b
        rts
        nop

For some reason, the predicates 'atomic_arith_operand' and
'atomic_logical_operand' don't allow immediate values, although they are
supposed to do so.


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

end of thread, other threads:[~2015-02-01 10:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-18 21:37 [Bug target/64659] New: [SH] Immedate values not used for atomic ops olegendo at gcc dot gnu.org
2015-01-18 22:22 ` [Bug target/64659] " olegendo at gcc dot gnu.org
2015-01-18 22:40 ` olegendo at gcc dot gnu.org
2015-01-28 21:12 ` olegendo at gcc dot gnu.org
2015-02-01 10:47 ` olegendo at gcc dot gnu.org

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 read-only IMAP folder(s) and NNTP newsgroup(s).