summaryrefslogtreecommitdiff
path: root/src/Helium/Instructions/Instances
diff options
context:
space:
mode:
Diffstat (limited to 'src/Helium/Instructions/Instances')
-rw-r--r--src/Helium/Instructions/Instances/Barrett.agda6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Helium/Instructions/Instances/Barrett.agda b/src/Helium/Instructions/Instances/Barrett.agda
index 606a9e9..b913972 100644
--- a/src/Helium/Instructions/Instances/Barrett.agda
+++ b/src/Helium/Instructions/Instances/Barrett.agda
@@ -22,11 +22,11 @@ open import Helium.Instructions.Core
-- | z | < 2 ^ 31
-- Computes:
-- z mod n
-barret : (m -n : Expression [] (bits 32)) (t z : VecReg) (im : GenReg) → Procedure []
+barret : (m -n : Expression State [] (bits 32)) (t z : VecReg) (im : GenReg) → Procedure State []
barret m -n t z im =
- index R (lit (im ′f)) ≔ m ∙
+ *index R (lit im) ≔ m ∙
invoke vqrdmulh-s32,t,z,m [] ∙
- index R (lit (im ′f)) ≔ -n ∙
+ *index R (lit im) ≔ -n ∙
invoke vmla-s32,z,t,-n [] ∙end
where
vqrdmulh-s32,t,z,m =