Skip to content

Commit 7f74818

Browse files
committed
Disable support for vicmp/vfcmp from the LLVM 2.5 release branch, like we did for LLVM 2.4. These are slated to be removed (PR3370) and we don't want to have to be backwards compatible with them in the future.
llvm-svn: 63788
1 parent 8920fde commit 7f74818

File tree

6 files changed

+4
-116
lines changed

6 files changed

+4
-116
lines changed

llvm/docs/LangRef.html

Lines changed: 0 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,6 @@
150150
<ol>
151151
<li><a href="#i_icmp">'<tt>icmp</tt>' Instruction</a></li>
152152
<li><a href="#i_fcmp">'<tt>fcmp</tt>' Instruction</a></li>
153-
<li><a href="#i_vicmp">'<tt>vicmp</tt>' Instruction</a></li>
154-
<li><a href="#i_vfcmp">'<tt>vfcmp</tt>' Instruction</a></li>
155153
<li><a href="#i_phi">'<tt>phi</tt>' Instruction</a></li>
156154
<li><a href="#i_select">'<tt>select</tt>' Instruction</a></li>
157155
<li><a href="#i_call">'<tt>call</tt>' Instruction</a></li>
@@ -1942,12 +1940,6 @@ <h5>Examples:</h5>
19421940
<dt><b><tt>fcmp COND ( VAL1, VAL2 )</tt></b></dt>
19431941
<dd>Performs the <a href="#i_fcmp">fcmp operation</a> on constants.</dd>
19441942

1945-
<dt><b><tt>vicmp COND ( VAL1, VAL2 )</tt></b></dt>
1946-
<dd>Performs the <a href="#i_vicmp">vicmp operation</a> on constants.</dd>
1947-
1948-
<dt><b><tt>vfcmp COND ( VAL1, VAL2 )</tt></b></dt>
1949-
<dd>Performs the <a href="#i_vfcmp">vfcmp operation</a> on constants.</dd>
1950-
19511943
<dt><b><tt>extractelement ( VAL, IDX )</tt></b></dt>
19521944

19531945
<dd>Perform the <a href="#i_extractelement">extractelement
@@ -4252,109 +4244,6 @@ <h5>Example:</h5>
42524244

42534245
</div>
42544246

