* Setting a 128 bit value of the vector register
@ 2007-11-06 13:46 Grzegorz Cieslewski
2007-11-06 13:48 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Grzegorz Cieslewski @ 2007-11-06 13:46 UTC (permalink / raw)
To: gdb
I tried setting the vector register on ppc to a 128 hex number but the
gdb gave me an
"Numeric constant too large".
(gdb) info reg vr1
vr1 {uint128 = 0x00000000000000000000000000000000, v4_float = {
0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}}
(gdb) set $vr0.uint128 = 0xfffffffffffffffff
Numeric constant too large.
I get identical problem when trying to write to an mmx register on
x86. It happens whenever the number is larger than 64bits
I know that I can brake the number in four peaces up and use
".v4_int32" to accomplish the same goal. I am just wondering if this
is a bug or a "feature".
--
=====================================================
Grzegorz Cieslewski
Research Assistant
High-performance Computing & Simulation (HCS) Research Laboratory
University of Florida, Dept. of Electrical and Computer Engineering
330 Benton Hall, Gainesville, FL, 32611-6200
Phone: (352) 392-9041
Email: cieslewski@hcs.ufl.edu
Web: www.hcs.ufl.edu
=====================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Setting a 128 bit value of the vector register
2007-11-06 13:46 Setting a 128 bit value of the vector register Grzegorz Cieslewski
@ 2007-11-06 13:48 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2007-11-06 13:48 UTC (permalink / raw)
To: Grzegorz Cieslewski; +Cc: gdb
On Tue, Nov 06, 2007 at 08:45:57AM -0500, Grzegorz Cieslewski wrote:
> I tried setting the vector register on ppc to a 128 hex number but the
> gdb gave me an
> "Numeric constant too large".
Bug, but not that surprising... GDB uses host integer types to
represent target integer types, and this is too big for any host
integer.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-06 13:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-06 13:46 Setting a 128 bit value of the vector register Grzegorz Cieslewski
2007-11-06 13:48 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox