@@ -52,31 +52,31 @@ def ic_aaddr(self, t1, t2) -> None:
5252 self .emit ("aaddr" , t1 , t2 )
5353
5454 def ic_abs (self , type_ : TYPE | sym .BASICTYPE , t1 , t2 ) -> None :
55- self .emit ("abs" + self .TSUFFIX (type_ ), t1 , t2 )
55+ self .emit (f "abs{ self .TSUFFIX (type_ )} " , t1 , t2 )
5656
5757 def ic_add (self , type_ : TYPE | sym .BASICTYPE , t1 , t2 , t3 ) -> None :
58- self .emit ("add" + self .TSUFFIX (type_ ), t1 , t2 , t3 )
58+ self .emit (f "add{ self .TSUFFIX (type_ )} " , t1 , t2 , t3 )
5959
6060 def ic_aload (self , type_ : TYPE | sym .BASICTYPE , t1 , mangle : str ) -> None :
61- self .emit ("aload" + self .TSUFFIX (type_ ), t1 , mangle )
61+ self .emit (f "aload{ self .TSUFFIX (type_ )} " , t1 , mangle )
6262
6363 def ic_and (self , type_ : TYPE | sym .BASICTYPE , t , t1 , t2 ) -> None :
6464 self .emit (f"and{ self ._no_bool (type_ )} " , t , t1 , t2 )
6565
6666 def ic_astore (self , type_ : TYPE | sym .BASICTYPE , addr : str , t ) -> None :
67- self .emit ("astore" + self .TSUFFIX (type_ ), addr , t )
67+ self .emit (f "astore{ self .TSUFFIX (type_ )} " , addr , t )
6868
6969 def ic_band (self , type_ : TYPE | sym .BASICTYPE , t , t1 , t2 ) -> None :
70- self .emit ("band" + self .TSUFFIX (type_ ), t , t1 , t2 )
70+ self .emit (f "band{ self .TSUFFIX (type_ )} " , t , t1 , t2 )
7171
7272 def ic_bnot (self , type_ : TYPE | sym .BASICTYPE , t1 , t2 ) -> None :
73- self .emit ("bnot" + self .TSUFFIX (type_ ), t1 , t2 )
73+ self .emit (f "bnot{ self .TSUFFIX (type_ )} " , t1 , t2 )
7474
7575 def ic_bor (self , type_ : TYPE | sym .BASICTYPE , t , t1 , t2 ) -> None :
76- self .emit ("bor" + self .TSUFFIX (type_ ), t , t1 , t2 )
76+ self .emit (f "bor{ self .TSUFFIX (type_ )} " , t , t1 , t2 )
7777
7878 def ic_bxor (self , type_ : TYPE | sym .BASICTYPE , t , t1 , t2 ) -> None :
79- self .emit ("bxor" + self .TSUFFIX (type_ ), t , t1 , t2 )
79+ self .emit (f "bxor{ self .TSUFFIX (type_ )} " , t , t1 , t2 )
8080
8181 def ic_call (self , label : str , num : int ) -> None :
8282 self .emit ("call" , label , num )
@@ -91,7 +91,7 @@ def ic_deflabel(self, label: str, t) -> None:
9191 self .emit ("deflabel" , label , t )
9292
9393 def ic_div (self , type_ : TYPE | sym .BASICTYPE , t , t1 , t2 ) -> None :
94- self .emit ("div" + self .TSUFFIX (type_ ), t , t1 , t2 )
94+ self .emit (f "div{ self .TSUFFIX (type_ )} " , t , t1 , t2 )
9595
9696 def ic_end (self , t ) -> None :
9797 self .emit ("end" , t )
@@ -100,7 +100,7 @@ def ic_enter(self, arg) -> None:
100100 self .emit ("enter" , arg )
101101
102102 def ic_eq (self , type_ : TYPE | sym .BASICTYPE , t , t1 , t2 ) -> None :
103- self .emit ("eq" + self .TSUFFIX (type_ ), t , t1 , t2 )
103+ self .emit (f "eq{ self .TSUFFIX (type_ )} " , t , t1 , t2 )
104104
105105 def ic_exchg (self ) -> None :
106106 self .emit ("exchg" )
@@ -109,13 +109,13 @@ def ic_fparam(self, type_: TYPE | sym.BASICTYPE, t) -> None:
109109 self .emit (f"fparam{ self ._no_bool (type_ )} " , t )
110110
111111 def ic_fpload (self , type_ : TYPE | sym .BASICTYPE , t , offset ) -> None :
112- self .emit ("fpload" + self .TSUFFIX (type_ ), t , offset )
112+ self .emit (f "fpload{ self .TSUFFIX (type_ )} " , t , offset )
113113
114114 def ic_ge (self , type_ : TYPE | sym .BASICTYPE , t , t1 , t2 ) -> None :
115- self .emit ("ge" + self .TSUFFIX (type_ ), t , t1 , t2 )
115+ self .emit (f "ge{ self .TSUFFIX (type_ )} " , t , t1 , t2 )
116116
117117 def ic_gt (self , type_ : TYPE | sym .BASICTYPE , t , t1 , t2 ) -> None :
118- self .emit ("gt" + self .TSUFFIX (type_ ), t , t1 , t2 )
118+ self .emit (f "gt{ self .TSUFFIX (type_ )} " , t , t1 , t2 )
119119
120120 def ic_in (self , t ) -> None :
121121 self .emit ("in" , t )
@@ -142,7 +142,7 @@ def ic_larrd(self, offset, arg1, size, arg2, bound_ptrs) -> None:
142142 self .emit ("larrd" , offset , arg1 , size , arg2 , bound_ptrs )
143143
144144 def ic_le (self , type_ : TYPE | sym .BASICTYPE , t , t1 , t2 ) -> None :
145- self .emit ("le" + self .TSUFFIX (type_ ), t , t1 , t2 )
145+ self .emit (f "le{ self .TSUFFIX (type_ )} " , t , t1 , t2 )
146146
147147 def ic_leave (self , convention : str ) -> None :
148148 self .emit ("leave" , convention )
@@ -151,10 +151,10 @@ def ic_lenstr(self, t1, t2) -> None:
151151 self .emit ("lenstr" , t1 , t2 )
152152
153153 def ic_load (self , type_ : TYPE | sym .BASICTYPE , t1 , t2 ) -> None :
154- self .emit ("load" + self .TSUFFIX (type_ ), t1 , t2 )
154+ self .emit (f "load{ self .TSUFFIX (type_ )} " , t1 , t2 )
155155
156156 def ic_lt (self , type_ : TYPE | sym .BASICTYPE , t , t1 , t2 ) -> None :
157- self .emit ("lt" + self .TSUFFIX (type_ ), t , t1 , t2 )
157+ self .emit (f "lt{ self .TSUFFIX (type_ )} " , t , t1 , t2 )
158158
159159 def ic_lvard (self , offset , default_value : list ) -> None :
160160 self .emit ("lvard" , offset , default_value )
@@ -166,16 +166,16 @@ def ic_memcopy(self, t1, t2, t3) -> None:
166166 self .emit ("memcopy" , t1 , t2 , t3 )
167167
168168 def ic_mod (self , type_ : TYPE | sym .BASICTYPE , t , t1 , t2 ) -> None :
169- self .emit ("mod" + self .TSUFFIX (type_ ), t , t1 , t2 )
169+ self .emit (f "mod{ self .TSUFFIX (type_ )} " , t , t1 , t2 )
170170
171171 def ic_mul (self , type_ : TYPE | sym .BASICTYPE , t , t1 , t2 ) -> None :
172- self .emit ("mul" + self .TSUFFIX (type_ ), t , t1 , t2 )
172+ self .emit (f "mul{ self .TSUFFIX (type_ )} " , t , t1 , t2 )
173173
174174 def ic_ne (self , type_ : TYPE | sym .BASICTYPE , t , t1 , t2 ) -> None :
175- self .emit ("ne" + self .TSUFFIX (type_ ), t , t1 , t2 )
175+ self .emit (f "ne{ self .TSUFFIX (type_ )} " , t , t1 , t2 )
176176
177177 def ic_neg (self , type_ : TYPE | sym .BASICTYPE , t1 , t2 ) -> None :
178- self .emit ("neg" + self .TSUFFIX (type_ ), t1 , t2 )
178+ self .emit (f "neg{ self .TSUFFIX (type_ )} " , t1 , t2 )
179179
180180 def ic_nop (self ) -> None :
181181 self .emit ("nop" )
@@ -186,9 +186,6 @@ def ic_not(self, type_: TYPE | sym.BASICTYPE, t1, t2) -> None:
186186 def ic_or (self , type_ : TYPE | sym .BASICTYPE , t , t1 , t2 ) -> None :
187187 self .emit (f"or{ self ._no_bool (type_ )} " , t , t1 , t2 )
188188
189- def ic_org (self , type_ : TYPE | sym .BASICTYPE ) -> None :
190- self .emit ("org" + self .TSUFFIX (type_ ))
191-
192189 def ic_out (self , t1 , t2 ) -> None :
193190 self .emit ("out" , t1 , t2 )
194191
@@ -199,40 +196,40 @@ def ic_paddr(self, t1, t2) -> None:
199196 self .emit ("paddr" , t1 , t2 )
200197
201198 def ic_paload (self , type_ : TYPE | sym .BASICTYPE , t , offset : int ) -> None :
202- self .emit ("paload" + self .TSUFFIX (type_ ), t , offset )
199+ self .emit (f "paload{ self .TSUFFIX (type_ )} " , t , offset )
203200
204201 def ic_param (self , type_ : TYPE | sym .BASICTYPE , t ) -> None :
205- self .emit ("param" + self .TSUFFIX (type_ ), t )
202+ self .emit (f "param{ self .TSUFFIX (type_ )} " , t )
206203
207204 def ic_pastore (self , type_ : TYPE | sym .BASICTYPE , offset , t ) -> None :
208- self .emit ("pastore" + self .TSUFFIX (type_ ), offset , t )
205+ self .emit (f "pastore{ self .TSUFFIX (type_ )} " , offset , t )
209206
210207 def ic_pload (self , type_ : TYPE | sym .BASICTYPE , t1 , offset ) -> None :
211- self .emit ("pload" + self .TSUFFIX (type_ ), t1 , offset )
208+ self .emit (f "pload{ self .TSUFFIX (type_ )} " , t1 , offset )
212209
213210 def ic_pow (self , type_ : TYPE | sym .BASICTYPE , t , t1 , t2 ) -> None :
214- self .emit ("pow" + self .TSUFFIX (type_ ), t , t1 , t2 )
211+ self .emit (f "pow{ self .TSUFFIX (type_ )} " , t , t1 , t2 )
215212
216213 def ic_pstore (self , type_ : TYPE | sym .BASICTYPE , offset , t ) -> None :
217- self .emit ("pstore" + self .TSUFFIX (type_ ), offset , t )
214+ self .emit (f "pstore{ self .TSUFFIX (type_ )} " , offset , t )
218215
219216 def ic_ret (self , type_ : TYPE | sym .BASICTYPE , t , addr ) -> None :
220- self .emit ("ret" + self .TSUFFIX (type_ ), t , addr )
217+ self .emit (f "ret{ self .TSUFFIX (type_ )} " , t , addr )
221218
222219 def ic_return (self , addr ) -> None :
223220 self .emit ("ret" , addr )
224221
225222 def ic_shl (self , type_ : TYPE | sym .BASICTYPE , t , t1 , t2 ) -> None :
226- self .emit (f"shl{ self ._no_bool (type_ )} " , t , t1 , t2 )
223+ self .emit (f"shl{ self .TSUFFIX (type_ )} " , t , t1 , t2 )
227224
228225 def ic_shr (self , type_ : TYPE | sym .BASICTYPE , t , t1 , t2 ) -> None :
229- self .emit (f"shr{ self ._no_bool (type_ )} " , t , t1 , t2 )
226+ self .emit (f"shr{ self .TSUFFIX (type_ )} " , t , t1 , t2 )
230227
231228 def ic_store (self , type_ : TYPE | sym .BASICTYPE , t1 , t2 ) -> None :
232- self .emit ("store" + self .TSUFFIX (type_ ), t1 , t2 )
229+ self .emit (f "store{ self .TSUFFIX (type_ )} " , t1 , t2 )
233230
234231 def ic_sub (self , type_ : TYPE | sym .BASICTYPE , t , t1 , t2 ) -> None :
235- self .emit ("sub" + self .TSUFFIX (type_ ), t , t1 , t2 )
232+ self .emit (f "sub{ self .TSUFFIX (type_ )} " , t , t1 , t2 )
236233
237234 def ic_var (self , name : str , size_ ) -> None :
238235 self .emit ("var" , name , size_ )
0 commit comments