diff options
author | JF Bastien <jfb@google.com> | 2015-08-11 02:45:15 +0000 |
---|---|---|
committer | JF Bastien <jfb@google.com> | 2015-08-11 02:45:15 +0000 |
commit | ef172fc9f003e5ad6f8ed10eb799879b99076e19 (patch) | |
tree | 2c776f4a53f244c7b0df6d89e690090cf0fdd90c /llvm/lib | |
parent | 26cee3d9299a8bac3e8118b29a1072c7f169ff08 (diff) | |
download | bcm5719-llvm-ef172fc9f003e5ad6f8ed10eb799879b99076e19.tar.gz bcm5719-llvm-ef172fc9f003e5ad6f8ed10eb799879b99076e19.zip |
WebAssembly: add basic floating-point tests
Summary: I somehow forgot to add these when I added the basic floating-point opcodes. Also remove ceil/floor/trunc/nearestint for now, and add them only when properly tested.
Subscribers: llvm-commits, sunfish, jfb
Differential Revision: http://reviews.llvm.org/D11927
llvm-svn: 244562
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyInstrFloat.td | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrFloat.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrFloat.td index 30ef6339d65..b6c09be83a3 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrFloat.td +++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrFloat.td @@ -19,10 +19,14 @@ defm FDIV : BinaryFP<fdiv>; defm FABS : UnaryFP<fabs>; defm FNEG : UnaryFP<fneg>; defm COPYSIGN : BinaryFP<fcopysign>; -defm CEIL : UnaryFP<fceil>; -defm FLOOR : UnaryFP<ffloor>; -defm TRUNC : UnaryFP<ftrunc>; -defm NEARESTINT : UnaryFP<fnearbyint>; + +/* + * TODO(jfb): add and test these: + * defm CEIL : UnaryFP<fceil>; + * defm FLOOR : UnaryFP<ffloor>; + * defm TRUNC : UnaryFP<ftrunc>; + * defm NEARESTINT : UnaryFP<fnearbyint>; + */ /* * TODO(jfb): Add the following for 32-bit and 64-bit. |