Re: Vector examples?

2021-10-23 Thread Phil Smith III
Thanks again to all who assisted. I got my example working. Biggest problems were lack of understanding of the basic architecture (128-bit registers that can be logically segmented into quadwords, doublewords, fullwords, halfwords, and/or bytes, depending on the function) and then, once I had

Re: Vector examples?

2021-10-21 Thread Bill Ogden
G'day Bill, Is there a typo in your program? I changed VL 1,VEC2 to VL 1,VEC1 and got the expected results. Peter - You are quite correct. My old fingers no longer hit the right keys! Bill Ogden

Re: Vector examples?

2021-10-20 Thread Peter Vels
G'day Bill, Is there a typo in your program? I changed VL 1,VEC2 to VL 1,VEC1 and got the expected results. Peter On Thu, 21 Oct 2021 at 03:46, Bill Ogden wrote: > Here is a really really really trivial vector program: > > VL 1,VEC2 > VL 2,VEC2 >

Re: Vector examples?

2021-10-20 Thread Phil Smith III
Shmuel wrote: >Is there a SET command that will cause CMS to set the bit? Doing it yourself seems fragile. No. CMS has no interest in vector stuff (confirmed with Endicott). I'm getting close: 1st input: 0xE900 2nd input: 0xC300 Result:0x4FFB That's doing

Re: Vector examples?

2021-10-20 Thread Bill Ogden
Here is a really really really trivial vector program: VL 1,VEC2 VL 2,VEC2 VA 3,1,2,2 VST 3,VSAVEIT LM1,4,VSAVEIT get answers in GPR 1,2,3,4 DC F'0' force abend to see the registers

Re: Vector examples?

2021-10-20 Thread Seymour J Metz
...@akphs.com] Sent: Tuesday, October 19, 2021 7:29 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Vector examples? Thanks to a bunch of bits of advice from here and elsewhere, I have it working-or at least producing a result; my cow-orker who needs the code is going to validate that the result seems right

Re: Vector examples?

2021-10-19 Thread Phil Smith III
Thanks to a bunch of bits of advice from here and elsewhere, I have it working-or at least producing a result; my cow-orker who needs the code is going to validate that the result seems right. The key was that in a virtual machine you have to turn vector processing on by setting the (grande)

Re: Vector examples?

2021-10-19 Thread Seymour J Metz
of Phil Smith III [li...@akphs.com] Sent: Tuesday, October 19, 2021 3:33 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Vector examples? Shmuel wrote: >Are you running releases of CP and CMS that support vector instructions? Yes. Same as the CP and CMS I'm running z/OS on at IBM Dallas (CP

Re: Vector examples?

2021-10-19 Thread Jim Mulder
For z/OS, the programming interface for determining if vectors are available is SYS1.MACLIB(CVT) CVTVEF EQU X'80' Vector Extension Facility @NUA This will be on when you are on at least z/OS 2.1, and this bit is on: BROWSESYS1.MACLIB(IHAFACL)

Re: Vector examples?

2021-10-19 Thread Paul Gilmartin
On Tue, 19 Oct 2021 14:43:38 -0500, Salva Carrasco wrote: > >I wrote this code to compute a Modulo 11 Check Digits for banking accounts (a >method widely use, al least in Europe): > "a Modulo 11 Check Digits". I'm haunted by the Pigeonhole Principle. -- gil

Re: Vector examples?

2021-10-19 Thread Phil Smith III
Charles Mills asked: > Did you try one of the samples in C or COBOL to see if you get the same >check? I have not. I can fix C or COBOL but cannot write them worth a . I'm an assembler geek from way back! OK, and PL/I and Rexx. The effort to figure out how to compile alone would take me

Re: Vector examples?

2021-10-19 Thread Charles Mills
: Vector examples? Shmuel wrote: >Are you running releases of CP and CMS that support vector instructions? Yes. Same as the CP and CMS I'm running z/OS on at IBM Dallas (CP 7.2, CMS 30). >How is the CMS virtual machine defined? ESA, same as our z/OS guest in Dallas. >Where is

Re: Vector examples?

2021-10-19 Thread Salva Carrasco
Phil, I wrote this code to compute a Modulo 11 Check Digits for banking accounts (a method widely use, al least in Europe): NCACCT,=XL16'0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F' VLV1,ACCT Load vectors: v1=account VLM V2,V3,COEF

Re: Vector examples?

2021-10-19 Thread Phil Smith III
Shmuel wrote: >Are you running releases of CP and CMS that support vector instructions? Yes. Same as the CP and CMS I'm running z/OS on at IBM Dallas (CP 7.2, CMS 30). >How is the CMS virtual machine defined? ESA, same as our z/OS guest in Dallas. >Where is the HLASM documentation for

