From: Andrew Cagney <cagney@highland.com.au>
To: gas2@cygnus.com
Subject: ppc - srwi 11, 10, 0 gives warning
Date: Wed, 16 Aug 1995 20:41:00 -0000 [thread overview]
Message-ID: <okAenhn02QU6MSELA3@highland.com.au> (raw)
Hello,
Given the PowerPC assembler:
cagney@puddin$ cat bug.s
srwi 11,10,0
rlwinm 11, 10, 32, 0, 31
where the second instruction is what `srwi' is expanded into, gas-950726
gives the warning:
cagney@puddin$ powerpc-unknown-eabi-as -v bug.s -o bug.o
GNU assembler version 950726 (powerpc-unknown-eabi), using BFD version
cygnus-2.5
bug.s: Assembler messages:
bug.s:1: Warning: operand out of range (32 not between 0 and 31)
bug.s:2: Warning: operand out of range (32 not between 0 and 31)
While the warning is valid (32 is indeed > 31) and gas is still
generating correct code (mapping it to zero), I think that for this
case the warning may possibly need to be suppressed.
The assembler was output by ss-950805 from the C file
c-torture/execute/930921-1.c:
bash$ powerpcle-unknown-eabi-gcc 930921-1.c -msoft-float
/applications/clayton/root/usr/lib/crt0.o
-L/applications/clayton/root/usr/lib -lc -mstrict-align
/var/tmp/cc026999.s: Assembler messages:
/var/tmp/cc026999.s:34: Warning: operand out of range (32 not between 0
and 31)
Any thoughts?
Andrew.
reply other threads:[~1995-08-16 20:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=okAenhn02QU6MSELA3@highland.com.au \
--to=cagney@highland.com.au \
--cc=gas2@cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).