diff options
author | Dan Gohman <dan433584@gmail.com> | 2015-09-26 01:09:44 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2015-09-26 01:09:44 +0000 |
commit | d0bf981296b8d57b95f8d0c9680925612b7373a2 (patch) | |
tree | 49a19b4fdeb0c1cb990b9f65fdb8680004fd255d /llvm/lib/Target/WebAssembly/WebAssemblyInstrFloat.td | |
parent | 6993ba4d3ec432b661b99111d2bf55da6379e3d5 (diff) | |
download | bcm5719-llvm-d0bf981296b8d57b95f8d0c9680925612b7373a2.tar.gz bcm5719-llvm-d0bf981296b8d57b95f8d0c9680925612b7373a2.zip |
[WebAssembly] Rename several functions and types according to the new spec.
llvm-svn: 248644
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyInstrFloat.td')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyInstrFloat.td | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrFloat.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrFloat.td index 69db7e71ae1..570bf50ccea 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrFloat.td +++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrFloat.td @@ -25,11 +25,11 @@ defm COPYSIGN : BinaryFP<fcopysign>; defm CEIL : UnaryFP<fceil>; defm FLOOR : UnaryFP<ffloor>; defm TRUNC : UnaryFP<ftrunc>; -defm NEARESTINT : UnaryFP<fnearbyint>; +defm NEAREST : UnaryFP<fnearbyint>; // WebAssembly doesn't expose inexact exceptions, so map frint to fnearbyint. -def : Pat<(frint f32:$src), (NEARESTINT_F32 f32:$src)>; -def : Pat<(frint f64:$src), (NEARESTINT_F64 f64:$src)>; +def : Pat<(frint f32:$src), (NEAREST_F32 f32:$src)>; +def : Pat<(frint f64:$src), (NEAREST_F64 f64:$src)>; defm EQ : ComparisonFP<SETOEQ>; defm NE : ComparisonFP<SETUNE>; @@ -55,6 +55,6 @@ def : Pat<(setge f64:$lhs, f64:$rhs), (GE_F64 f64:$lhs, f64:$rhs)>; /* * TODO(jfb): Add the following for 32-bit and 64-bit. * - * float32.min: minimum (binary operator); if either operand is NaN, returns NaN - * float32.max: maximum (binary operator); if either operand is NaN, returns NaN + * f32.min: minimum (binary operator); if either operand is NaN, returns NaN + * f32.max: maximum (binary operator); if either operand is NaN, returns NaN */ |