Hitachi SH7751 Hardware Manual page 204

Superh risc engine
Table of Contents

Advertisement

FIPR FVm, FVn (m, n: 0, 4, 8, 12): Examples of the use of this instruction are given below.

Inner product (m
This operation is generally used for surface/rear surface determination for polygon surfaces.

Sum of square of elements (m = n):
This operation is generally used to find the length of a vector.
Since approximate-value computations are performed to enable high-speed computation, the
inexact exception (I) bit in the FPU exception cause field and FPU exception flag field is always
set to 1 when an FIPR instruction is executed. Therefore, if the corresponding bit is set in the FPU
exception enable field, FPU exception handling will be executed.
FTRV XMTRX, FVn (n: 0, 4, 8, 12): Examples of the use of this instruction are given below.



Matrix (4
4)
vector (4):
This operation is generally used for viewpoint changes, angle changes, or movements called
vector transformations (4-dimensional). Since affine transformation processing for angle +
parallel movement basically requires a 4
operations.



Matrix (4
4)
matrix (4
This operation requires the execution of four FTRV instructions.
Since approximate-value computations are performed to enable high-speed computation, the
inexact exception (I) bit in the FPU exception cause field and FPU exception flag field is always
set to 1 when an FTRV instruction is executed. Therefore, if the corresponding bit is set in the
FPU exception enable field, FPU exception handling will be executed. For the same reason, it is
not possible to check all data types in the registers beforehand when executing an FTRV
instruction. If the V bit is set in the FPU exception enable field, FPU exception handling will be
executed.
FRCHG: This instruction modifies banked registers. For example, when the FTRV instruction is
executed, matrix elements must be set in an array in the background bank. However, to create the
actual elements of a translation matrix, it is easier to use registers in the foreground bank. When
the LDC instruction is used on FPSCR, this instruction expends 4 to 5 cycles in order to maintain
the FPU state. With the FRCHG instruction, an FPSCR.FR bit modification can be performed in
one cycle.

n):

4):

4 matrix, the SH7751 Series supports 4-dimensional
Rev. 3.0, 04/02, page 165 of 1064

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sh7751r

Table of Contents