Lines Matching refs:oldinstr

111 #define OLDINSTR(oldinstr, num)						\
113 "661:\n\t" oldinstr "\n662:\n" \
131 #define OLDINSTR_2(oldinstr, num1, num2) \
133 "661:\n\t" oldinstr "\n662:\n" \
161 #define ALTERNATIVE(oldinstr, newinstr, feature) \
162 OLDINSTR(oldinstr, 1) \
170 #define ALTERNATIVE_2(oldinstr, newinstr1, feature1, newinstr2, feature2)\
171 OLDINSTR_2(oldinstr, 1, 2) \
182 #define ALTERNATIVE_TERNARY(oldinstr, feature, newinstr_yes, newinstr_no) \
183 ALTERNATIVE_2(oldinstr, newinstr_no, X86_FEATURE_ALWAYS, \
205 * length of oldinstr must be longer or equal the length of newinstr
211 #define alternative(oldinstr, newinstr, feature) \
212 asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) : : : "memory")
214 #define alternative_2(oldinstr, newinstr1, feature1, newinstr2, feature2) \
215 asm_inline volatile(ALTERNATIVE_2(oldinstr, newinstr1, feature1, newinstr2, feature2) ::: "memory")
217 #define alternative_ternary(oldinstr, feature, newinstr_yes, newinstr_no) \
218 asm_inline volatile(ALTERNATIVE_TERNARY(oldinstr, feature, newinstr_yes, newinstr_no) ::: "memory")
228 #define alternative_input(oldinstr, newinstr, feature, input...) \
229 asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) \
238 * Otherwise, oldinstr is used.
240 #define alternative_input_2(oldinstr, newinstr1, feature1, newinstr2, \
242 asm_inline volatile(ALTERNATIVE_2(oldinstr, newinstr1, feature1, \
247 #define alternative_io(oldinstr, newinstr, feature, output, input...) \
248 asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) \
324 * present, early code in apply_alternatives() replaces @oldinstr with
326 * in case @newinstr is longer than @oldinstr.
328 .macro ALTERNATIVE oldinstr, newinstr, feature
330 \oldinstr
361 * has @feature1, it replaces @oldinstr with @newinstr1. If CPU has
362 * @feature2, it replaces @oldinstr with @feature2.
364 .macro ALTERNATIVE_2 oldinstr, newinstr1, feature1, newinstr2, feature2
366 \oldinstr
387 #define ALTERNATIVE_TERNARY(oldinstr, feature, newinstr_yes, newinstr_no) \
388 ALTERNATIVE_2 oldinstr, newinstr_no, X86_FEATURE_ALWAYS, \