[PATCH] D48304: [WebAssembly] Fixed disassembler unit test failure.
Derek Schuff via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 18 17:07:03 PDT 2018
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rL334999: [WebAssembly] Fixed disassembler unit test failure. (authored by dschuff, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D48304
Files:
llvm/trunk/unittests/MC/Disassembler.cpp
Index: llvm/trunk/unittests/MC/Disassembler.cpp
===================================================================
--- llvm/trunk/unittests/MC/Disassembler.cpp
+++ llvm/trunk/unittests/MC/Disassembler.cpp
@@ -84,24 +84,24 @@
InstSize = LLVMDisasmInstruction(DCR, BytesP, NumBytes, PC, OutString,
OutStringSize);
EXPECT_EQ(InstSize, 1U);
- EXPECT_EQ(StringRef(OutString), "\ti32.add \t$0=, $0, $0");
+ EXPECT_EQ(StringRef(OutString), "\ti32.add ");
PC += InstSize;
BytesP += InstSize;
NumBytes -= InstSize;
InstSize = LLVMDisasmInstruction(DCR, BytesP, NumBytes, PC, OutString,
OutStringSize);
EXPECT_EQ(InstSize, 2U);
- EXPECT_EQ(StringRef(OutString), "\ti64.const\t$0=, -1");
+ EXPECT_EQ(StringRef(OutString), "\ti64.const\t-1");
PC += InstSize;
BytesP += InstSize;
NumBytes -= InstSize;
InstSize = LLVMDisasmInstruction(DCR, BytesP, NumBytes, PC, OutString,
OutStringSize);
EXPECT_EQ(InstSize, 3U);
- EXPECT_EQ(StringRef(OutString), "\ti64.load32_u\t$0=, 16($0):p2align=1");
+ EXPECT_EQ(StringRef(OutString), "\ti64.load32_u\t16, :p2align=1");
LLVMDisasmDispose(DCR);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48304.151830.patch
Type: text/x-patch
Size: 1235 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180619/94dc4686/attachment.bin>
More information about the llvm-commits
mailing list