WebAssembly: implement comparison.
authorJF Bastien <jfb@google.com>
Tue, 11 Aug 2015 21:02:46 +0000 (21:02 +0000)
committerJF Bastien <jfb@google.com>
Tue, 11 Aug 2015 21:02:46 +0000 (21:02 +0000)
commit06a1f0e6d88c2ff208d64724dc519bc12cada55f
tree1343bdac1d03a08c47a5ed5a58f7db2089c49ebb
parentf18fe35cf6ee5342ca5b75410e4ec92c23e7a217
WebAssembly: implement comparison.

Some of the FP comparisons (ueq, one, ult, ule, ugt, uge) are currently broken, I'll fix them in a follow-up.

Reviewers: sunfish

Subscribers: llvm-commits, jfb

Differential Revision: http://reviews.llvm.org/D11924

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244665 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
lib/Target/WebAssembly/WebAssemblyInstrFloat.td
lib/Target/WebAssembly/WebAssemblyInstrFormats.td
lib/Target/WebAssembly/WebAssemblyInstrInteger.td
test/CodeGen/WebAssembly/comparisons_f32.ll [new file with mode: 0644]
test/CodeGen/WebAssembly/comparisons_f64.ll [new file with mode: 0644]
test/CodeGen/WebAssembly/comparisons_i32.ll [new file with mode: 0644]
test/CodeGen/WebAssembly/comparisons_i64.ll [new file with mode: 0644]