add the rest of min/max DRAFT av opcodes
[openpower-isa.git] / openpower / isa / av.mdwn
1 <!-- DRAFT Instructions for PowerISA Version 3.0 B Book 1 -->
2
3 # Fixed Point Signed Max
4
5 X-Form
6
7 * maxs RT,RA,RB (Rc=0)
8 * maxs. RT,RA,RB (Rc=1)
9
10 Pseudo-code:
11
12 if (RA) > (RB) then RT <- (RA)
13 else RT <- (RB)
14
15 Special Registers Altered:
16
17 CR0 (if Rc=1)
18
19 # Fixed Point Unsighed Max
20
21 X-Form
22
23 * maxu RT,RA,RB (Rc=0)
24 * maxu. RT,RA,RB (Rc=1)
25
26 Pseudo-code:
27
28 if (RA) >u (RB) then RT <- (RA)
29 else RT <- (RB)
30
31 Special Registers Altered:
32
33 CR0 (if Rc=1)
34
35 # Fixed Point Signed Min
36
37 X-Form
38
39 * mins RT,RA,RB (Rc=0)
40 * mins. RT,RA,RB (Rc=1)
41
42 Pseudo-code:
43
44 if (RA) < (RB) then RT <- (RA)
45 else RT <- (RB)
46
47 Special Registers Altered:
48
49 CR0 (if Rc=1)
50
51 # Fixed Point Unsighed Min
52
53 X-Form
54
55 * minu RT,RA,RB (Rc=0)
56 * minu. RT,RA,RB (Rc=1)
57
58 Pseudo-code:
59
60 if (RA) < (RB) then RT <- (RA)
61 else RT <- (RB)
62
63 Special Registers Altered:
64
65 CR0 (if Rc=1)
66