Upload Tizen:Base source
[external/binutils.git] / gas / testsuite / gas / hppa / basic / media.s
1         .LEVEL 2.0
2         .code
3         .align 4
4 ; PA2.0 multimedia (halfword) instruction tests
5 ;
6 ; We could/should test some of the corner cases for register and 
7 ; immediate fields.  We should also check the assorted field
8 ; selectors to make sure they're handled correctly.
9
10         hadd %r7,%r11,%r12
11         hadd,ss %r7,%r11,%r12
12         hadd,us %r7,%r11,%r12
13
14         havg %r7,%r11,%r12
15         hshl %r7,13,%r11
16         hshladd %r7,1,%r11,%r12
17         hshladd %r7,2,%r11,%r12
18         hshladd %r7,3,%r11,%r12
19         hshr %r7,13,%r11
20         hshr,s %r7,13,%r11
21         hshr,u %r7,13,%r11
22         hshradd %r7,1,%r11,%r12
23         hshradd %r7,2,%r11,%r12
24         hshradd %r7,3,%r11,%r12
25
26         hsub %r14,%r22,%r9
27         hsub,ss %r14,%r22,%r9
28         hsub,us %r14,%r22,%r9
29
30         mixh,l %r14,%r22,%r9
31         mixh,r %r14,%r22,%r9
32         mixw,l %r14,%r22,%r9
33         mixw,r %r14,%r22,%r9
34
35         permh,0321 %r22,%r9
36         permh,2222 %r22,%r9
37         permh,3030 %r22,%r9
38