[LLVMbugs] [Bug 3260] C++ API to shufflevector wants mask the same size as arg 1

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Dec 23 08:02:28 PST 2008


Nick Lewycky <nlewycky at google.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Nick Lewycky <nlewycky at google.com>  2008-12-23 10:02:23 ---
You're looking at the current in-CVS documentation while using LLVM 2.4.
According to llvm.org/releases/2.4/docs/LangRef.html, shufflevector is defined


"The 'shufflevector' instruction constructs a permutation of elements from two
input vectors, returning a vector of the same type.

"The first two operands of a 'shufflevector' instruction are vectors with types
that match each other and types that match the result of the instruction. The
third argument is a shuffle mask, which has the same number of elements as the
other vector type, but whose element type is always 'i32'.

"The shuffle mask operand is required to be a constant vector with either
constant integer or undef values."

You can either refer to the 2.4 version of the language reference, or update to
LLVM trunk.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list