annotate runtime/syntax/ia64.vim @ 9799:1a0aaf938854

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