arch-arm: Fix use of bitwise operators on booleans
authorJavier Setoain <javier.setoain@arm.com>
Thu, 14 Mar 2019 17:42:44 +0000 (17:42 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 28 Mar 2019 10:28:11 +0000 (10:28 +0000)
Change-Id: I3762b2921f1d00a9104d8dc11a19dc0a219581e5
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17288
Reviewed-by: Gabe Black <gabeblack@google.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>

src/arch/arm/isa/insts/sve.isa

index b1b946f63966253de8c8f92446e88e4bc9c9e9d0..647ceafe36166694751dc9090180923fa5591e21 100644 (file)
@@ -3182,9 +3182,9 @@ let {{
     sveBinInst('bic', 'BicPred', 'SimdAluOp', unsignedTypes, bicCode,
                PredType.MERGE, True)
     # BIC (vectors, unpredicated)
-    bicCode = 'destElem = srcElem1 & ~srcElem2;'
     sveBinInst('bic', 'BicUnpred', 'SimdAluOp', unsignedTypes, bicCode)
     # BIC, BICS (predicates)
+    bicCode = 'destElem = srcElem1 && !srcElem2;'
     svePredLogicalInst('bic', 'PredBic', 'SimdPredAluOp', ('uint8_t',),
                        bicCode)
     svePredLogicalInst('bics', 'PredBics', 'SimdPredAluOp', ('uint8_t',),