On 03.08.23 16:03, Niels Möller wrote:
> Stefan Liebler <s...@linux.ibm.com> writes:
> 
>> Unfortunately not only the extended mnemonics are not available with z13,
>> but also vpopct M3=1-3 is reserved. Thus you'll get an illegal-instruction
>> if run on z13 as vector enhancement facility 1 (introduced with z14) is
>> not available.
> 
> Is there some pseudo op that can be used to tell the assembler that the
> file targets z13, and get errors at compile time for unavailable instructions?
> 
> Regards,
> /Niels
> 
Of course the gcc --march=XYZ flag is passed to the assembler, but there
is also the .machine XYZ. You could use it like this:
.machine push
.machine "z13"
# z13-instruction
.machine pop

But in this case, it does not cause an error as on z13 vpopct with M3
flag is available. Unfortunately the assembler does not check the value
of M3-flag. Using vpopctg with --march=z13 will cause an error.
_______________________________________________
gmp-devel mailing list
gmp-devel@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-devel

Reply via email to