target/8603: Alpha: s?addl pattern doesn't work

Matthias Klose doko@smile.cs.tu-berlin.de
Sat Nov 16 02:36:00 GMT 2002


>Number:         8603
>Category:       target
>Synopsis:       Alpha: s?addl pattern doesn't work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          pessimizes-code
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 16 02:16:03 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     "Falk Hueffner" <falk@debian.org>
>Release:        3.2.1 (Debian) (Debian unstable)
>Organization:
The Debian Project
>Environment:
System: Debian GNU/Linux (unstable)
Architecture: alpha
host: alpha-linux
Configured with: /home/packages/gcc/3.2/gcc-3.2-3.2.1ds5/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-java-gc=boehm --enable-objc-gc alpha-linux
>Description:
[ Reported to the Debian BTS as report #161432.
  Please CC 161432@bugs.debian.org on replies.
  Log of report can be found at http://bugs.debian.org/161432 ]

[ gcc version was gcc-3.2 branch 20020913 ]

the s?addl and s?subl patterns don't work, as illustrated by these programs:

falk@juist:/tmp% cat test.c
int f(int x, int y) { return 4 * x + y; }
int g(int x) { return 3 * x; }
falk@juist:/tmp% gcc-3.2 -O3 -c test.c
falk@juist:/tmp% objdump -d test.o

test.o:     file format elf64-alpha

Disassembly of section .text:

0000000000000000 <f>:
   0:   41 04 11 42     s4addq  a0,a1,t0
   4:   00 00 3f 40     addl    t0,zero,v0
   8:   01 80 fa 6b     ret
   c:   00 00 fe 2f     unop

0000000000000010 <g>:
  10:   61 05 10 42     s4subq  a0,a0,t0
  14:   00 00 3f 40     addl    t0,zero,v0
  18:   01 80 fa 6b     ret
  1c:   00 00 fe 2f     unop

>How-To-Repeat:
	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list