[llvm] r344106 - [WebAssembly] Improve comments for SIMD instruction definitions

Heejin Ahn via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 9 18:04:02 PDT 2018


Author: aheejin
Date: Tue Oct  9 18:04:02 2018
New Revision: 344106

URL: http://llvm.org/viewvc/llvm-project?rev=344106&view=rev
Log:
[WebAssembly] Improve comments for SIMD instruction definitions

Modified:
    llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td

Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td?rev=344106&r1=344105&r2=344106&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td Tue Oct  9 18:04:02 2018
@@ -794,13 +794,13 @@ multiclass SIMDConvert<ValueType vec_t,
            name#"\t$dst, $vec", name, simdop>;
 }
 
-// Integer to floating point
+// Integer to floating point: convert_s / convert_u
 defm "" : SIMDConvert<v4f32, v4i32, sint_to_fp, "f32x4.convert_s/i32x4", 143>;
 defm "" : SIMDConvert<v4f32, v4i32, uint_to_fp, "f32x4.convert_u/i32x4", 144>;
 defm "" : SIMDConvert<v2f64, v2i64, sint_to_fp, "f64x2.convert_s/i64x2", 145>;
 defm "" : SIMDConvert<v2f64, v2i64, uint_to_fp, "f64x2.convert_u/i64x2", 146>;
 
-// Floating point to integer with saturation
+// Floating point to integer with saturation: trunc_sat_s / trunc_sat_u
 defm "" : SIMDConvert<v4i32, v4f32, fp_to_sint, "i32x4.trunc_sat_s/f32x4", 147>;
 defm "" : SIMDConvert<v4i32, v4f32, fp_to_uint, "i32x4.trunc_sat_u/f32x4", 148>;
 defm "" : SIMDConvert<v2i64, v2f64, fp_to_sint, "i64x2.trunc_sat_s/f64x2", 149>;




More information about the llvm-commits mailing list