Binary floating-Point instructions
These functions are intended to generate binary floating-point instructions. These instructions will only be generated if the FLOAT(IEEE) option is in effect. For more information about the instructions themselves, see the topic of z/Architecture Principles of Operation.
If you want to use any of the following functions, your program must include builtins.h and be compiled with either the LANGLVL(EXTENDED) option or the LANGLVL(LIBEXT) and FLOAT(IEEE) options.
PROTOTYPE and Notes | Sample Pseudo Assembly | MIN ARCH |
---|---|---|
The return value is the condition code. |
|
ARCH(3) |
The return value is the condition code. |
|
ARCH(3) |
The return value is the condition code. |
|
ARCH(3) |
The return
value is the z/Architecture FPC.
Note: Also see functions
that get and set FPC rounding modes and Definitions that support FPC register-rounding macros.
|
EFPC R1 | ARCH(3) |
The return value is the result. |
FIEBR F1,M3,Op2 | ARCH(3) |
![]()
The return value is the result. ![]() |
![]() ![]() |
![]() ![]() |
The return value is the result. |
FIDBR F1,M3,Op2 | ARCH(3) |
The return value is the result. |
FIXBR F1,M3,Op2 | ARCH(3) |
The return value is the condition code. |
|
ARCH(3) |
The return value is the condition code. |
|
ARCH(3) |
The return value is the condition code. |
|
ARCH(3) |
The return value is the condition code. |
|
ARCH(3) |
The return value is the condition code. |
|
ARCH(3) |
The return value is the condition code. |
|
ARCH(3) |
The return value is the condition code. |
|
ARCH(3) |
The return value is the condition code. |
|
ARCH(3) |
The return value is the result. |
MADBR Op1,Op3,Op2 | ARCH(3) |
The return value is the result. |
MAEBR Op1,Op3,Op2 | ARCH(3) |
The return value is the condition code. |
MSDBR Op1,Op3,Op2 | ARCH(3) |
The return value is the result. |
MSEBR Op1,Op3,Op2 | ARCH(3) |
Only a constant literal can be passed to this built-in
function.
|
SFPC Op1 | ARCH(3) |
The return value is the square root. |
SQEBR F1,Op2 | ARCH(3) |
The return value is the square root. |
SQDBR F1,Op2 | ARCH(3) |
The return value is the square root. |
SQXBR F1,Op2 | ARCH(3) |
|
SRNM Op1 | ARCH(3) |
The return value is the condition code. |
TCEB Op1,Op2(0,0) | ARCH(3) |
The return value is the condition code. |
TCDB Op1,Op2(0,0) | ARCH(3) |
The return value is the condition code. |
TCXB Op1,Op2(0,0) | ARCH(3) |