b9906d7a3f065cb4924ce31a10bdea403597de7c
[oota-llvm.git] / lib / Target / WebAssembly / WebAssemblyInstrFloat.td
1 // WebAssemblyInstrFloat.td-WebAssembly Float codegen support ---*- tablegen -*-
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 ///
10 /// \file
11 /// \brief WebAssembly Floating-point operand code-gen constructs.
12 ///
13 //===----------------------------------------------------------------------===//
14
15 /*
16  * TODO(jfb): Add the following for 32-bit and 64-bit.
17  *
18  * float32.add: addition
19  * float32.sub: subtraction
20  * float32.mul: multiplication
21  * float32.div: division
22  * float32.abs: absolute value
23  * float32.neg: negation
24  * float32.copysign: copysign
25  * float32.ceil: ceiling operation
26  * float32.floor: floor operation
27  * float32.trunc: round to nearest integer towards zero
28  * float32.nearestint: round to nearest integer, ties to even
29  * float32.eq: compare equal
30  * float32.lt: less than
31  * float32.le: less than or equal
32  * float32.gt: greater than
33  * float32.ge: greater than or equal
34  * float32.sqrt: square root
35  * float32.min: minimum (binary operator); if either operand is NaN, returns NaN
36  * float32.max: maximum (binary operator); if either operand is NaN, returns NaN
37  */