openpower-isa.git
14 months agorewrite loop
Konstantinos Margaritis [Fri, 17 Mar 2023 09:37:57 +0000 (09:37 +0000)]
rewrite loop

14 months agoRefactor code, add quarterround macros
Konstantinos Margaritis [Fri, 17 Mar 2023 09:36:53 +0000 (09:36 +0000)]
Refactor code, add quarterround macros

14 months agoAdd xchacha_encrypt_bytes_svp64 wrapper function
Konstantinos Margaritis [Fri, 17 Mar 2023 09:35:16 +0000 (09:35 +0000)]
Add xchacha_encrypt_bytes_svp64 wrapper function

14 months agoadd CRB-Form fields for crternlogi and crbinlog, they are both now
Luke Kenneth Casson Leighton [Wed, 15 Mar 2023 15:09:35 +0000 (15:09 +0000)]
add CRB-Form fields for crternlogi and crbinlog, they are both now
reduced to 3-in 1-out, both needing to become overwrites due to the
mask field (msk) making BF a Read-Modify-Write
https://bugs.libre-soc.org/show_bug.cgi?id=1023#c4

14 months agoFirst working version of SVP64 arm xchacha_hchacha20() function
Konstantinos Margaritis [Sun, 12 Mar 2023 22:42:23 +0000 (22:42 +0000)]
First working version of SVP64 arm xchacha_hchacha20() function

14 months agoset MAXVL=VL=32 first, then set vertical-first separately
Luke Kenneth Casson Leighton [Sun, 12 Mar 2023 22:27:01 +0000 (22:27 +0000)]
set MAXVL=VL=32 first, then set vertical-first separately
(chacha20)

15 months agoused same input data as the actual C test
Konstantinos Margaritis [Sun, 12 Mar 2023 19:26:30 +0000 (19:26 +0000)]
used same input data as the actual C test

15 months agoWIP: fixed some registers, wrong VL
Konstantinos Margaritis [Sun, 12 Mar 2023 19:26:02 +0000 (19:26 +0000)]
WIP: fixed some registers, wrong VL

15 months agouncomment loop
Konstantinos Margaritis [Sun, 12 Mar 2023 19:24:42 +0000 (19:24 +0000)]
uncomment loop

15 months agochange target registers in test_caller_svp64_chacha20.py to match
Luke Kenneth Casson Leighton [Sun, 12 Mar 2023 15:03:04 +0000 (15:03 +0000)]
change target registers in test_caller_svp64_chacha20.py to match
those in xchacha20_svp64.s

15 months agowhoops use same temp reg for ctr
Luke Kenneth Casson Leighton [Sun, 12 Mar 2023 14:57:15 +0000 (14:57 +0000)]
whoops use same temp reg for ctr

15 months agoparameterise svstep RT (set to 16 in chacha20 test)
Luke Kenneth Casson Leighton [Sun, 12 Mar 2023 14:52:26 +0000 (14:52 +0000)]
parameterise svstep RT (set to 16 in chacha20 test)

15 months agoparameterising VL and SHAPE0-2 in chacha20 test
Luke Kenneth Casson Leighton [Sun, 12 Mar 2023 14:46:07 +0000 (14:46 +0000)]
parameterising VL and SHAPE0-2 in chacha20 test

15 months agoparameterise the target block in chacha20 test,
Luke Kenneth Casson Leighton [Sun, 12 Mar 2023 14:38:42 +0000 (14:38 +0000)]
parameterise the target block in chacha20 test,
set the parameter (block) to GPR 64

15 months agoadd print-out for chacha20 schedule
Luke Kenneth Casson Leighton [Sun, 12 Mar 2023 10:52:01 +0000 (10:52 +0000)]
add print-out for chacha20 schedule

15 months agofix tabs
Konstantinos Margaritis [Sun, 12 Mar 2023 10:50:52 +0000 (10:50 +0000)]
fix tabs

15 months ago[WIP] xchacha20 SVP64 implementation using pypowersim wrapper
Konstantinos Margaritis [Sun, 12 Mar 2023 10:44:43 +0000 (10:44 +0000)]
[WIP] xchacha20 SVP64 implementation using pypowersim wrapper

15 months agouse absolute path
Konstantinos Margaritis [Sun, 12 Mar 2023 10:43:46 +0000 (10:43 +0000)]
use absolute path

