fpopcode.h (e8c44319c691dfb4a0b039b095204c040df9b01a) fpopcode.h (96de0e252cedffad61b3cb5e05662c591898e69a)
1/*
2 NetWinder Floating Point Emulator
3 (c) Rebel.COM, 1998,1999
4 (c) Philip Blundell, 2001
5
6 Direct questions, comments to Scott Bambrough <scottb@netwinder.org>
7
8 This program is free software; you can redistribute it and/or modify

--- 64 unchanged lines hidden (view full) ---

73i constant bit: 1 = constant (TABLE 6)
74*/
75
76/*
77TABLE 1
78+-------------------------+---+---+---------+---------+
79| Precision | u | v | FPSR.EP | length |
80+-------------------------+---+---+---------+---------+
1/*
2 NetWinder Floating Point Emulator
3 (c) Rebel.COM, 1998,1999
4 (c) Philip Blundell, 2001
5
6 Direct questions, comments to Scott Bambrough <scottb@netwinder.org>
7
8 This program is free software; you can redistribute it and/or modify

--- 64 unchanged lines hidden (view full) ---

73i constant bit: 1 = constant (TABLE 6)
74*/
75
76/*
77TABLE 1
78+-------------------------+---+---+---------+---------+
79| Precision | u | v | FPSR.EP | length |
80+-------------------------+---+---+---------+---------+
81| Single | 0 0 | x | 1 words |
82| Double | 1 1 | x | 2 words |
83| Extended | 1 1 | x | 3 words |
84| Packed decimal | 1 1 | 0 | 3 words |
85| Expanded packed decimal | 1 1 | 1 | 4 words |
81| Single | 0 | 0 | x | 1 words |
82| Double | 1 | 1 | x | 2 words |
83| Extended | 1 | 1 | x | 3 words |
84| Packed decimal | 1 | 1 | 0 | 3 words |
85| Expanded packed decimal | 1 | 1 | 1 | 4 words |
86+-------------------------+---+---+---------+---------+
87Note: x = don't care
88*/
89
90/*
91TABLE 2
92+---+---+---------------------------------+
93| w | x | Number of registers to transfer |
94+---+---+---------------------------------+
86+-------------------------+---+---+---------+---------+
87Note: x = don't care
88*/
89
90/*
91TABLE 2
92+---+---+---------------------------------+
93| w | x | Number of registers to transfer |
94+---+---+---------------------------------+
95| 0 1 | 1 |
96| 1 0 | 2 |
97| 1 1 | 3 |
98| 0 0 | 4 |
95| 0 | 1 | 1 |
96| 1 | 0 | 2 |
97| 1 | 1 | 3 |
98| 0 | 0 | 4 |
99+---+---+---------------------------------+
100*/
101
102/*
103TABLE 3: Dyadic Floating Point Opcodes
104+---+---+---+---+----------+-----------------------+-----------------------+
105| a | b | c | d | Mnemonic | Description | Operation |
106+---+---+---+---+----------+-----------------------+-----------------------+

--- 44 unchanged lines hidden (view full) ---

151 available for backwards compatibility only.
152*/
153
154/*
155TABLE 5
156+-------------------------+---+---+
157| Rounding Precision | e | f |
158+-------------------------+---+---+
99+---+---+---------------------------------+
100*/
101
102/*
103TABLE 3: Dyadic Floating Point Opcodes
104+---+---+---+---+----------+-----------------------+-----------------------+
105| a | b | c | d | Mnemonic | Description | Operation |
106+---+---+---+---+----------+-----------------------+-----------------------+

--- 44 unchanged lines hidden (view full) ---

151 available for backwards compatibility only.
152*/
153
154/*
155TABLE 5
156+-------------------------+---+---+
157| Rounding Precision | e | f |
158+-------------------------+---+---+
159| IEEE Single precision | 0 0 |
160| IEEE Double precision | 0 1 |
161| IEEE Extended precision | 1 0 |
162| undefined (trap) | 1 1 |
159| IEEE Single precision | 0 | 0 |
160| IEEE Double precision | 0 | 1 |
161| IEEE Extended precision | 1 | 0 |
162| undefined (trap) | 1 | 1 |
163+-------------------------+---+---+
164*/
165
166/*
167TABLE 5
168+---------------------------------+---+---+
169| Rounding Mode | g | h |
170+---------------------------------+---+---+
163+-------------------------+---+---+
164*/
165
166/*
167TABLE 5
168+---------------------------------+---+---+
169| Rounding Mode | g | h |
170+---------------------------------+---+---+
171| Round to nearest (default) | 0 0 |
172| Round toward plus infinity | 0 1 |
173| Round toward negative infinity | 1 0 |
174| Round toward zero | 1 1 |
171| Round to nearest (default) | 0 | 0 |
172| Round toward plus infinity | 0 | 1 |
173| Round toward negative infinity | 1 | 0 |
174| Round toward zero | 1 | 1 |
175+---------------------------------+---+---+
176*/
177
178/*
179===
180=== Definitions for load and store instructions
181===
182*/

--- 302 unchanged lines hidden ---
175+---------------------------------+---+---+
176*/
177
178/*
179===
180=== Definitions for load and store instructions
181===
182*/

--- 302 unchanged lines hidden ---