Lines Matching refs:oldinstr

161 #define OLDINSTR(oldinstr, num)						\
163 "661:\n\t" oldinstr "\n662:\n" \
181 #define OLDINSTR_2(oldinstr, num1, num2) \
183 "661:\n\t" oldinstr "\n662:\n" \
211 #define ALTERNATIVE(oldinstr, newinstr, ft_flags) \
212 OLDINSTR(oldinstr, 1) \
220 #define ALTERNATIVE_2(oldinstr, newinstr1, ft_flags1, newinstr2, ft_flags2) \
221 OLDINSTR_2(oldinstr, 1, 2) \
232 #define ALTERNATIVE_TERNARY(oldinstr, ft_flags, newinstr_yes, newinstr_no) \
233 ALTERNATIVE_2(oldinstr, newinstr_no, X86_FEATURE_ALWAYS, \
256 * length of oldinstr must be longer or equal the length of newinstr
262 #define alternative(oldinstr, newinstr, ft_flags) \
263 asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
265 #define alternative_2(oldinstr, newinstr1, ft_flags1, newinstr2, ft_flags2) \
266 asm_inline volatile(ALTERNATIVE_2(oldinstr, newinstr1, ft_flags1, newinstr2, ft_flags2) ::: "memory")
268 #define alternative_ternary(oldinstr, ft_flags, newinstr_yes, newinstr_no) \
269 asm_inline volatile(ALTERNATIVE_TERNARY(oldinstr, ft_flags, newinstr_yes, newinstr_no) ::: "memory")
279 #define alternative_input(oldinstr, newinstr, ft_flags, input...) \
280 asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) \
289 * Otherwise, oldinstr is used.
291 #define alternative_input_2(oldinstr, newinstr1, ft_flags1, newinstr2, \
293 asm_inline volatile(ALTERNATIVE_2(oldinstr, newinstr1, ft_flags1, \
298 #define alternative_io(oldinstr, newinstr, ft_flags, output, input...) \
299 asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) \
375 * present, early code in apply_alternatives() replaces @oldinstr with
377 * in case @newinstr is longer than @oldinstr.
379 .macro ALTERNATIVE oldinstr, newinstr, ft_flags
381 \oldinstr
414 * has @feature1, it replaces @oldinstr with @newinstr1. If CPU has
415 * @feature2, it replaces @oldinstr with @feature2.
417 .macro ALTERNATIVE_2 oldinstr, newinstr1, ft_flags1, newinstr2, ft_flags2
419 \oldinstr
439 .macro ALTERNATIVE_3 oldinstr, newinstr1, ft_flags1, newinstr2, ft_flags2, newinstr3, ft_flags3
441 \oldinstr
465 #define ALTERNATIVE_TERNARY(oldinstr, ft_flags, newinstr_yes, newinstr_no) \
466 ALTERNATIVE_2 oldinstr, newinstr_no, X86_FEATURE_ALWAYS, \