15 months agoupdate pseudocode for dsld/dsrd to note that only when Rc=1 is setting
Luke Kenneth Casson Leighton [Wed, 8 Mar 2023 17:19:41 +0000 (17:19 +0000)]
update pseudocode for dsld/dsrd to note that only when Rc=1 is setting
overflow=1 relevant. for ls003

15 months agoafter move data to new directory, update runner-script to match
Luke Kenneth Casson Leighton [Mon, 20 Feb 2023 12:44:03 +0000 (12:44 +0000)]
after move data to new directory, update runner-script to match

16 months agopower_enums: enable Rc-aware dsld/dsrd
Dmitry Selyutin [Tue, 24 Jan 2023 18:47:09 +0000 (21:47 +0300)]
power_enums: enable Rc-aware dsld/dsrd

16 months agofields.text: fix TLI XO format
Dmitry Selyutin [Tue, 24 Jan 2023 13:22:44 +0000 (16:22 +0300)]
fields.text: fix TLI XO format

16 months agobitmanip.mdwn: add missing Rc static operand
Dmitry Selyutin [Tue, 24 Jan 2023 13:22:13 +0000 (16:22 +0300)]
bitmanip.mdwn: add missing Rc static operand

16 months agosvp64_utf_8_validation.py: convert labels to addresses
Dmitry Selyutin [Sun, 22 Jan 2023 17:46:58 +0000 (20:46 +0300)]
svp64_utf_8_validation.py: convert labels to addresses

16 months agopower_insn: fix dst/src duplication detection
Dmitry Selyutin [Sun, 22 Jan 2023 00:32:47 +0000 (03:32 +0300)]
power_insn: fix dst/src duplication detection

16 months agopower_insn: canonicalize SVP64 insn name
Dmitry Selyutin [Sat, 21 Jan 2023 22:06:23 +0000 (01:06 +0300)]
power_insn: canonicalize SVP64 insn name

16 months agopower_insn: hack CR assembly
Dmitry Selyutin [Sat, 21 Jan 2023 18:58:22 +0000 (21:58 +0300)]
power_insn: hack CR assembly

16 months agopower_insn: override bogus FMA instructions
Dmitry Selyutin [Fri, 20 Jan 2023 16:07:27 +0000 (19:07 +0300)]
power_insn: override bogus FMA instructions

16 months agopower_insn: refactor operands; simplify lookups
Dmitry Selyutin [Thu, 19 Jan 2023 21:33:31 +0000 (00:33 +0300)]
power_insn: refactor operands; simplify lookups

16 months agopysvp64asm: drop obsolete code
Dmitry Selyutin [Thu, 19 Jan 2023 04:25:01 +0000 (07:25 +0300)]
pysvp64asm: drop obsolete code

16 months agopower_insn: fix paired registers disassembly
Dmitry Selyutin [Wed, 18 Jan 2023 19:58:00 +0000 (22:58 +0300)]
power_insn: fix paired registers disassembly

16 months agopower_insn: support legacy style
Dmitry Selyutin [Mon, 16 Jan 2023 19:10:44 +0000 (22:10 +0300)]
power_insn: support legacy style

16 months agopower_insn: major refactoring and cleanup
Dmitry Selyutin [Mon, 19 Dec 2022 22:34:00 +0000 (01:34 +0300)]
power_insn: major refactoring and cleanup

16 months agopysvp64dis: do not create temporary bytes upon load
Dmitry Selyutin [Sun, 15 Jan 2023 08:35:18 +0000 (11:35 +0300)]
pysvp64dis: do not create temporary bytes upon load

16 months agopower_enums: support paired registers
Dmitry Selyutin [Sun, 15 Jan 2023 08:32:38 +0000 (11:32 +0300)]
power_enums: support paired registers

16 months agopower_fields: support assignment to same class instance
Dmitry Selyutin [Fri, 6 Jan 2023 17:22:53 +0000 (20:22 +0300)]
power_fields: support assignment to same class instance

16 months agopower_enums: fix CR register types
Dmitry Selyutin [Sun, 18 Dec 2022 20:16:28 +0000 (23:16 +0300)]
power_enums: fix CR register types

