summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/exec/secondprog.cpp
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2019-12-06 11:30:04 +0100
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2019-12-07 11:28:39 +0100
commit9db13b5a7d43096a9ab5f7cef6e1b7e2dc9c9c63 (patch)
tree2594abba49368c37058c55352d0d853f94116e3a /lldb/packages/Python/lldbsuite/test/functionalities/exec/secondprog.cpp
parent85c98f4c3198cba95a66f429a1fbeb29f9e9c70b (diff)
downloadbcm5719-llvm-9db13b5a7d43096a9ab5f7cef6e1b7e2dc9c9c63.tar.gz
bcm5719-llvm-9db13b5a7d43096a9ab5f7cef6e1b7e2dc9c9c63.zip
[FPEnv] Constrained FCmp intrinsics
This adds support for constrained floating-point comparison intrinsics. Specifically, we add: declare <ty2> @llvm.experimental.constrained.fcmp(<type> <op1>, <type> <op2>, metadata <condition code>, metadata <exception behavior>) declare <ty2> @llvm.experimental.constrained.fcmps(<type> <op1>, <type> <op2>, metadata <condition code>, metadata <exception behavior>) The first variant implements an IEEE "quiet" comparison (i.e. we only get an invalid FP exception if either argument is a SNaN), while the second variant implements an IEEE "signaling" comparison (i.e. we get an invalid FP exception if either argument is any NaN). The condition code is implemented as a metadata string. The same set of predicates as for the fcmp instruction is supported (except for the "true" and "false" predicates). These new intrinsics are mapped by SelectionDAG codegen onto two new ISD opcodes, ISD::STRICT_FSETCC and ISD::STRICT_FSETCCS, again representing quiet vs. signaling comparison operations. Otherwise those nodes look like SETCC nodes, with an additional chain argument and result as usual for strict FP nodes. The patch includes support for the common legalization operations for those nodes. The patch also includes full SystemZ back-end support for the new ISD nodes, mapping them to all available SystemZ instruction to fully implement strict semantics (scalar and vector). Differential Revision: https://reviews.llvm.org/D69281
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/exec/secondprog.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud