Index: llvm/docs/GlobalISel/GenericOpcode.rst =================================================================== --- llvm/docs/GlobalISel/GenericOpcode.rst +++ llvm/docs/GlobalISel/GenericOpcode.rst @@ -186,11 +186,17 @@ index. This will almost certainly be mapped to sub-register COPYs after register banks have been selected. +.. code-block:: none + %res = G_EXTRACT <1 x i32> %vec, i32 0 + G_INSERT ^^^^^^^^ Insert a smaller register into a larger one at the specified bit-index. +.. code-block:: none +%vec = G_INSERT <1 x i32> undef, i32 %elt, i32 0 + G_MERGE_VALUES ^^^^^^^^^^^^^^