Zephyr API 3.6.99
Loading...
Searching...
No Matches
asm-macro-64-bit-mwdt.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: Apache-2.0 */
2/*
3 * Copyright (C) 2022 Synopsys, Inc. (www.synopsys.com)
4 *
5 * ALU/Memory instructions pseudo-mnemonics for ARC64 ISA
6 */
7
8.macro MOVR, d, s
9 movl\&$suffix d, s
10.endm
11
12
13.macro LDR, d, s, off
14 .if $narg == 2
15 ldl\&$suffix d, [s]
16 .else
17 ldl\&$suffix d, [s, off]
18 .endif
19.endm
20
21.macro STR, d, s, off
22 .if $narg == 2
23 stl\&$suffix d, [s]
24 .else
25 stl\&$suffix d, [s, off]
26 .endif
27.endm
28
29
30.macro PUSHR, r
31 pushl r
32.endm
33
34.macro POPR, r
35 popl r
36.endm
37
38.macro LRR, d, aux
39 lrl d, aux
40.endm
41
42.macro SRR, d, aux
43 srl d, aux
44.endm
45
46
47.macro ADDR, d, s, v
48 addl\&$suffix d, s, v
49.endm
50
51.macro ADD2R, d, s, v
52 add2l\&$suffix d, s, v
53.endm
54
55.macro ADD3R, d, s, v
56 add3l d, s, v
57.endm
58
59.macro SUBR, d, s, v
60 subl d, s, v
61.endm
62
63.macro BMSKNR, d, s, v
64 bmsknl d, s, v
65.endm
66
67.macro LSRR, d, s, v
68 lsrl d, s, v
69.endm
70
71.macro ASLR, d, s, v
72 asll d, s, v
73.endm
74
75.macro ANDR, d, s, v
76 andl d, s, v
77.endm
78
79.macro ORR, d, s, v
80 orl d, s, v
81.endm
82
83.macro BRR, d, s, lbl
84 br\&$suffix\l d, s, lbl
85.endm
86
87.macro BREQR, d, s, lbl
88 breql d, s, lbl
89.endm
90
91.macro CMPR, op1, op2
92 cmpl op1, op2
93.endm
irp nz macro MOVR cc s mov cc s endm endr irp aw macro LDR aa off
Definition asm-macro-32-bit-gnu.h:17
workaround assembler barfing for ST r
Definition asm-macro-32-bit-gnu.h:24
macro s movl &$suffix s endm macro off if else ldl &$suffix endif endm macro off if else stl &$suffix endif endm macro r pushl r endm macro r popl r endm macro aux lrl aux endm macro aux srl aux endm macro v addl &$suffix v endm macro v add2l &$suffix v endm macro v add3l v endm macro v subl v endm macro v bmsknl v endm macro v lsrl v endm macro v asll v endm macro v andl v endm macro v orl v endm macro lbl br &$suffix l lbl endm macro lbl breql lbl endm macro CMPR
Definition asm-macro-64-bit-mwdt.h:91
macro d
Definition asm-macro-64-bit-mwdt.h:8
macro s movl &$suffix s endm macro off if else ldl &$suffix endif endm macro off if else stl &$suffix endif endm macro r pushl r endm macro r popl r endm macro aux lrl aux endm macro aux srl aux endm macro v addl &$suffix v endm macro v add2l &$suffix v endm macro v add3l v endm macro v subl v endm macro v bmsknl v endm macro v lsrl v endm macro v asll v endm macro v andl v endm macro v orl v endm macro lbl br &$suffix l lbl endm macro lbl breql lbl endm macro op1
Definition asm-macro-64-bit-mwdt.h:91
macro s movl &$suffix s endm macro off if else ldl &$suffix endif endm macro off if else stl &$suffix endif endm macro r pushl r endm macro r popl r endm macro aux lrl aux endm macro aux srl aux endm macro v addl &$suffix v endm macro v add2l &$suffix v endm macro v add3l v endm macro v subl v endm macro v bmsknl v endm macro v lsrl v endm macro ASLR
Definition asm-macro-64-bit-mwdt.h:71
macro s movl &$suffix s endm macro LDR
Definition asm-macro-64-bit-mwdt.h:13
macro MOVR
Definition asm-macro-64-bit-mwdt.h:8
macro s movl &$suffix s endm macro off if else ldl &$suffix endif endm macro off if else stl &$suffix endif endm macro r pushl r endm macro r popl r endm macro aux lrl aux endm macro aux srl aux endm macro v addl &$suffix v endm macro v add2l &$suffix v endm macro v add3l v endm macro v subl v endm macro v bmsknl v endm macro v lsrl v endm macro v asll v endm macro v andl v endm macro v orl v endm macro BRR
Definition asm-macro-64-bit-mwdt.h:83
macro s movl &$suffix s endm macro off if else ldl &$suffix endif endm macro off if else stl &$suffix endif endm macro r pushl r endm macro r popl r endm macro aux lrl aux endm macro SRR
Definition asm-macro-64-bit-mwdt.h:42
macro s movl &$suffix s endm macro off if else ldl &$suffix endif endm macro off if else stl &$suffix endif endm macro r pushl r endm macro r popl r endm macro aux lrl aux endm macro aux srl aux endm macro v addl &$suffix v endm macro v add2l &$suffix v endm macro v add3l v endm macro v subl v endm macro v bmsknl v endm macro v lsrl v endm macro v asll v endm macro ANDR
Definition asm-macro-64-bit-mwdt.h:75
macro s movl &$suffix s endm macro off if else ldl &$suffix endif endm macro off if else stl &$suffix endif endm macro PUSHR
Definition asm-macro-64-bit-mwdt.h:30
macro s movl &$suffix s endm macro s
Definition asm-macro-64-bit-mwdt.h:13
macro s movl &$suffix s endm macro off if else ldl &$suffix endif endm macro off if else stl &$suffix endif endm macro r pushl r endm macro r popl r endm macro LRR
Definition asm-macro-64-bit-mwdt.h:38
macro s movl &$suffix s endm macro off if else ldl &$suffix endif endm macro off if else stl &$suffix endif endm macro r pushl r endm macro r popl r endm macro aux lrl aux endm macro aux srl aux endm macro v addl &$suffix v endm macro v add2l &$suffix v endm macro v add3l v endm macro v subl v endm macro BMSKNR
Definition asm-macro-64-bit-mwdt.h:63
macro s movl &$suffix s endm macro off if else ldl &$suffix endif endm macro off if else stl &$suffix endif endm macro r pushl r endm macro r popl r endm macro aux lrl aux endm macro aux srl aux endm macro v addl &$suffix v endm macro v add2l &$suffix v endm macro v add3l v endm macro SUBR
Definition asm-macro-64-bit-mwdt.h:59
macro s movl &$suffix s endm macro off if else ldl &$suffix endif endm macro off if else stl &$suffix endif endm macro r pushl r endm macro r popl r endm macro aux lrl aux endm macro aux srl aux endm macro v addl &$suffix v endm macro ADD2R
Definition asm-macro-64-bit-mwdt.h:51
macro s movl &$suffix s endm macro off if else ldl &$suffix endif endm macro off if else stl &$suffix endif endm macro r pushl r endm macro r popl r endm macro aux lrl aux endm macro aux srl aux endm macro ADDR
Definition asm-macro-64-bit-mwdt.h:47
macro s movl &$suffix s endm macro off if $narg
Definition asm-macro-64-bit-mwdt.h:14
macro s movl &$suffix s endm macro off if else ldl &$suffix endif endm macro off if else stl &$suffix endif endm macro r pushl r endm macro r popl r endm macro aux lrl aux endm macro aux srl aux endm macro v addl &$suffix v endm macro v add2l &$suffix v endm macro ADD3R
Definition asm-macro-64-bit-mwdt.h:55
macro s movl &$suffix s endm macro off if else ldl &$suffix endif endm macro off if else stl &$suffix endif endm macro r pushl r endm macro POPR
Definition asm-macro-64-bit-mwdt.h:34
macro s movl &$suffix s endm macro off if else ldl &$suffix endif endm macro STR
Definition asm-macro-64-bit-mwdt.h:21
macro s movl &$suffix s endm macro off if else ldl &$suffix endif endm macro off if else stl &$suffix endif endm macro r pushl r endm macro r popl r endm macro aux lrl aux endm macro aux srl aux endm macro v addl &$suffix v endm macro v add2l &$suffix v endm macro v add3l v endm macro v subl v endm macro v bmsknl v endm macro LSRR
Definition asm-macro-64-bit-mwdt.h:67
macro s movl &$suffix s endm macro off if else ldl &$suffix endif endm macro off if else stl &$suffix endif endm macro r pushl r endm macro r popl r endm macro aux lrl aux endm macro aux srl aux endm macro v addl &$suffix v endm macro v add2l &$suffix v endm macro v add3l v endm macro v subl v endm macro v bmsknl v endm macro v lsrl v endm macro v asll v endm macro v andl v endm macro ORR
Definition asm-macro-64-bit-mwdt.h:79
macro s movl &$suffix s endm macro off if else ldl &$suffix endif endm macro off if else stl &$suffix endif endm macro r pushl r endm macro r popl r endm macro aux lrl aux endm macro aux srl aux endm macro v addl &$suffix v endm macro v add2l &$suffix v endm macro v add3l v endm macro v subl v endm macro v bmsknl v endm macro v lsrl v endm macro v asll v endm macro v andl v endm macro v orl v endm macro lbl br &$suffix l lbl endm macro BREQR
Definition asm-macro-64-bit-mwdt.h:87