]> granicus.if.org Git - llvm/commitdiff
Improve comment for ISD::EXTRACT_VECTOR_ELT
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Tue, 24 Jan 2017 14:21:29 +0000 (14:21 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Tue, 24 Jan 2017 14:21:29 +0000 (14:21 +0000)
The comment in ISDOpcodes.h for EXTRACT_VECTOR_ELT now explains that the high
bits are undefined if the result is extended.

Review: Hal Finkel

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292933 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/ISDOpcodes.h

index df700bf0c53d9b21d20dd0021460537bd4770eb1..00ce9c90e6e5f4102dbff0d32b46b50cd431ec8b 100644 (file)
@@ -281,7 +281,8 @@ namespace ISD {
     /// EXTRACT_VECTOR_ELT(VECTOR, IDX) - Returns a single element from VECTOR
     /// identified by the (potentially variable) element number IDX.  If the
     /// return type is an integer type larger than the element type of the
-    /// vector, the result is extended to the width of the return type.
+    /// vector, the result is extended to the width of the return type. In
+    /// that case, the high bits are undefined.
     EXTRACT_VECTOR_ELT,
 
     /// CONCAT_VECTORS(VECTOR0, VECTOR1, ...) - Given a number of values of