<s>
The	O
Multimedia	B-General_Concept
Acceleration	I-General_Concept
eXtensions	I-General_Concept
or	O
MAX	O
are	O
instruction	B-General_Concept
set	I-General_Concept
extensions	O
to	O
the	O
Hewlett-Packard	O
PA-RISC	B-Device
instruction	B-General_Concept
set	I-General_Concept
architecture	I-General_Concept
(	O
ISA	O
)	O
.	O
</s>
<s>
MAX	O
instructions	O
operate	O
on	O
32	O
-	O
or	O
64-bit	B-Device
SIMD	B-Device
data	O
types	O
consisting	O
of	O
multiple	O
16-bit	O
integers	O
packed	O
in	O
general	O
purpose	O
registers	O
.	O
</s>
<s>
The	O
first	O
version	O
,	O
MAX-1	B-General_Concept
,	O
was	O
for	O
the	O
32-bit	O
PA-RISC	B-Device
1.1	O
ISA	O
.	O
</s>
<s>
The	O
second	O
version	O
,	O
MAX-2	B-General_Concept
,	O
was	O
for	O
the	O
64-bit	B-Device
PA-RISC	B-Device
2.0	O
ISA	O
.	O
</s>
<s>
In	O
1996	O
the	O
64-bit	B-Device
"	O
MAX-2	B-General_Concept
"	O
instructions	O
enabled	O
real-time	O
performance	O
of	O
MPEG-1	B-Algorithm
and	O
MPEG-2	B-Algorithm
video	O
while	O
increasing	O
the	O
area	O
of	O
a	O
RISC	O
CPU	O
by	O
only	O
0.2	O
%	O
.	O
</s>
<s>
MAX-1	B-General_Concept
was	O
first	O
implemented	O
with	O
the	O
PA-7100LC	B-General_Concept
in	O
1994	O
.	O
</s>
<s>
It	O
is	O
usually	O
attributed	O
as	O
being	O
the	O
first	O
SIMD	B-Device
extensions	O
to	O
an	O
ISA	O
.	O
</s>
<s>
The	O
second	O
version	O
,	O
MAX-2	B-General_Concept
,	O
was	O
for	O
the	O
64-bit	B-Device
PA-RISC	B-Device
2.0	O
ISA	O
.	O
</s>
<s>
It	O
was	O
first	O
implemented	O
in	O
the	O
PA-8000	B-General_Concept
microprocessor	O
released	O
in	O
1996	O
.	O
</s>
<s>
The	O
basic	O
approach	O
to	O
the	O
arithmetic	O
in	O
MAX-2	B-General_Concept
is	O
to	O
"	O
interrupt	O
the	O
carries	O
"	O
between	O
the	O
16-bit	O
subwords	O
,	O
and	O
choose	O
between	O
modular	O
arithmetic	O
,	O
signed	O
and	O
unsigned	O
saturation	O
.	O
</s>
<s>
MAX-2	B-General_Concept
instructions	O
are	O
register-to-register	O
instructions	O
that	O
operate	O
on	O
multiple	O
integers	O
in	O
64-bit	B-Device
quantities	O
.	O
</s>
<s>
All	O
have	O
a	O
one	O
cycle	O
latency	O
in	O
the	O
PA-8000	B-General_Concept
microprocessor	O
and	O
its	O
derivatives	O
.	O
</s>
<s>
Memory	O
accesses	O
are	O
via	O
the	O
standard	O
64-bit	B-Device
loads	O
and	O
stores	O
.	O
</s>
<s>
Instruction	O
Description	O
HADD	O
Parallel	O
add	O
with	O
modulo	O
arithmetic	O
HADD	O
,	O
ss	O
Parallel	O
add	O
with	O
signed	O
saturation	O
HADD	O
,	O
us	O
Parallel	O
add	O
with	O
unsigned	O
saturation	O
HSUB	O
Parallel	O
subtract	O
with	O
modulo	O
arithmetic	O
HSUB	O
,	O
ss	O
Parallel	O
subtract	O
with	O
signed	O
saturation	O
HSUB	O
,	O
us	O
Parallel	O
subtract	O
with	O
unsigned	O
saturation	O
HSHLADD	O
Parallel	O
shift	O
left	O
and	O
add	O
with	O
signed	O
saturation	O
HSHRADD	O
Parallel	O
shift	O
right	O
and	O
add	O
with	O
signed	O
saturation	O
HAVG	O
Parallel	O
average	O
HSHR	O
Parallel	O
shift	O
right	O
signed	O
HSHR	O
,	O
u	O
Parallel	O
shift	O
right	O
unsigned	O
HSHL	O
Parallel	O
shift	O
left	O
MIX	O
Mix	O
16-bit	O
sub-words	O
in	O
a	O
64-bit	B-Device
word	O
;	O
MIX	O
Left	O
,	O
Ra	O
,	O
Rb	O
,	O
Rc	O
,	O
Rc	O
:	O
=	O
a1	O
,	O
b1	O
,	O
a3	O
,	O
b3	O
;	O
MIX	O
Right	O
,	O
Rc	O
:	O
=	O
a2	O
,	O
b2	O
,	O
a4	O
,	O
b4	O
MIXW	O
Mix	O
32-bit	O
sub-words	O
in	O
a	O
64-bit	B-Device
word	O
;	O
e.g.	O
</s>