16 months agopower_enums: fix RC1 predicates conversion
Dmitry Selyutin [Sun, 18 Dec 2022 19:13:20 +0000 (22:13 +0300)]
power_enums: fix RC1 predicates conversion

16 months agopysvp64asm: avoid empty fields
Dmitry Selyutin [Sun, 18 Dec 2022 18:36:09 +0000 (21:36 +0300)]
pysvp64asm: avoid empty fields

16 months agoisatables: split dsld/dsrd Rc versions
Dmitry Selyutin [Sun, 18 Dec 2022 18:35:26 +0000 (21:35 +0300)]
isatables: split dsld/dsrd Rc versions

16 months agopower_insn: fix signed operands assembly
Dmitry Selyutin [Tue, 13 Dec 2022 23:32:43 +0000 (02:32 +0300)]
power_insn: fix signed operands assembly

16 months agopower_insn: fix arguments conversion
Dmitry Selyutin [Tue, 13 Dec 2022 19:47:23 +0000 (22:47 +0300)]
power_insn: fix arguments conversion

16 months agopower_insn: fix specifiers errors
Dmitry Selyutin [Tue, 13 Dec 2022 19:46:14 +0000 (22:46 +0300)]
power_insn: fix specifiers errors

16 months agopower_insn: common records lookup
Dmitry Selyutin [Tue, 13 Dec 2022 09:03:52 +0000 (12:03 +0300)]
power_insn: common records lookup

16 months agopower_insn: consider EXTS operand as signed
Dmitry Selyutin [Mon, 12 Dec 2022 21:55:32 +0000 (00:55 +0300)]
power_insn: consider EXTS operand as signed

16 months agopower_insn: discard SVP64 record for word instructions
Dmitry Selyutin [Mon, 12 Dec 2022 19:42:49 +0000 (22:42 +0300)]
power_insn: discard SVP64 record for word instructions

16 months agopower_insn: support pi/lf specifiers
Dmitry Selyutin [Sun, 11 Dec 2022 16:53:25 +0000 (19:53 +0300)]
power_insn: support pi/lf specifiers

16 months agopower_insn: support ctr/cti specifiers
Dmitry Selyutin [Mon, 21 Nov 2022 17:58:15 +0000 (20:58 +0300)]
power_insn: support ctr/cti specifiers

16 months agopower_insn: support vs/vsi/vsb/vsbi specifiers
Dmitry Selyutin [Mon, 21 Nov 2022 17:54:52 +0000 (20:54 +0300)]
power_insn: support vs/vsi/vsb/vsbi specifiers

16 months agopower_insn: support lru specifier
Dmitry Selyutin [Mon, 21 Nov 2022 17:36:57 +0000 (20:36 +0300)]
power_insn: support lru specifier

16 months agopower_insn: support slu specifier
Dmitry Selyutin [Mon, 21 Nov 2022 17:36:29 +0000 (20:36 +0300)]
power_insn: support slu specifier

16 months agopower_insn: support sl specifier
Dmitry Selyutin [Mon, 21 Nov 2022 17:35:24 +0000 (20:35 +0300)]
power_insn: support sl specifier

16 months agopower_insn: support snz specifier
Dmitry Selyutin [Mon, 21 Nov 2022 17:34:11 +0000 (20:34 +0300)]
power_insn: support snz specifier

16 months agopower_insn: support all specifier
Dmitry Selyutin [Mon, 21 Nov 2022 17:33:22 +0000 (20:33 +0300)]
power_insn: support all specifier

16 months agopower_insn: support crm specifier
Dmitry Selyutin [Mon, 21 Nov 2022 17:32:54 +0000 (20:32 +0300)]
power_insn: support crm specifier

16 months agopower_insn: support mr/mrr specifiers
Dmitry Selyutin [Mon, 21 Nov 2022 16:48:26 +0000 (19:48 +0300)]
power_insn: support mr/mrr specifiers

16 months agopower_insn: support sats/satu specifiers
Dmitry Selyutin [Mon, 21 Nov 2022 16:34:06 +0000 (19:34 +0300)]
power_insn: support sats/satu specifiers

16 months agopower_insn: simplify assembly validation
Dmitry Selyutin [Mon, 21 Nov 2022 16:12:13 +0000 (19:12 +0300)]
power_insn: simplify assembly validation

