1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../css/manpage.css" type="text/css" />
7    <link rel="stylesheet" href="../css/timetable.css" type="text/css" />
8    <title>pow - Power</title>
9  </head>
10  <body>
11    <h1>pow - Power</h1>
12
13    <h2>Calling Format</h2>
14    <div class="section">
15      <pre class="definition">
16pow     dest, src0{ .x | .y | .z | .w}, src1{ .x | .y | .z | .w}
17</pre>
18    </div>
19
20    <h2>Operands</h2>
21    <div class="section">
22      <table class="arguments">
23        <thead>
24          <tr>
25            <th>Name</th>
26            <td>Registers</td>
27          </tr>
28        </thead>
29        <tr>
30          <th>dest</th>
31          <td>
32            A temporary register.<br>
33          </td>
34        </tr>
35        <tr>
36          <th>src0</th>
37          <td>
38            A temporary register, input register, or floating-point constant register.r.<br>Must specify any one of  { .x | .y | .z | .w } as the component.<br>
39          </td>
40        </tr>
41        <tr>
42          <th>src1</th>
43          <td>
44            A temporary register, input register, or floating-point constant register.r.<br>Must specify any one of  { .x | .y | .z | .w } as the component.<br>
45          </td>
46        </tr>
47      </table>
48      <p class="notice">
49        Cannot specify the same register for <SPAN class="argument">src1</SPAN> and <SPAN class="argument">dest</SPAN>.<br>
50      </p>
51    </div>
52
53    <h2>Overview</h2>
54    <div class="section">
55      <p>
56        Finds the <SPAN class="argument">src1</SPAN> power of <SPAN class="argument">src0</SPAN> and stores the result in <SPAN class="argument">dest</SPAN>.<br>
57      </p>
58    </div>
59
60    <h2>Operation</h2>
61    <div class="section">
62<pre class="definition">
63tmp = src0{ .x | .y | .z | .w} ^ src1{ .x | .y | .z | .w}
64dest.x = tmp
65dest.y = tmp
66dest.z = tmp
67dest.w = tmp
68</pre>
69    </div>
70
71    <h2>Macro Expansion</h2>
72    <div class="section">
73<pre class="definition">
74log     dest.z, src0{ .x | .y | .z | .w}
75mul     dest.z, dest.z, src1{ .x | .y | .z | .w}
76exp     dest,   dest.z
77</pre>
78    </div>
79
80    <h2>Code Example</h2>
81    <div class="section">
82<pre class="definition">
83pow     r0, r1.y, r2.x
84</pre>
85    </div>
86
87    <h2>Timetable </h2>
88    <div class="section">
89      <table class="timetable">
90        <tr>
91          <th></th>
92          <th>1</th><th>2</th><th>3</th><th>4</th><th>5</th><th>6</th><th>7</th><th>8</th><th>9</th><th>10</th>
93          <th>11</th><th>12</th>
94        </tr>
95        <tr>
96          <th>log</th>
97          <td class="read">read</td>
98          <td class="LOG" colspan="2">LOG</td>
99          <td class="post">post</td>
100          <td class="write">write</td>
101        </tr>
102        <tr>
103          <th>mul</th>
104          <td class="empty"></td>
105          <td class="stall" colspan="3">STALL</td>
106          <td class="read">read</td>
107          <td class="MUL">MUL</td>
108          <td class="post">post</td>
109          <td class="write">write</td>
110        </tr>
111        <tr>
112          <th>exp</th>
113          <td class="empty" colspan="5"></td>
114          <td class="stall" colspan="2">STALL</td>
115          <td class="read">read</td>
116          <td class="EXP" colspan="2">EXP</td>
117          <td class="post">post</td>
118          <td class="write">write</td>
119          <td class="dummy"></td>
120        </tr>
121      </table>
122    </div>
123
124
125  <h2>Revision History</h2>
126  <div class="section">
127    <dl class="history">
128      <dt>2011/12/20</dt>
129      <dd>Initial version.<br />
130      </dd>
131    </dl>
132  </div>
133
134  <hr><p>CONFIDENTIAL</p></body>
135</html>