[PATCH] D11924: WebAssembly: implement comparison.

JF Bastien via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 14:00:25 PDT 2015


jfb updated this revision to Diff 31857.
jfb added a comment.

- Add (broken) f32 test, trying to expand unsupported floating-point comparisons.
- Fix typo.
- Use the same 3-operand setcc+cond for FP comparisons as for int. It shouldn't change anything because of TargetSelectionDAG.td:910, but this is confusing...
- Remove currently broken FP comparisons (ueq, one, ult, ule, ugt, uge), so I can commit this and fix the broken ones separately.


http://reviews.llvm.org/D11924

Files:
  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
  test/CodeGen/WebAssembly/comparisons_f64.ll
  test/CodeGen/WebAssembly/comparisons_i32.ll
  test/CodeGen/WebAssembly/comparisons_i64.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11924.31857.patch
Type: text/x-patch
Size: 12378 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150811/a715527e/attachment-0001.bin>


More information about the llvm-commits mailing list