codegen: use the and instruction when doing zero-extend
[ajla.git] / asm-s390.inc
blob8e51638a297bc9c86e2df352e353bfb11b872c58
1 /*
2  * Copyright (C) 2024 Mikulas Patocka
3  *
4  * This file is part of Ajla.
5  *
6  * Ajla is free software: you can redistribute it and/or modify it under the
7  * terms of the GNU General Public License as published by the Free Software
8  * Foundation, either version 3 of the License, or (at your option) any later
9  * version.
10  *
11  * Ajla is distributed in the hope that it will be useful, but WITHOUT ANY
12  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13  * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along with
16  * Ajla. If not, see <https://www.gnu.org/licenses/>.
17  */
19 #define feature_name                    z
20 #define static_test_z                   __zarch__
21 #define dynamic_test                    test_facility(2)
22 #include "asm-1.inc"
24 #define feature_name                    long_displacement
25 #define static_test_long_displacement   (__ARCH__ >= 6)
26 #define dynamic_test                    test_facility(18)
27 #include "asm-1.inc"
29 #define feature_name                    extended_imm
30 #define static_test_extended_imm        (__ARCH__ >= 7)
31 #define dynamic_test                    test_facility(21)
32 #include "asm-1.inc"
34 #define feature_name                    misc_45
35 #define static_test_misc_45             (__ARCH__ >= 9)
36 #define dynamic_test                    test_facility(45)
37 #include "asm-1.inc"
39 #define feature_name                    misc_insn_ext_2
40 #define static_test_misc_insn_ext_2     (__ARCH__ >= 12)
41 #define dynamic_test                    test_facility(58)
42 #include "asm-1.inc"
44 #define feature_name                    misc_insn_ext_3
45 #define static_test_misc_insn_ext_3     (__ARCH__ >= 13)
46 #define dynamic_test                    test_facility(61)
47 #include "asm-1.inc"