* gas/cris/*: New tests for CRIS.
[deliverable/binutils-gdb.git] / gas / testsuite / gas / cris / quick.s
1 ; @OC@ test
2 ; Template for generic "quick" operand checking.
3
4 ; To see that expressions with symbols are evaluated correctly.
5 .set twenty2, 22
6 .set mtwenty2, -22
7
8 .text
9 start:
10
11 ;;;;;;;;;;;;;;;;;
12 ;
13 ; Unsigned 5 bits.
14
15 @OC@ twenty2,r3
16 @OC@ -twenty2+33,r5
17 @OC@ twenty2-22,r10
18 @OC@ 31,r5
19 @OC@ 1,r4
20 @OC@ 0,r11
21 @OC@ 32-twenty2,r11
22 @OC@ -0,r12
23
24 unsigned6: ; u6
25 ;;;;;;;;;;;;;;;;;
26 ;
27 ; Unsigned 6 bits
28
29 @OC@ twenty2*2,r3 ; u6
30 @OC@ -twenty2+33*2+13,r5 ; u6
31 @OC@ twenty2-22,r10 ; u6
32 @OC@ 31*2,r5 ; u6
33 @OC@ twenty2*3-3,r4 ; u6
34 @OC@ twenty2*3-4,r5 ; u6
35 @OC@ 63,r11 ; u6
36 @OC@ 32,r11 ; u6
37
38 signed6: ; s6
39 ;;;;;;;;;;;;;;;;;
40 ;
41 ; Signed 6 bits.
42 ; Only need to check negative operands here; the unsigned 5
43 ; bits cases above covers positive numbers.
44 @OC@ -31,r3 ; s6
45 @OC@ mtwenty2,r3 ; s6
46 @OC@ mtwenty2*2+14,r3 ; s6
47 @OC@ -64+35,r7 ; s6
48 @OC@ -1,r13 ; s6
49 @OC@ -twenty2+21,r12 ; s6
50 end:
51
This page took 0.030715 seconds and 4 git commands to generate.