[PATCH] D11970: WebAssembly: floating-point comparisons

Dan Gohman via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 12 10:31:07 PDT 2015


sunfish accepted this revision.
This revision is now accepted and ready to land.

================
Comment at: lib/Target/WebAssembly/WebAssemblyInstrFloat.td:39
@@ +38,3 @@
+// Floating-point comparisons supported via other comparisons.
+// 32-bit:
+def : Pat<(seteq f32:$lhs, f32:$rhs), (EQ_F32 f32:$lhs, f32:$rhs)>;
----------------
"32-bit" is clear from the code so isn't really critical to have in a comment. The thing not immediately obvious is that these are the "don't care" operators, and what's happening here is that we're mapping "don't care" operators onto supported operators.


http://reviews.llvm.org/D11970





More information about the llvm-commits mailing list