From: Dan Gohman Date: Fri, 24 Feb 2017 21:05:35 +0000 (+0000) Subject: [WebAssembly] Handle f16 in fast-isel. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d2ef31552865d023ba76ab238d4c0b8348bd969;p=llvm [WebAssembly] Handle f16 in fast-isel. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296172 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/WebAssembly/WebAssemblyFastISel.cpp b/lib/Target/WebAssembly/WebAssemblyFastISel.cpp index bc7020fded8..f48b7f3af83 100644 --- a/lib/Target/WebAssembly/WebAssemblyFastISel.cpp +++ b/lib/Target/WebAssembly/WebAssemblyFastISel.cpp @@ -116,6 +116,8 @@ private: case MVT::f32: case MVT::f64: return VT; + case MVT::f16: + return MVT::f32; case MVT::v16i8: case MVT::v8i16: case MVT::v4i32: diff --git a/test/CodeGen/WebAssembly/f16.ll b/test/CodeGen/WebAssembly/f16.ll index c5198152ebd..6915f93e9b9 100644 --- a/test/CodeGen/WebAssembly/f16.ll +++ b/test/CodeGen/WebAssembly/f16.ll @@ -1,4 +1,5 @@ ; RUN: llc < %s -asm-verbose=false -disable-wasm-fallthrough-return-opt | FileCheck %s +; RUN: llc < %s -asm-verbose=false -disable-wasm-fallthrough-return-opt -fast-isel | FileCheck %s ; Test that f16 is expanded.