2015-06-30 07:51:55 +08:00
|
|
|
// WebAssemblyInstrSIMD.td - WebAssembly SIMD codegen support -*- tablegen -*-//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
2015-07-11 02:23:10 +08:00
|
|
|
///
|
|
|
|
/// \file
|
|
|
|
/// \brief WebAssembly SIMD operand code-gen constructs.
|
|
|
|
///
|
2015-06-30 07:51:55 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2016-08-03 07:16:09 +08:00
|
|
|
let isCommutable = 1 in {
|
|
|
|
defm ADD : SIMDBinary<add, fadd, "add ">;
|
|
|
|
defm MUL: SIMDBinary<mul, fmul, "mul ">;
|
|
|
|
} // isCommutable = 1
|
|
|
|
defm SUB: SIMDBinary<sub, fsub, "sub ">;
|