16 months agopower_insn: support sea specifier assembly
Dmitry Selyutin [Sun, 20 Nov 2022 14:49:44 +0000 (17:49 +0300)]
power_insn: support sea specifier assembly

16 months agopower_insn: support els specifier assembly
Dmitry Selyutin [Sun, 20 Nov 2022 14:17:32 +0000 (17:17 +0300)]
power_insn: support els specifier assembly

16 months agopower_fields: avoid unknown attributes
Dmitry Selyutin [Sun, 20 Nov 2022 13:56:33 +0000 (16:56 +0300)]
power_fields: avoid unknown attributes

16 months agopower_insn: fix combined zz disassembly
Dmitry Selyutin [Wed, 16 Nov 2022 22:41:55 +0000 (01:41 +0300)]
power_insn: fix combined zz disassembly

16 months agopower_insn: refactor w/sw/dw specifiers
Dmitry Selyutin [Wed, 16 Nov 2022 22:03:20 +0000 (01:03 +0300)]
power_insn: refactor w/sw/dw specifiers

16 months agopower_insn: support zz/sz/dz specifiers
Dmitry Selyutin [Wed, 16 Nov 2022 21:43:14 +0000 (00:43 +0300)]
power_insn: support zz/sz/dz specifiers

16 months agopower_enums: unify predicates classes
Dmitry Selyutin [Wed, 16 Nov 2022 19:47:40 +0000 (22:47 +0300)]
power_enums: unify predicates classes

16 months agopower_enums: deprecate CRType enum
Dmitry Selyutin [Wed, 16 Nov 2022 19:47:40 +0000 (22:47 +0300)]
power_enums: deprecate CRType enum

16 months agopower_enums: clean code
Dmitry Selyutin [Wed, 16 Nov 2022 19:47:40 +0000 (22:47 +0300)]
power_enums: clean code

16 months agopower_enums: support 8/16/32 in SVP64Width
Dmitry Selyutin [Wed, 16 Nov 2022 19:47:40 +0000 (22:47 +0300)]
power_enums: support 8/16/32 in SVP64Width

16 months agopower_insn: switch to SVP64SubVL enum
Dmitry Selyutin [Tue, 15 Nov 2022 20:56:13 +0000 (23:56 +0300)]
power_insn: switch to SVP64SubVL enum

16 months agopower_enums: support subvl conversions
Dmitry Selyutin [Tue, 15 Nov 2022 20:04:53 +0000 (23:04 +0300)]
power_enums: support subvl conversions

16 months agopower_insn: validate predicates masks
Dmitry Selyutin [Tue, 15 Nov 2022 19:57:36 +0000 (22:57 +0300)]
power_insn: validate predicates masks

16 months agopower_enums: support predicate type property
Dmitry Selyutin [Tue, 15 Nov 2022 19:41:13 +0000 (22:41 +0300)]
power_enums: support predicate type property

16 months agopower_insn: introduce validation stubs
Dmitry Selyutin [Tue, 15 Nov 2022 19:25:10 +0000 (22:25 +0300)]
power_insn: introduce validation stubs

16 months agopower_insn: support predicates masks
Dmitry Selyutin [Tue, 15 Nov 2022 15:49:23 +0000 (18:49 +0300)]
power_insn: support predicates masks

16 months agopower_insn: support failfirst/predresult
Dmitry Selyutin [Sun, 13 Nov 2022 21:04:09 +0000 (00:04 +0300)]
power_insn: support failfirst/predresult

16 months agopower_enums: support predicates
Dmitry Selyutin [Mon, 14 Nov 2022 19:17:43 +0000 (22:17 +0300)]
power_enums: support predicates

16 months agopower_insn: support subvector length specifiers
Dmitry Selyutin [Fri, 11 Nov 2022 19:24:00 +0000 (22:24 +0300)]
power_insn: support subvector length specifiers

16 months agopower_insn: support width specifier
Dmitry Selyutin [Fri, 11 Nov 2022 17:20:23 +0000 (20:20 +0300)]
power_insn: support width specifier

16 months agopower_insn: fix Rc record property
Dmitry Selyutin [Sun, 13 Nov 2022 21:10:47 +0000 (00:10 +0300)]
power_insn: fix Rc record property

