diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-08-25 11:40:19 +0300 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-08-29 12:04:59 +0300 |
commit | 0eab11c7e0d30de14a15ccd8269eef238321a8e1 (patch) | |
tree | e028c7fa80a9f978117f5afb26f66be5bdaf2d36 /arch/s390/kernel/fpu.c | |
parent | 67f03de5f0ad6b4b0481bb43e4a819d1a441900b (diff) | |
download | linux-0eab11c7e0d30de14a15ccd8269eef238321a8e1.tar.xz |
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/kernel/fpu.c')
0 files changed, 0 insertions, 0 deletions