Re: Vector examples?

2021-10-19 Thread Seymour J Metz
From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Phil Smith III [li...@akphs.com] Sent: Tuesday, October 19, 2021 10:40 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Vector examples? Shmuel, I'm testing under z/VM. Ah HAH: I finally grokked what you'd said before about

Re: Vector examples?

2021-10-19 Thread Phil Smith III
Dale, that's a great link-thanks!!! For anyone who might be interested, here's my wee program so far, with some whitespace removed for compactness. I've written the zPDT owner to ask if vector can be enabled-not that I think it'll Just Work then, but I'll be farther along. The idea is

Re: Vector examples?

2021-10-19 Thread Dale R. Smith
On Mon, 18 Oct 2021 17:58:06 -0400, Phil Smith III wrote: >I'm doing some crude experimentation with some vector instructions. I >haven't found any samples yet; this seems like it might should work: > > VL1,WORK1 > >where WORK1 is a doubleword-aligned value, but it program checks

Re: Vector examples?

2021-10-19 Thread Phil Smith III
Shmuel, I'm testing under z/VM. Ah HAH: I finally grokked what you'd said before about DXC, deciphered PofOp's somewhat opaque "When a data exception causes a program interruption, a data-exception code (DXC) is stored at location 147" to mean DECIMAL location 147 (why on earth would I want to

Re: Vector examples?

2021-10-19 Thread Roberto Halais
IN@LISTSERV.UA.EDU] On > Behalf Of Phil Smith III > Sent: Monday, October 18, 2021 10:43 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: Vector examples? > > Charles, thanks-I did find that, but that's pseudo-assembler and I can't > find equates for the vector registers anywhere (c

Re: Vector examples?

2021-10-19 Thread Charles Mills
-Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Phil Smith III Sent: Monday, October 18, 2021 10:43 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Vector examples? Charles, thanks-I did find that, but that's pseudo-assembler and I can't

Re: Vector examples?

2021-10-19 Thread Seymour J Metz
From: IBM Mainframe Discussion List on behalf of Phil Smith III Sent: Tuesday, October 19, 2021 1:43 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Vector examples? Charles, thanks-I did find that, but that's pseudo-assembler and I can't find equates for the vector

Re: Vector examples?

2021-10-18 Thread Phil Smith III
Charles, thanks-I did find that, but that's pseudo-assembler and I can't find equates for the vector registers anywhere (coulda missed them, of course). Shmuel, that was my first thought, but I'd expect to get a S0C1 not a S0C7, I *think*, per the doc. This is running on a zPDT, where I

Re: Vector examples?

2021-10-18 Thread allan winston
Checking over presentations I have previously downloaded, I found: A 3-part tutorial beginning here: http://z-assembler.blogspot.com/2019/10/vector-instructions-1.html Share presentation 16897 in SHARE Seattle 2015 by Jonathan Bradbury and Peter Relson titled "z13 Vector Extension Facility

Re: Vector examples?

2021-10-18 Thread Attila Fogarasi
There is only 1 reason for data exception, and that is that you are running on hardware which has the vector facility but vector is not enabled. It is operation exception if running on older hardware. Most likely you are running back-level z/OS ... you must be on the right level of z/OS with z15

Re: Vector examples?

2021-10-18 Thread Seymour J Metz
What is the assembled instruction? Is it DXC FE? Are vector instructions enabled? -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Phil Smith III [li...@akphs.com]

Re: Vector examples?

2021-10-18 Thread David Spiegel
Hi Charles, The link did not work for me. Regards, David On 2021-10-18 20:21, Charles Mills wrote: Is this useful?

Re: Vector examples?

2021-10-18 Thread Charles Mills
Is this useful? https://www.ibm.com/support/pages/sites/default/files/inline-files/$FILE/vec tor_optimization.pdf The second example has a VL in it. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Phil Smith III Sent:

Re: Vector examples?

2021-10-18 Thread Peter Vels
The COBOL compiler will generate vector instructions if you compile using the ARCH(12) and LIST options. Peter On Tue, 19 Oct 2021 at 09:07, Charles Mills wrote: > Did Ed Jaffe do a SHARE presentation? I have this vague recollection that > he > did. > > Charles > > > -Original Message-

Re: Vector examples?

2021-10-18 Thread Charles Mills
Did Ed Jaffe do a SHARE presentation? I have this vague recollection that he did. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Phil Smith III Sent: Monday, October 18, 2021 2:58 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: