diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-08-25 10:40:19 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-08-29 11:04:59 +0200 |
commit | 0eab11c7e0d30de14a15ccd8269eef238321a8e1 (patch) | |
tree | e028c7fa80a9f978117f5afb26f66be5bdaf2d36 /arch/s390/include/asm/eadm.h | |
parent | 67f03de5f0ad6b4b0481bb43e4a819d1a441900b (diff) |
s390/vx: allow to include vx-insn.h with .include
To make the vx-insn.h more versatile avoid cpp preprocessor macros
and allow to use plain numbers for vector and general purpose register
operands. With that you can emit an .include from a C file into the
assembler text and then use the vx-insn macros in inline assemblies.
For example:
asm (".include \"asm/vx-insn.h\"");
static inline void xor_vec(int x, int y, int z)
{
asm volatile("VX %0,%1,%2"
: : "i" (x), "i" (y), "i" (z));
}
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/eadm.h')
0 files changed, 0 insertions, 0 deletions