From 311b488d767fa33cc370cbaa48df74702e1a8b8e Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 15 Sep 2015 00:55:19 +0000 Subject: [WebAssembly] Implement int64-to-int32 conversion. llvm-svn: 247649 --- llvm/lib/Target/WebAssembly/WebAssemblyInstrConv.td | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/lib/Target/WebAssembly') diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrConv.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrConv.td index 3fa29061b1d..6479a67167b 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrConv.td +++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrConv.td @@ -42,3 +42,6 @@ * float64.cvt_unsigned[int64]: convert an unsigned 64-bit integer to a 64-bit float * float64.reinterpret[int64]: reinterpret the bits of a 64-bit integer as a 64-bit float */ + +def WRAP_I64_I32 : I<(outs Int32:$dst), (ins Int64:$src), + [(set Int32:$dst, (trunc Int64:$src))]>; -- cgit v1.2.3