diff options
author | Amara Emerson <amara.emerson@arm.com> | 2017-04-20 16:54:49 +0000 |
---|---|---|
committer | Amara Emerson <amara.emerson@arm.com> | 2017-04-20 16:54:49 +0000 |
commit | 20f2b01222a1e56b360a80d78a371fa063abfdbf (patch) | |
tree | 506ff7ce4aec32fe1df2fc15ab86a3ab598cc1ad /llvm/unittests/CodeGen/ScalableVectorMVTsTest.cpp | |
parent | 2d0e88fb9b0f9d898eff0bb6e2400a7868c69239 (diff) | |
download | bcm5719-llvm-20f2b01222a1e56b360a80d78a371fa063abfdbf.tar.gz bcm5719-llvm-20f2b01222a1e56b360a80d78a371fa063abfdbf.zip |
[SVE] Fix mismatched sign comparison warning in unit test from r300842.
llvm-svn: 300855
Diffstat (limited to 'llvm/unittests/CodeGen/ScalableVectorMVTsTest.cpp')
-rw-r--r-- | llvm/unittests/CodeGen/ScalableVectorMVTsTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/CodeGen/ScalableVectorMVTsTest.cpp b/llvm/unittests/CodeGen/ScalableVectorMVTsTest.cpp index a22c87200ba..0071823f2cc 100644 --- a/llvm/unittests/CodeGen/ScalableVectorMVTsTest.cpp +++ b/llvm/unittests/CodeGen/ScalableVectorMVTsTest.cpp @@ -70,7 +70,7 @@ TEST(ScalableVectorMVTsTest, HelperFuncs) { // Check fields inside MVT::ElementCount EltCnt = Vnx4i32.getVectorElementCount(); - EXPECT_EQ(EltCnt.Min, 4); + EXPECT_EQ(EltCnt.Min, 4U); ASSERT_TRUE(EltCnt.Scalable); // Check that fixed-length vector types aren't scalable. @@ -81,7 +81,7 @@ TEST(ScalableVectorMVTsTest, HelperFuncs) { // Check that MVT::ElementCount works for fixed-length types. EltCnt = V8i32.getVectorElementCount(); - EXPECT_EQ(EltCnt.Min, 8); + EXPECT_EQ(EltCnt.Min, 8U); ASSERT_FALSE(EltCnt.Scalable); } |