public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Altivec doesn't work?
@ 2005-07-16 18:04 Décio Luiz Gazzoni Filho
  2005-07-16 18:11 ` Daniel Jacobowitz
  2005-07-19  3:39 ` Jason Molenda
  0 siblings, 2 replies; 4+ messages in thread
From: Décio Luiz Gazzoni Filho @ 2005-07-16 18:04 UTC (permalink / raw)
  To: gdb

[-- Attachment #1: Type: text/plain, Size: 670 bytes --]

Hello,

I have `GNU gdb 6.1-20040303 (Apple version gdb-413)' running on Mac  
OS X 10.4.2. I wrote some Altivec code and tried to load it into gdb.  
Although gdb can print the vector registers, they are not updated by  
any instructions that are run: all regs stay at the value  
0x7FFFDEAD7FFFDEAD7FFFDEAD7FFFDEAD.

I believe it's not a compilation issue, or a processor issue (mine is  
an MPC7447). Outside of gdb, the code seems to run fine (doesn't give  
an invalid instruction exception).

This is my first foray into Altivec programming, so I'm wondering  
what I'm missing here? This can't be a bug as Google doesn't turn  
anything up.

Décio

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 186 bytes --]

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

* Re: Altivec doesn't work?
  2005-07-16 18:04 Altivec doesn't work? Décio Luiz Gazzoni Filho
@ 2005-07-16 18:11 ` Daniel Jacobowitz
  2005-07-19  3:39 ` Jason Molenda
  1 sibling, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2005-07-16 18:11 UTC (permalink / raw)
  To: Décio Luiz Gazzoni Filho; +Cc: gdb

On Sat, Jul 16, 2005 at 03:00:18PM -0300, Décio Luiz Gazzoni Filho wrote:
> Hello,
> 
> I have `GNU gdb 6.1-20040303 (Apple version gdb-413)' running on Mac  
> OS X 10.4.2.

You're going to have to ask Apple about this - that version of GDB is
very heavily modified by Apple, and current GDB still does not support
Mac OS X.

-- 
Daniel Jacobowitz
CodeSourcery, LLC

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

* Re: Altivec doesn't work?
  2005-07-16 18:04 Altivec doesn't work? Décio Luiz Gazzoni Filho
  2005-07-16 18:11 ` Daniel Jacobowitz
@ 2005-07-19  3:39 ` Jason Molenda
  2005-07-19  3:44   ` Décio Luiz Gazzoni Filho
  1 sibling, 1 reply; 4+ messages in thread
From: Jason Molenda @ 2005-07-19  3:39 UTC (permalink / raw)
  To: Décio Luiz Gazzoni Filho; +Cc: gdb

Daniel was correct that this isn't the right forum for Apple gdb  
questions.  Please send these kinds of things to xcode- 
users@lists.apple.com.

You'll want to be more specific about your program that isn't working  
under gdb.  For instance, this works fine with gdb-413:

#include <altivec.h>
int main () {
   vector unsigned int x = ((vector unsigned int) vec_splat_u8 (-2));
}

(gdb) p/x x
$2 = {0xfefefefe, 0xfefefefe, 0xfefefefe, 0xfefefefe}
(gdb)

Please follow up on xcode-users@ if you have any questions or  
problems with the Apple tools.  Thanks!

Jason

On Jul 16, 2005, at 11:00 AM, Décio Luiz Gazzoni Filho wrote:

> Hello,
>
> I have `GNU gdb 6.1-20040303 (Apple version gdb-413)' running on  
> Mac OS X 10.4.2. I wrote some Altivec code and tried to load it  
> into gdb. Although gdb can print the vector registers, they are not  
> updated by any instructions that are run: all regs stay at the  
> value 0x7FFFDEAD7FFFDEAD7FFFDEAD7FFFDEAD.
>
> I believe it's not a compilation issue, or a processor issue (mine  
> is an MPC7447). Outside of gdb, the code seems to run fine (doesn't  
> give an invalid instruction exception).
>
> This is my first foray into Altivec programming, so I'm wondering  
> what I'm missing here? This can't be a bug as Google doesn't turn  
> anything up.
>
> Décio

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

* Re: Altivec doesn't work?
  2005-07-19  3:39 ` Jason Molenda
@ 2005-07-19  3:44   ` Décio Luiz Gazzoni Filho
  0 siblings, 0 replies; 4+ messages in thread
From: Décio Luiz Gazzoni Filho @ 2005-07-19  3:44 UTC (permalink / raw)
  To: Jason Molenda; +Cc: gdb

[-- Attachment #1: Type: text/plain, Size: 877 bytes --]


On Jul 19, 2005, at 12:39 AM, Jason Molenda wrote:

> Daniel was correct that this isn't the right forum for Apple gdb  
> questions.  Please send these kinds of things to xcode- 
> users@lists.apple.com.
>
> You'll want to be more specific about your program that isn't  
> working under gdb.  For instance, this works fine with gdb-413:
>
> #include <altivec.h>
> int main () {
>   vector unsigned int x = ((vector unsigned int) vec_splat_u8 (-2));
> }
>
> (gdb) p/x x
> $2 = {0xfefefefe, 0xfefefefe, 0xfefefefe, 0xfefefefe}
> (gdb)
>
> Please follow up on xcode-users@ if you have any questions or  
> problems with the Apple tools.  Thanks!

I asked on the perfoptimization-dev@ list. But sometime between  
posting it and receiving an answer, I figured out the problem (forgot  
to set the clobberlist).

Thanks for the help anyway.

Décio


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 186 bytes --]

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

end of thread, other threads:[~2005-07-19  3:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-16 18:04 Altivec doesn't work? Décio Luiz Gazzoni Filho
2005-07-16 18:11 ` Daniel Jacobowitz
2005-07-19  3:39 ` Jason Molenda
2005-07-19  3:44   ` Décio Luiz Gazzoni Filho

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