aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJacob Bramley <jacob.bramley@arm.com>2020-07-01 16:49:47 +0100
committerJacob Bramley <jacob.bramley@arm.com>2020-07-01 16:51:07 +0100
commita3d6110cabec3d8dc1b0992134dfaf957a531141 (patch)
treedb59881e647e1c452276e43542024c070e20313a /src
parent3980b742b15232b6ddc0b14db81e93611288b5be (diff)
downloadvixl-a3d6110cabec3d8dc1b0992134dfaf957a531141.tar.gz
Fix simulation of BRKNS.
In this instruction, `pg` should be ignored when setting flags. Also, simplify the test. Change-Id: I9b8a73bdd0aaaebbecbccd1c446e17cd9d38ce8f
Diffstat (limited to 'src')
-rw-r--r--src/aarch64/simulator-aarch64.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/aarch64/simulator-aarch64.cc b/src/aarch64/simulator-aarch64.cc
index 17873b35..52aac1d3 100644
--- a/src/aarch64/simulator-aarch64.cc
+++ b/src/aarch64/simulator-aarch64.cc
@@ -10802,7 +10802,8 @@ void Simulator::VisitSVEPropagateBreakToNextPartition(
// Set flag if needed.
if (instr->ExtractBit(22) == 1) {
- PredTest(kFormatVnB, pg, pdm);
+ // Note that this ignores `pg`.
+ PredTest(kFormatVnB, GetPTrue(), pdm);
}
}