
Sun Microelectronics
204
UltraSPARC User’s Manual
Figure 13-4
FPACK32 Operation
13.5.3.3 FPACKFIX
FPACKFIX takes two 32-bit fixed values in rs2, scales, truncates and clips them
into two 16-bit signed integers, then stores the result in the 32-bit rd register.
This operation, illustrated in Figure 13-5, is carried out as follows:
1.
Left shift each 32-bit value in rs2 by the number of bits in the
GSR.scale_factor, while maintaining clipping information.
3
rs2
rd
7
2
0
5
implicit binary pt
0
3
1
2
2
3
0
GSR.scale_factor
0110
rs2
rd
7
23
15
31
47
63
rs1
3
7
0
0
0
0
0
0
39
55
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com