llvm.org GIT mirror llvm / 9958e72
[ARM] Fix warnings about missing parentheses in ARMAsmParser git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327827 91177308-0d34-0410-b5e6-96231b3b80d8 Mikhail Maltsev 2 years ago
1 changed file(s) with 6 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
18691869
18701870 bool isNEONReplicate(unsigned Width, unsigned NumElems, bool Inv,
18711871 bool AllowMinusOne) const {
1872 assert(Width == 8 || Width == 16 || Width == 32 && "Invalid element width");
1872 assert((Width == 8 || Width == 16 || Width == 32) &&
1873 "Invalid element width");
18731874 assert(NumElems * Width <= 64 && "Invalid result width");
18741875
18751876 if (!isImm())
19061907 }
19071908
19081909 static void checkNeonReplicateArgs(unsigned FromW, unsigned ToW) {
1909 assert(FromW == 8 || FromW == 16 || FromW == 32 && "Invalid source width");
1910 assert(ToW == 16 || ToW == 32 || ToW == 64 && "Invalid destination width");
1910 assert((FromW == 8 || FromW == 16 || FromW == 32) &&
1911 "Invalid source width");
1912 assert((ToW == 16 || ToW == 32 || ToW == 64) &&
1913 "Invalid destination width");
19111914 assert(FromW < ToW && "ToW is not less than FromW");
19121915 }
19131916