16 months agopysvp64asm: allow insndb-based assembly
Dmitry Selyutin [Sun, 13 Nov 2022 21:07:01 +0000 (00:07 +0300)]
pysvp64asm: allow insndb-based assembly

16 months agopower_enums: clean CR definitions
Dmitry Selyutin [Sun, 13 Nov 2022 18:52:23 +0000 (21:52 +0300)]
power_enums: clean CR definitions

16 months agopower_fields: support field bits assignment
Dmitry Selyutin [Sun, 13 Nov 2022 14:26:06 +0000 (17:26 +0300)]
power_fields: support field bits assignment

16 months agopower_insn: support empty arguments
Dmitry Selyutin [Fri, 11 Nov 2022 17:05:08 +0000 (20:05 +0300)]
power_insn: support empty arguments

16 months agopower_insn: support CR operands disassembly
Dmitry Selyutin [Tue, 8 Nov 2022 20:26:12 +0000 (23:26 +0300)]
power_insn: support CR operands disassembly

16 months agopower_insn: fix opcodes generation (again)
Dmitry Selyutin [Tue, 8 Nov 2022 18:56:38 +0000 (21:56 +0300)]
power_insn: fix opcodes generation (again)

16 months agopower_insn: simplify spans and bytes conversion
Dmitry Selyutin [Mon, 7 Nov 2022 21:50:07 +0000 (00:50 +0300)]
power_insn: simplify spans and bytes conversion

16 months agopower_insn: fix operands iteration
Dmitry Selyutin [Mon, 7 Nov 2022 19:29:34 +0000 (22:29 +0300)]
power_insn: fix operands iteration

16 months agopower_insn: support CR operands assembly
Dmitry Selyutin [Mon, 7 Nov 2022 18:54:35 +0000 (21:54 +0300)]
power_insn: support CR operands assembly

16 months agopower_insn: refactor extandable operands assembly
Dmitry Selyutin [Mon, 7 Nov 2022 18:22:05 +0000 (21:22 +0300)]
power_insn: refactor extandable operands assembly

16 months agopower_insn: remap GPR and FPR operands
Dmitry Selyutin [Mon, 7 Nov 2022 18:16:23 +0000 (21:16 +0300)]
power_insn: remap GPR and FPR operands

16 months agopower_insn: unify GPR and FPR assembly
Dmitry Selyutin [Sun, 6 Nov 2022 17:06:41 +0000 (20:06 +0300)]
power_insn: unify GPR and FPR assembly

16 months agopower_insn: provide SVP64 assembly stub
Dmitry Selyutin [Sun, 6 Nov 2022 16:50:14 +0000 (19:50 +0300)]
power_insn: provide SVP64 assembly stub

16 months agopysvp64asm: deprecate custom_insn helper
Dmitry Selyutin [Sun, 6 Nov 2022 09:30:40 +0000 (12:30 +0300)]
pysvp64asm: deprecate custom_insn helper

16 months agopower_insn: discard overlaps for dynamic operands
Dmitry Selyutin [Sun, 6 Nov 2022 09:29:55 +0000 (12:29 +0300)]
power_insn: discard overlaps for dynamic operands

16 months agopower_insn: fix DOperandDX span
Dmitry Selyutin [Sun, 6 Nov 2022 09:29:55 +0000 (12:29 +0300)]
power_insn: fix DOperandDX span

16 months agopower_insn: fix XO static operand
Dmitry Selyutin [Sun, 6 Nov 2022 09:29:55 +0000 (12:29 +0300)]
power_insn: fix XO static operand

16 months agopower_insn: hide records repr from operands
Dmitry Selyutin [Sun, 6 Nov 2022 09:29:55 +0000 (12:29 +0300)]
power_insn: hide records repr from operands

16 months agopower_insn: sort opcodes by sections
Dmitry Selyutin [Sun, 6 Nov 2022 09:29:55 +0000 (12:29 +0300)]
power_insn: sort opcodes by sections

16 months agopower_insn: fix repr for opcode mask and value
Dmitry Selyutin [Sun, 6 Nov 2022 09:29:55 +0000 (12:29 +0300)]
power_insn: fix repr for opcode mask and value

16 months agopower_insn: support tables priorities
Dmitry Selyutin [Sun, 6 Nov 2022 09:29:55 +0000 (12:29 +0300)]
power_insn: support tables priorities