diff options
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly/fp32.ll')
-rw-r--r-- | llvm/test/CodeGen/WebAssembly/fp32.ll | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/fp32.ll b/llvm/test/CodeGen/WebAssembly/fp32.ll index 754ff95155a..35f6c4207d7 100644 --- a/llvm/test/CodeGen/WebAssembly/fp32.ll +++ b/llvm/test/CodeGen/WebAssembly/fp32.ll @@ -95,16 +95,16 @@ define float @trunc32(float %x) { ret float %a } -; CHECK-LABEL: (func $nearestint32 -; CHECK: (setlocal @1 (nearestint @0)) -define float @nearestint32(float %x) { +; CHECK-LABEL: (func $nearest32 +; CHECK: (setlocal @1 (nearest @0)) +define float @nearest32(float %x) { %a = call float @llvm.nearbyint.f32(float %x) ret float %a } -; CHECK-LABEL: (func $nearestint32_via_rint -; CHECK: (setlocal @1 (nearestint @0)) -define float @nearestint32_via_rint(float %x) { +; CHECK-LABEL: (func $nearest32_via_rint +; CHECK: (setlocal @1 (nearest @0)) +define float @nearest32_via_rint(float %x) { %a = call float @llvm.rint.f32(float %x) ret float %a } |