public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* target/7238: __builtin_alpha_pkwb generates invalid assembly
@ 2002-07-08 17:06 Falk Hueffner
  0 siblings, 0 replies; 2+ messages in thread
From: Falk Hueffner @ 2002-07-08 17:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7238
>Category:       target
>Synopsis:       __builtin_alpha_pkwb generates invalid assembly
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 08 17:06:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Falk Hueffner
>Release:        3.2 20020707 (experimental)
>Organization:
>Environment:
System: Linux borkum 2.4.18 #1 Tue Jul 2 23:35:32 CEST 2002 alpha unknown
Architecture: alpha

	
host: alphapca56-unknown-linux-gnu
build: alphapca56-unknown-linux-gnu
target: alphapca56-unknown-linux-gnu
configured with: ../configure --enable-languages=c
>Description:
With the input below, gcc generates a pkwb statement that uses a
floating point register, which is not valid. Also, it loses pkwb(23),
so the result would be wrong even if it had chosen an integer
register.
>How-To-Repeat:
% cat bug.c
unsigned long simple_idct_put(unsigned long l)
{
    l = __builtin_alpha_pkwb(l) | (__builtin_alpha_pkwb(23) << 32);
    return __builtin_alpha_pkwb(l);
}

% gcc -O3 -mcpu=pca56 -c bug.c 
/tmp/ccbGMrgd.s: Assembler messages:
/tmp/ccbGMrgd.s:13: Error: inappropriate arguments for opcode `pkwb'
/tmp/ccbGMrgd.s:14: Error: inappropriate arguments for opcode `pkwb'

% gcc -O3 -mcpu=pca56 -S bug.c && cat bug.s 
        .set noat
        .set noreorder
        .arch pca56
        .text
        .align 2
        .align 4
        .globl simple_idct_put
        .ent simple_idct_put
$simple_idct_put..ng:
simple_idct_put:
        .frame $30,0,$26,0
        .prologue 0
        pkwb $16,$f10
        pkwb $f10,$0
        ret $31,($26),1
        .end simple_idct_put
        .ident  "GCC: (GNU) 3.2 20020707 (experimental)"
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: target/7238: __builtin_alpha_pkwb generates invalid assembly
@ 2003-01-03 19:37 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-01-03 19:37 UTC (permalink / raw)
  To: falk.hueffner, gcc-bugs, gcc-prs, nobody

Synopsis: __builtin_alpha_pkwb generates invalid assembly

State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Fri Jan  3 11:37:30 2003
State-Changed-Why:
    Fixed according to submitter.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7238


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

end of thread, other threads:[~2003-01-03 19:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-08 17:06 target/7238: __builtin_alpha_pkwb generates invalid assembly Falk Hueffner
2003-01-03 19:37 bangerth

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).