4255-
<!-- _______________________________________________________________________ -->
4256-
<div class="doc_subsubsection">
4257-
<a name="i_vicmp">'<tt>vicmp</tt>' Instruction</a>
4258-
</div>
4259-
<div class="doc_text">
4260-
<h5>Syntax:</h5>
4261-
<pre> &lt;result&gt; = vicmp &lt;cond&gt; &lt;ty&gt; &lt;op1&gt;, &lt;op2&gt; <i>; yields {ty}:result</i>
4262-
</pre>
4263-
<h5>Overview:</h5>
4264-
<p>The '<tt>vicmp</tt>' instruction returns an integer vector value based on
4265-
element-wise comparison of its two integer vector operands.</p>
4266-
<h5>Arguments:</h5>
4267-
<p>The '<tt>vicmp</tt>' instruction takes three operands. The first operand is
4268-
the condition code indicating the kind of comparison to perform. It is not
4269-
a value, just a keyword. The possible condition code are:</p>
4270-
<ol>
4271-
<li><tt>eq</tt>: equal</li>
4272-
<li><tt>ne</tt>: not equal </li>
4273-
<li><tt>ugt</tt>: unsigned greater than</li>
4274-
<li><tt>uge</tt>: unsigned greater or equal</li>
4275-
<li><tt>ult</tt>: unsigned less than</li>
4276-
<li><tt>ule</tt>: unsigned less or equal</li>
4277-
<li><tt>sgt</tt>: signed greater than</li>
4278-
<li><tt>sge</tt>: signed greater or equal</li>
4279-
<li><tt>slt</tt>: signed less than</li>
4280-
<li><tt>sle</tt>: signed less or equal</li>
4281-
</ol>
4282-
<p>The remaining two arguments must be <a href="#t_vector">vector</a> or
4283-
<a href="#t_integer">integer</a> typed. They must also be identical types.</p>
4284-
<h5>Semantics:</h5>
4285-
<p>The '<tt>vicmp</tt>' instruction compares <tt>op1</tt> and <tt>op2</tt>
4286-
according to the condition code given as <tt>cond</tt>. The comparison yields a
4287-
<a href="#t_vector">vector</a> of <a href="#t_integer">integer</a> result, of
4288-
identical type as the values being compared. The most significant bit in each
4289-
element is 1 if the element-wise comparison evaluates to true, and is 0
4290-
otherwise. All other bits of the result are undefined. The condition codes
4291-
are evaluated identically to the <a href="#i_icmp">'<tt>icmp</tt>'
4292-
instruction</a>.</p>
4293-
4294-
<h5>Example:</h5>
4295-
<pre>
4296-
&lt;result&gt; = vicmp eq &lt;2 x i32&gt; &lt; i32 4, i32 0&gt;, &lt; i32 5, i32 0&gt; <i>; yields: result=&lt;2 x i32&gt; &lt; i32 0, i32 -1 &gt;</i>
4297-
&lt;result&gt; = vicmp ult &lt;2 x i8 &gt; &lt; i8 1, i8 2&gt;, &lt; i8 2, i8 2 &gt; <i>; yields: result=&lt;2 x i8&gt; &lt; i8 -1, i8 0 &gt;</i>
4298-
</pre>
4299-
</div>
4300-
4301-
<!-- _______________________________________________________________________ -->
4302-
<div class="doc_subsubsection">
4303-
<a name="i_vfcmp">'<tt>vfcmp</tt>' Instruction</a>
4304-
</div>
4305-
<div class="doc_text">
4306-
<h5>Syntax:</h5>
4307-
<pre> &lt;result&gt; = vfcmp &lt;cond&gt; &lt;ty&gt; &lt;op1&gt;, &lt;op2&gt;</pre>
4308-
<h5>Overview:</h5>
4309-
<p>The '<tt>vfcmp</tt>' instruction returns an integer vector value based on
4310-
element-wise comparison of its two floating point vector operands. The output
4311-
elements have the same width as the input elements.</p>
4312-
<h5>Arguments:</h5>
4313-
<p>The '<tt>vfcmp</tt>' instruction takes three operands. The first operand is
4314-
the condition code indicating the kind of comparison to perform. It is not
4315-
a value, just a keyword. The possible condition code are:</p>
4316-
<ol>
4317-
<li><tt>false</tt>: no comparison, always returns false</li>
4318-
<li><tt>oeq</tt>: ordered and equal</li>
4319-
<li><tt>ogt</tt>: ordered and greater than </li>
4320-
<li><tt>oge</tt>: ordered and greater than or equal</li>
4321-
<li><tt>olt</tt>: ordered and less than </li>
4322-
<li><tt>ole</tt>: ordered and less than or equal</li>
4323-
<li><tt>one</tt>: ordered and not equal</li>
4324-
<li><tt>ord</tt>: ordered (no nans)</li>
4325-
<li><tt>ueq</tt>: unordered or equal</li>
4326-
<li><tt>ugt</tt>: unordered or greater than </li>
4327-
<li><tt>uge</tt>: unordered or greater than or equal</li>
4328-
<li><tt>ult</tt>: unordered or less than </li>
4329-
<li><tt>ule</tt>: unordered or less than or equal</li>
4330-
<li><tt>une</tt>: unordered or not equal</li>
4331-
<li><tt>uno</tt>: unordered (either nans)</li>
4332-
<li><tt>true</tt>: no comparison, always returns true</li>
4333-
</ol>
4334-
<p>The remaining two arguments must be <a href="#t_vector">vector</a> of
4335-
<a href="#t_floating">floating point</a> typed. They must also be identical
4336-
types.</p>
4337-
<h5>Semantics:</h5>
4338-
<p>The '<tt>vfcmp</tt>' instruction compares <tt>op1</tt> and <tt>op2</tt>
4339-
according to the condition code given as <tt>cond</tt>. The comparison yields a
4340-
<a href="#t_vector">vector</a> of <a href="#t_integer">integer</a> result, with
4341-
an identical number of elements as the values being compared, and each element
4342-
having identical with to the width of the floating point elements. The most
4343-
significant bit in each element is 1 if the element-wise comparison evaluates to
4344-
true, and is 0 otherwise. All other bits of the result are undefined. The
4345-
condition codes are evaluated identically to the
4346-
<a href="#i_fcmp">'<tt>fcmp</tt>' instruction</a>.</p>
4347-
4348-
<h5>Example:</h5>
4349-
<pre>
4350-
<i>; yields: result=&lt;2 x i32&gt; &lt; i32 0, i32 -1 &gt;</i>
4351-
&lt;result&gt; = vfcmp oeq &lt;2 x float&gt; &lt; float 4, float 0 &gt;, &lt; float 5, float 0 &gt;
4352-
4353-
<i>; yields: result=&lt;2 x i64&gt; &lt; i64 -1, i64 0 &gt;</i>
4354-
&lt;result&gt; = vfcmp ult &lt;2 x double&gt; &lt; double 1, double 2 &gt;, &lt; double 2, double 2&gt;
4355-
</pre>
4356-
</div>
4357-
43584247
<!-- _______________________________________________________________________ -->
43594248
<div class="doc_subsubsection">
43604249
<a name="i_phi">'<tt>phi</tt>' Instruction</a>

llvm/lib/AsmParser/LLLexer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,6 @@ lltok::Kind LLLexer::LexIdentifier() {
560560
INSTKEYWORD(shl, Shl); INSTKEYWORD(lshr, LShr); INSTKEYWORD(ashr, AShr);
561561
INSTKEYWORD(and, And); INSTKEYWORD(or, Or); INSTKEYWORD(xor, Xor);
562562
INSTKEYWORD(icmp, ICmp); INSTKEYWORD(fcmp, FCmp);
563-
INSTKEYWORD(vicmp, VICmp); INSTKEYWORD(vfcmp, VFCmp);
564563

565564
INSTKEYWORD(phi, PHI);
566565
INSTKEYWORD(call, Call);

llvm/test/Assembler/vector-cmp.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | grep {global.*vicmp slt}
1+
; RUN: echo disabled
22
; PR2317
33
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
44
target triple = "i686-apple-darwin9.2.2"

llvm/test/CodeGen/X86/2008-07-23-VSetCC.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llvm-as < %s | llc -march=x86 -mcpu=pentium
1+
; RUN: echo disabled
22
; PR2575
33

44
define void @entry(i32 %m_task_id, i32 %start_x, i32 %end_x) nounwind {

llvm/test/CodeGen/X86/vfcmp.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2
1+
; RUN: echo disabled
22
; PR2620
33

44
define void @t(i32 %m_task_id, i32 %start_x, i32 %end_x) nounwind {

llvm/test/Transforms/ConstProp/2008-07-07-VectorCompare.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llvm-as < %s | opt -constprop -disable-output
1+
; RUN: echo disabled
22
; PR2529
33
define <4 x i32> @test1(i32 %argc, i8** %argv) {
44
entry:

0 commit comments

Comments
 (0)