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>slt - Set on less than</title>
9  </head>
10  <body>
11    <h1>slt - Set on less than</h1>
12
13    <h2>Calling Format</h2>
14    <div class="section">
15      <pre class="definition">
16slt     dest, src0, src1
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>An output register or temporary register.</td>
32        </tr>
33        <tr>
34          <th>src0</th>
35          <td>A temporary register, input register, or floating-point constant register.</td>
36        </tr>
37        <tr>
38          <th>src1</th>
39          <td>A temporary register, input register, or floating-point constant register.</td>
40        </tr>
41      </table>
42      <p class="notice">
43        You cannot specify a floating-point constant register for both <SPAN class="argument">src0</SPAN> and <SPAN class="argument">src1</SPAN>.<br> You cannot specify input registers using different indices for <SPAN class="argument">src0</SPAN> and <SPAN class="argument">src1</SPAN> at the same time.<br>
44      </p>
45    </div>
46
47    <h2>Overview</h2>
48    <div class="section">
49      <p>
50        Stores a value of <CODE>1</CODE> in <SPAN class="argument">dest</SPAN> when <SPAN class="argument">src0</SPAN> is less than <SPAN class="argument">src1</SPAN>; otherwise, stores a value of <CODE>0</CODE> in <SPAN class="argument">dest</SPAN>.<BR>
51      </p>
52    </div>
53
54    <h2>Operation</h2>
55    <div class="section">
56<pre class="definition">
57dest.x = ( src0.x < src1.x ) ? 1 : 0
58dest.y = ( src0.y < src1.y ) ? 1 : 0
59dest.z = ( src0.z < src1.z ) ? 1 : 0
60dest.w = ( src0.w < src1.w ) ? 1 : 0
61</pre>
62    </div>
63
64    <h2>Code Example</h2>
65    <div class="section">
66<pre class="definition">
67slt     r0,     c1,         v2
68slt     o0.xy,  r7.yzww,    c4.xxyz</pre>
69    </div>
70
71    <h2>Timetable</h2>
72    <div class="section">
73      <table class="timetable">
74        <tr>
75          <th></th>
76          <th>1</th><th>2</th><th>3</th>
77        </tr>
78        <tr>
79          <th>slt</th>
80          <td class="read">read</td>
81          <td class="SLT">SLT</td>
82          <td class="write">write</td>
83          <td class="dummy"></td>
84        </tr>
85      </table>
86    </div>
87
88
89  <h2>Revision History</h2>
90  <div class="section">
91    <dl class="history">
92      <dt>2011/12/20</dt>
93      <dd>Initial version.<br />
94      </dd>
95    </dl>
96  </div>
97
98  <hr><p>CONFIDENTIAL</p></body>
99</html>