annotate runtime/syntax/ia64.vim @ 24760:ca0f983f08cf v8.2.2918

patch 8.2.2918: builtin function can be shadowed by global variable Commit: https://github.com/vim/vim/commit/3d9c4eefe656ee8bf58c0496a48bd56bac180056 Author: Bram Moolenaar <Bram@vim.org> Date: Mon May 31 22:15:26 2021 +0200 patch 8.2.2918: builtin function can be shadowed by global variable Problem: Builtin function can be shadowed by global variable. Solution: Check for builtin function before variable. (Yasuhiro Matsumoto, closes #8302)
author Bram Moolenaar <Bram@vim.org>
date Mon, 31 May 2021 22:30:02 +0200
parents 17c4178f26ea
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
22565
17c4178f26ea Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
2 " Language: IA-64 (Itanium) assembly language
17c4178f26ea Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
3 " Maintainer: Doug Kearns <dougkearns@gmail.com>
17c4178f26ea Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
4 " Previous Maintainer: Parth Malwankar <pmalwankar@yahoo.com>
17c4178f26ea Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
5 " File Version: 0.8
17c4178f26ea Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
6 " Last Change: 2020 Sep 25
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1121
diff changeset
8 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1121
diff changeset
9 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 "ignore case for assembly
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn sync minlines=5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " Read the MASM syntax to start with
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " This is needed as both IA-64 as well as IA-32 instructions are supported
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 source <sfile>:p:h/masm.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
22565
17c4178f26ea Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
23 " Identifier Keyword characters (defines \k)
17c4178f26ea Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
24 syn iskeyword @,48-57,#,$,.,:,?,@-@,_,~
17c4178f26ea Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
25
17c4178f26ea Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
26 syn region ia64Comment start="//" end="$" contains=ia64Todo
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn region ia64Comment start="/\*" end="\*/" contains=ia64Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match ia64Identifier "[a-zA-Z_$][a-zA-Z0-9_$]*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match ia64Directive "\.[a-zA-Z_$][a-zA-Z_$.]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match ia64Label "[a-zA-Z_$.][a-zA-Z0-9_$.]*\s\=:\>"he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match ia64Label "[a-zA-Z_$.][a-zA-Z0-9_$.]*\s\=::\>"he=e-2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match ia64Label "[a-zA-Z_$.][a-zA-Z0-9_$.]*\s\=#\>"he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn region ia64string start=+L\="+ skip=+\\\\\|\\"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match ia64Octal "0[0-7_]*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match ia64Binary "0[bB][01_]*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match ia64Hex "0[xX][0-9a-fA-F_]*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match ia64Decimal "[1-9_][0-9_]*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match ia64Float "[0-9_]*\.[0-9_]*\([eE][+-]\=[0-9_]*\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 "simple instructions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword ia64opcode add adds addl addp4 alloc and andcm cover epc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword ia64opcode fabs fand fandcm fc flushrs fneg fnegabs for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword ia64opcode fpabs fpack fpneg fpnegabs fselect fand fabdcm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword ia64opcode fc fwb fxor loadrs movl mux1 mux2 or padd4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword ia64opcode pavgsub1 pavgsub2 popcnt psad1 pshl2 pshl4 pshladd2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword ia64opcode pshradd2 psub4 rfi rsm rum shl shladd shladdp4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword ia64opcode shrp ssm sub sum sync.i tak thash
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword ia64opcode tpa ttag xor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 "put to override these being recognized as floats. They are orignally from masm.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 "put here to avoid confusion with float
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn match ia64Directive "\.186"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn match ia64Directive "\.286"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn match ia64Directive "\.286c"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn match ia64Directive "\.286p"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn match ia64Directive "\.287"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn match ia64Directive "\.386"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn match ia64Directive "\.386c"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn match ia64Directive "\.386p"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn match ia64Directive "\.387"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn match ia64Directive "\.486"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn match ia64Directive "\.486c"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn match ia64Directive "\.486p"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn match ia64Directive "\.8086"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn match ia64Directive "\.8087"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 "delimiters
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn match ia64delimiter ";;"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 "operators
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn match ia64operators "[\[\]()#,]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn match ia64operators "\(+\|-\|=\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 "TODO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn match ia64Todo "\(TODO\|XXX\|FIXME\|NOTE\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 "What follows is a long list of regular expressions for parsing the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 "ia64 instructions that use many completers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 "br
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn match ia64opcode "br\(\(\.\(cond\|call\|ret\|ia\|cloop\|ctop\|cexit\|wtop\|wexit\)\)\=\(\.\(spnt\|dpnt\|sptk\|dptk\)\)\=\(\.few\|\.many\)\=\(\.clr\)\=\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 "break
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 syn match ia64opcode "break\(\.[ibmfx]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 "brp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn match ia64opcode "brp\(\.\(sptk\|dptk\|loop\|exit\)\)\(\.imp\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 syn match ia64opcode "brp\.ret\(\.\(sptk\|dptk\)\)\{1}\(\.imp\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 "bsw
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 syn match ia64opcode "bsw\.[01]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 "chk
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 syn match ia64opcode "chk\.\(s\(\.[im]\)\=\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syn match ia64opcode "chk\.a\.\(clr\|nc\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 "clrrrb
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 syn match ia64opcode "clrrrb\(\.pr\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 "cmp/cmp4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 syn match ia64opcode "cmp4\=\.\(eq\|ne\|l[te]\|g[te]\|[lg]tu\|[lg]eu\)\(\.unc\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syn match ia64opcode "cmp4\=\.\(eq\|[lgn]e\|[lg]t\)\.\(\(or\(\.andcm\|cm\)\=\)\|\(and\(\(\.or\)\=cm\)\=\)\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 "cmpxchg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 syn match ia64opcode "cmpxchg[1248]\.\(acq\|rel\)\(\.nt1\|\.nta\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 "czx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 syn match ia64opcode "czx[12]\.[lr]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 "dep
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 syn match ia64opcode "dep\(\.z\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 "extr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 syn match ia64opcode "extr\(\.u\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 "fadd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 syn match ia64opcode "fadd\(\.[sd]\)\=\(\.s[0-3]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 "famax/famin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 syn match ia64opcode "fa\(max\|min\)\(\.s[0-3]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 "fchkf/fmax/fmin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 syn match ia64opcode "f\(chkf\|max\|min\)\(\.s[0-3]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 "fclass
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 syn match ia64opcode "fclass\(\.n\=m\)\(\.unc\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 "fclrf/fpamax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 syn match ia64opcode "f\(clrf\|pamax\|pamin\)\(\.s[0-3]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 "fcmp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 syn match ia64opcode "fcmp\.\(n\=[lg][te]\|n\=eq\|\(un\)\=ord\)\(\.unc\)\=\(\.s[0-3]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 "fcvt/fcvt.xf/fcvt.xuf.pc.sf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 syn match ia64opcode "fcvt\.\(\(fxu\=\(\.trunc\)\=\(\.s[0-3]\)\=\)\|\(xf\|xuf\(\.[sd]\)\=\(\.s[0-3]\)\=\)\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 "fetchadd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 syn match ia64opcode "fetchadd[48]\.\(acq\|rel\)\(\.nt1\|\.nta\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 "fma/fmpy/fms
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 syn match ia64opcode "fm\([as]\|py\)\(\.[sd]\)\=\(\.s[0-3]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 "fmerge/fpmerge
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 syn match ia64opcode "fp\=merge\.\(ns\|se\=\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 "fmix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 syn match ia64opcode "fmix\.\(lr\|[lr]\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 "fnma/fnorm/fnmpy
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 syn match ia64opcode "fn\(ma\|mpy\|orm\)\(\.[sd]\)\=\(\.s[0-3]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 "fpcmp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 syn match ia64opcode "fpcmp\.\(n\=[lg][te]\|n\=eq\|\(un\)\=ord\)\(\.s[0-3]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 "fpcvt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 syn match ia64opcode "fpcvt\.fxu\=\(\(\.trunc\)\=\(\.s[0-3]\)\=\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 "fpma/fpmax/fpmin/fpmpy/fpms/fpnma/fpnmpy/fprcpa/fpsqrta
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 syn match ia64opcode "fp\(max\=\|min\|n\=mpy\|ms\|nma\|rcpa\|sqrta\)\(\.s[0-3]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 "frcpa/frsqrta
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 syn match ia64opcode "fr\(cpa\|sqrta\)\(\.s[0-3]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 "fsetc/famin/fchkf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 syn match ia64opcode "f\(setc\|amin\|chkf\)\(\.s[0-3]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 "fsub
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 syn match ia64opcode "fsub\(\.[sd]\)\=\(\.s[0-3]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 "fswap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 syn match ia64opcode "fswap\(\.n[lr]\=\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 "fsxt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 syn match ia64opcode "fsxt\.[lr]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 "getf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 syn match ia64opcode "getf\.\([sd]\|exp\|sig\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 "invala
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 syn match ia64opcode "invala\(\.[ae]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 "itc/itr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 syn match ia64opcode "it[cr]\.[id]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 "ld
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 syn match ia64opcode "ld[1248]\>\|ld[1248]\(\.\(sa\=\|a\|c\.\(nc\|clr\(\.acq\)\=\)\|acq\|bias\)\)\=\(\.nt[1a]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 syn match ia64opcode "ld8\.fill\(\.nt[1a]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 "ldf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 syn match ia64opcode "ldf[sde8]\(\(\.\(sa\=\|a\|c\.\(nc\|clr\)\)\)\=\(\.nt[1a]\)\=\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 syn match ia64opcode "ldf\.fill\(\.nt[1a]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 "ldfp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 syn match ia64opcode "ldfp[sd8]\(\(\.\(sa\=\|a\|c\.\(nc\|clr\)\)\)\=\(\.nt[1a]\)\=\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 "lfetch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 syn match ia64opcode "lfetch\(\.fault\(\.excl\)\=\|\.excl\)\=\(\.nt[12a]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 "mf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 syn match ia64opcode "mf\(\.a\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 "mix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 syn match ia64opcode "mix[124]\.[lr]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 "mov
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 syn match ia64opcode "mov\(\.[im]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 syn match ia64opcode "mov\(\.ret\)\=\(\(\.sptk\|\.dptk\)\=\(\.imp\)\=\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 "nop
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 syn match ia64opcode "nop\(\.[ibmfx]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 "pack
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 syn match ia64opcode "pack\(2\.[su]ss\|4\.sss\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 "padd //padd4 added to keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 syn match ia64opcode "padd[12]\(\.\(sss\|uus\|uuu\)\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 "pavg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 syn match ia64opcode "pavg[12]\(\.raz\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 "pcmp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 syn match ia64opcode "pcmp[124]\.\(eq\|gt\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 "pmax/pmin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 syn match ia64opcode "pm\(ax\|in\)\(\(1\.u\)\|2\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 "pmpy
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 syn match ia64opcode "pmpy2\.[rl]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 "pmpyshr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 syn match ia64opcode "pmpyshr2\(\.u\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 "probe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 syn match ia64opcode "probe\.[rw]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 syn match ia64opcode "probe\.\(\(r\|w\|rw\)\.fault\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 "pshr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 syn match ia64opcode "pshr[24]\(\.u\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 "psub
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 syn match ia64opcode "psub[12]\(\.\(sss\|uu[su]\)\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 "ptc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 syn match ia64opcode "ptc\.\(l\|e\|ga\=\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 "ptr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 syn match ia64opcode "ptr\.\(d\|i\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 "setf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 syn match ia64opcode "setf\.\(s\|d\|exp\|sig\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 "shr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 syn match ia64opcode "shr\(\.u\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 "srlz
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 syn match ia64opcode "srlz\(\.[id]\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 "st
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 syn match ia64opcode "st[1248]\(\.rel\)\=\(\.nta\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 syn match ia64opcode "st8\.spill\(\.nta\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 "stf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 syn match ia64opcode "stf[1248]\(\.nta\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 syn match ia64opcode "stf\.spill\(\.nta\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 "sxt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 syn match ia64opcode "sxt[124]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 "tbit/tnat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 syn match ia64opcode "t\(bit\|nat\)\(\.nz\|\.z\)\=\(\.\(unc\|or\(\.andcm\|cm\)\=\|and\(\.orcm\|cm\)\=\)\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 "unpack
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 syn match ia64opcode "unpack[124]\.[lh]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 "xchq
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 syn match ia64opcode "xchg[1248]\(\.nt[1a]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 "xma/xmpy
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 syn match ia64opcode "xm\(a\|py\)\.[lh]u\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 "zxt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 syn match ia64opcode "zxt[124]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 "The regex for different ia64 registers are given below
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 "limits the rXXX and fXXX and cr suffix in the range 0-127
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 syn match ia64registers "\([fr]\|cr\)\([0-9]\|[1-9][0-9]\|1[0-1][0-9]\|12[0-7]\)\{1}\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 "branch ia64registers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 syn match ia64registers "b[0-7]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 "predicate ia64registers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 syn match ia64registers "p\([0-9]\|[1-5][0-9]\|6[0-3]\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 "application ia64registers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 syn match ia64registers "ar\.\(fpsr\|mat\|unat\|rnat\|pfs\|bsp\|bspstore\|rsc\|lc\|ec\|ccv\|itc\|k[0-7]\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 "ia32 AR's
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 syn match ia64registers "ar\.\(eflag\|fcr\|csd\|ssd\|cflg\|fsr\|fir\|fdr\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236 "sp/gp/pr/pr.rot/rp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237 syn keyword ia64registers sp gp pr pr.rot rp ip tp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 "in/out/local
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 syn match ia64registers "\(in\|out\|loc\)\([0-9]\|[1-8][0-9]\|9[0-5]\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240 "argument ia64registers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241 syn match ia64registers "farg[0-7]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 "return value ia64registers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243 syn match ia64registers "fret[0-7]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 "psr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 syn match ia64registers "psr\(\.\(l\|um\)\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 "cr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 syn match ia64registers "cr\.\(dcr\|itm\|iva\|pta\|ipsr\|isr\|ifa\|iip\|itir\|iipa\|ifs\|iim\|iha\|lid\|ivr\|tpr\|eoi\|irr[0-3]\|itv\|pmv\|lrr[01]\|cmcv\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 "Indirect registers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 syn match ia64registers "\(cpuid\|dbr\|ibr\|pkr\|pmc\|pmd\|rr\|itr\|dtr\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 "MUX permutations for 8-bit elements
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 syn match ia64registers "\(@rev\|@mix\|@shuf\|@alt\|@brcst\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 "floating point classes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 syn match ia64registers "\(@nat\|@qnan\|@snan\|@pos\|@neg\|@zero\|@unorm\|@norm\|@inf\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 "link relocation operators
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 syn match ia64registers "\(@\(\(\(gp\|sec\|seg\|image\)rel\)\|ltoff\|fptr\|ptloff\|ltv\|section\)\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 "Data allocation syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 syn match ia64data "data[1248]\(\(\(\.ua\)\=\(\.msb\|\.lsb\)\=\)\|\(\(\.msb\|\.lsb\)\=\(\.ua\)\=\)\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 syn match ia64data "real\([48]\|1[06]\)\(\(\(\.ua\)\=\(\.msb\|\.lsb\)\=\)\|\(\(\.msb\|\.lsb\)\=\(\.ua\)\=\)\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 syn match ia64data "stringz\=\(\(\(\.ua\)\=\(\.msb\|\.lsb\)\=\)\|\(\(\.msb\|\.lsb\)\=\(\.ua\)\=\)\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1121
diff changeset
263 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1121
diff changeset
265 "put masm groups with our groups
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
266 hi def link masmOperator ia64operator
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
267 hi def link masmDirective ia64Directive
22565
17c4178f26ea Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
268 hi def link masmOpcode ia64Opcode
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
269 hi def link masmIdentifier ia64Identifier
22565
17c4178f26ea Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
270 hi def link masmFloat ia64Float
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1121
diff changeset
272 "ia64 specific stuff
22565
17c4178f26ea Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
273 hi def link ia64Label Define
17c4178f26ea Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
274 hi def link ia64Comment Comment
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
275 hi def link ia64Directive Type
22565
17c4178f26ea Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
276 hi def link ia64opcode Statement
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
277 hi def link ia64registers Operator
22565
17c4178f26ea Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
278 hi def link ia64string String
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
279 hi def link ia64Hex Number
22565
17c4178f26ea Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
280 hi def link ia64Binary Number
17c4178f26ea Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
281 hi def link ia64Octal Number
17c4178f26ea Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
282 hi def link ia64Float Float
17c4178f26ea Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
283 hi def link ia64Decimal Number
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
284 hi def link ia64Identifier Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
285 hi def link ia64data Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
286 hi def link ia64delimiter Delimiter
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
287 hi def link ia64operator Operator
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
288 hi def link ia64Todo Todo
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291 let b:current_syntax = "ia64"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
292
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
293 " vim: ts=8 sw=2