From c7b41ac1f363b48a241252f1aacc1603e60cf95e Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 20 Jun 2022 12:03:30 +0100 Subject: [PATCH] add vector demo set inc first --- openpower/sv/sif.py | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 openpower/sv/sif.py diff --git a/openpower/sv/sif.py b/openpower/sv/sif.py new file mode 100644 index 000000000..9f2455f2e --- /dev/null +++ b/openpower/sv/sif.py @@ -0,0 +1,34 @@ +def sif(RA, mask=None): + RT = RA if mask is not None else 0 + i = 0 + # start setting if no predicate or if 1st predicate bit set + setting_mode = mask is None + while i < 16: + bit = 1<