diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-06-23 23:14:51 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-06-23 23:14:51 +0000 |
commit | 465f06cfa660f36a930380207d47d22937effaaf (patch) | |
tree | faebf88751df065e3efcd3f6be4e1ed9ab650b10 /unittests | |
parent | 71c24112f164f525840442f7f22fe491095c53c1 (diff) | |
download | llvm-465f06cfa660f36a930380207d47d22937effaaf.tar.gz llvm-465f06cfa660f36a930380207d47d22937effaaf.tar.bz2 llvm-465f06cfa660f36a930380207d47d22937effaaf.tar.xz |
Support: Return scale from ScaledNumbers::matchScales()
This will be convenient when extracting `ScaledNumbers::getSum()`.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211552 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/Support/ScaledNumberTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/Support/ScaledNumberTest.cpp b/unittests/Support/ScaledNumberTest.cpp index 550947b8ea..08d6c68b0e 100644 --- a/unittests/Support/ScaledNumberTest.cpp +++ b/unittests/Support/ScaledNumberTest.cpp @@ -336,7 +336,7 @@ TEST(ScaledNumberHelpersTest, matchScales) { int16_t RSx = RSIn; \ int16_t Sy = SOut; \ \ - matchScales(LDx, LSx, RDx, RSx); \ + EXPECT_EQ(SOut, matchScales(LDx, LSx, RDx, RSx)); \ EXPECT_EQ(LDy, LDx); \ EXPECT_EQ(RDy, RDx); \ if (LDy) \ |