[PATCH] D50292: [WebAssembly] Update SIMD binary arithmetic

Derek Schuff via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 6 14:38:01 PDT 2018


dschuff added inline comments.


================
Comment at: lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp:214
   case WebAssembly::ExprType::F64: O << "f64"; break;
-  case WebAssembly::ExprType::I8x16: O << "i8x16"; break;
-  case WebAssembly::ExprType::I16x8: O << "i16x8"; break;
-  case WebAssembly::ExprType::I32x4: O << "i32x4"; break;
-  case WebAssembly::ExprType::F32x4: O << "f32x4"; break;
-  case WebAssembly::ExprType::B8x16: O << "b8x16"; break;
-  case WebAssembly::ExprType::B16x8: O << "b16x8"; break;
-  case WebAssembly::ExprType::B32x4: O << "b32x4"; break;
+  case WebAssembly::ExprType::V128: O << "v128"; break;
   case WebAssembly::ExprType::ExceptRef: O << "except_ref"; break;
----------------
Replacing the ExprType is not related to the rest of this CL, so it should probably be split into a separate CL.


================
Comment at: test/CodeGen/WebAssembly/simd-arith.ll:150
+; SIMD128: return $pop0{{$}}
+define <2 x i64> @mul_v2i64(<2 x i64> %x, <2 x i64> %y) {
+  %a = mul <2 x i64> %x, %y
----------------
missing div?


Repository:
  rL LLVM

https://reviews.llvm.org/D50292





More information about the llvm-commits mailing list