diff options
| author | Dan Gohman <dan433584@gmail.com> | 2015-09-15 00:55:19 +0000 |
|---|---|---|
| committer | Dan Gohman <dan433584@gmail.com> | 2015-09-15 00:55:19 +0000 |
| commit | 311b488d767fa33cc370cbaa48df74702e1a8b8e (patch) | |
| tree | 93a96f42380774aa15a9340269769574f1f4c9bb /llvm/lib/Target | |
| parent | cadbf3dcf84eaa95d5b7785ca6d5b005c6a91757 (diff) | |
| download | bcm5719-llvm-311b488d767fa33cc370cbaa48df74702e1a8b8e.tar.gz bcm5719-llvm-311b488d767fa33cc370cbaa48df74702e1a8b8e.zip | |
[WebAssembly] Implement int64-to-int32 conversion.
llvm-svn: 247649
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyInstrConv.td | 3 |
1 files changed, 3 insertions, 0 deletions
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))]>; |

