diff options
Diffstat (limited to 'llvm/lib/Target/WebAssembly')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyInstrInteger.td | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp index f3e3170dad2..6b5f653f3b9 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp @@ -107,7 +107,7 @@ static std::string OpcodeName(const WebAssemblyInstrInfo *TII, std::string Name(&N[0], &N[NameEnd]); if (!HasType) return Name; - for (const char *typelessOpcode : { "return", "call" }) + for (const char *typelessOpcode : { "return", "call", "br_if" }) if (Name == typelessOpcode) return Name; return std::string(&N[NameEnd + 1], &N[Len]) + '.' + Name; diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrInteger.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrInteger.td index b62cdaeb393..6a28a13eb3b 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrInteger.td +++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrInteger.td @@ -15,10 +15,10 @@ defm ADD : BinaryInt<add>; defm SUB : BinaryInt<sub>; defm MUL : BinaryInt<mul>; -defm SDIV : BinaryInt<sdiv>; -defm UDIV : BinaryInt<udiv>; -defm SREM : BinaryInt<srem>; -defm UREM : BinaryInt<urem>; +defm DIV_S : BinaryInt<sdiv>; +defm DIV_U : BinaryInt<udiv>; +defm REM_S : BinaryInt<srem>; +defm REM_U : BinaryInt<urem>; defm AND : BinaryInt<and>; defm IOR : BinaryInt<or>; defm XOR : BinaryInt<xor>; |