diff options
author | Martin Jambor <mjambor@suse.cz> | 2017-08-14 14:33:54 +0000 |
---|---|---|
committer | Martin Jambor <mjambor@suse.cz> | 2017-08-14 14:33:54 +0000 |
commit | ae281588ac673801c2890f4679a211d24e4f8e01 (patch) | |
tree | ffda4ecce65bb72e54a07d8ed2c09288fa207b43 /gcc/doc/md.texi | |
parent | 7e05bab54f745defb749670b8c84eaf513c0b214 (diff) |
Merged trunk revision 251080 into the hsa branchhsa
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/hsa@251093 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc/md.texi')
-rw-r--r-- | gcc/doc/md.texi | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/gcc/doc/md.texi b/gcc/doc/md.texi index 5a00a2c45c7..ea959208c98 100644 --- a/gcc/doc/md.texi +++ b/gcc/doc/md.texi @@ -4871,15 +4871,22 @@ This pattern is not allowed to @code{FAIL}. Set given field in the vector value. Operand 0 is the vector to modify, operand 1 is new value of field and operand 2 specify the field index. -@cindex @code{vec_extract@var{m}} instruction pattern -@item @samp{vec_extract@var{m}} +@cindex @code{vec_extract@var{m}@var{n}} instruction pattern +@item @samp{vec_extract@var{m}@var{n}} Extract given field from the vector value. Operand 1 is the vector, operand 2 -specify field index and operand 0 place to store value into. - -@cindex @code{vec_init@var{m}} instruction pattern -@item @samp{vec_init@var{m}} +specify field index and operand 0 place to store value into. The +@var{n} mode is the mode of the field or vector of fields that should be +extracted, should be either element mode of the vector mode @var{m}, or +a vector mode with the same element mode and smaller number of elements. +If @var{n} is a vector mode, the index is counted in units of that mode. + +@cindex @code{vec_init@var{m}@var{n}} instruction pattern +@item @samp{vec_init@var{m}@var{n}} Initialize the vector to given values. Operand 0 is the vector to initialize -and operand 1 is parallel containing values for individual fields. +and operand 1 is parallel containing values for individual fields. The +@var{n} mode is the mode of the elements, should be either element mode of +the vector mode @var{m}, or a vector mode with the same element mode and +smaller number of elements. @cindex @code{vec_cmp@var{m}@var{n}} instruction pattern @item @samp{vec_cmp@var{m}@var{n}} |