diff options
| author | Thomas Lively <tlively@google.com> | 2018-11-15 03:38:59 +0000 |
|---|---|---|
| committer | Thomas Lively <tlively@google.com> | 2018-11-15 03:38:59 +0000 |
| commit | 77b33c86f50a7516085f361f22f2aa908dcd8e62 (patch) | |
| tree | 090e461849014b62d7059c5c4ab471c0e775e56b /llvm/lib | |
| parent | e0cfc04419ee2855f957e9367996e511752b3081 (diff) | |
| download | bcm5719-llvm-77b33c86f50a7516085f361f22f2aa908dcd8e62.tar.gz bcm5719-llvm-77b33c86f50a7516085f361f22f2aa908dcd8e62.zip | |
[WebAssembly] Renumber SIMD bitwise instructions
Summary: Changed to match https://github.com/WebAssembly/simd/pull/54.
Reviewers: aheejin
Subscribers: dschuff, sbc100, jgravelle-google, sunfish, llvm-commits
Differential Revision: https://reviews.llvm.org/D54561
llvm-svn: 346931
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td index 56d277ef912..7ac2d15c295 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td +++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td @@ -559,17 +559,17 @@ multiclass SIMDUnary<ValueType vec_t, string vec, SDNode node, string name, vec#"."#name#"\t$dst, $vec", vec#"."#name, simdop>; } +// Bitwise logic: v128.not +foreach vec_t = [v16i8, v8i16, v4i32, v2i64] in +defm NOT: SIMDUnary<vec_t, "v128", vnot, "not", 76>; + // Bitwise logic: v128.and / v128.or / v128.xor let isCommutable = 1 in { -defm AND : SIMDBitwise<and, "and", 76>; -defm OR : SIMDBitwise<or, "or", 77>; -defm XOR : SIMDBitwise<xor, "xor", 78>; +defm AND : SIMDBitwise<and, "and", 77>; +defm OR : SIMDBitwise<or, "or", 78>; +defm XOR : SIMDBitwise<xor, "xor", 79>; } // isCommutable = 1 -// Bitwise logic: v128.not -foreach vec_t = [v16i8, v8i16, v4i32, v2i64] in -defm NOT: SIMDUnary<vec_t, "v128", vnot, "not", 79>; - // Bitwise select: v128.bitselect foreach vec_t = [v16i8, v8i16, v4i32, v2i64, v4f32, v2f64] in defm BITSELECT_#vec_t : |

