@@ -12775,7 +12775,7 @@
(rotatert:SWI48
(match_operand:SWI48 1 "nonimmediate_operand" "rm")
(match_operand:QI 2 "<rorx_immediate_operand>" "<S>")))]
- "TARGET_BMI2"
+ "TARGET_BMI2 && !optimize_function_for_size_p (cfun)"
"rorx\t{%2, %1, %0|%0, %1, %2}"
[(set_attr "type" "rotatex")
(set_attr "mode" "<MODE>")])
@@ -12803,6 +12803,10 @@
}
[(set_attr "isa" "*,bmi2")
(set_attr "type" "rotate,rotatex")
+ (set (attr "preferred_for_size")
+ (cond [(eq_attr "alternative" "0")
+ (symbol_ref "true")]
+ (symbol_ref "false")))
(set (attr "length_immediate")
(if_then_else
(and (eq_attr "type" "rotate")
@@ -12819,7 +12823,7 @@
(rotate:SWI48 (match_operand:SWI48 1 "nonimmediate_operand")
(match_operand:QI 2 "const_int_operand")))
(clobber (reg:CC FLAGS_REG))]
- "TARGET_BMI2 && reload_completed"
+ "TARGET_BMI2 && reload_completed && !optimize_function_for_size_p (cfun)"
[(set (match_dup 0)
(rotatert:SWI48 (match_dup 1) (match_dup 2)))]
{
@@ -12833,7 +12837,7 @@
(rotatert:SWI48 (match_operand:SWI48 1 "nonimmediate_operand")
(match_operand:QI 2 "const_int_operand")))
(clobber (reg:CC FLAGS_REG))]
- "TARGET_BMI2 && reload_completed"
+ "TARGET_BMI2 && reload_completed && !optimize_function_for_size_p (cfun)"
[(set (match_dup 0)
(rotatert:SWI48 (match_dup 1) (match_dup 2)))])
@@ -12842,7 +12846,7 @@
(zero_extend:DI
(rotatert:SI (match_operand:SI 1 "nonimmediate_operand" "rm")
(match_operand:QI 2 "const_0_to_31_operand" "I"))))]
- "TARGET_64BIT && TARGET_BMI2"
+ "TARGET_64BIT && TARGET_BMI2 && !optimize_function_for_size_p (cfun)"
"rorx\t{%2, %1, %k0|%k0, %1, %2}"
[(set_attr "type" "rotatex")
(set_attr "mode" "SI")])
@@ -12870,6 +12874,10 @@
}
[(set_attr "isa" "*,bmi2")
(set_attr "type" "rotate,rotatex")
+ (set (attr "preferred_for_size")
+ (cond [(eq_attr "alternative" "0")
+ (symbol_ref "true")]
+ (symbol_ref "false")))
(set (attr "length_immediate")
(if_then_else
(and (eq_attr "type" "rotate")
@@ -12887,7 +12895,8 @@
(rotate:SI (match_operand:SI 1 "nonimmediate_operand")
(match_operand:QI 2 "const_int_operand"))))
(clobber (reg:CC FLAGS_REG))]
- "TARGET_64BIT && TARGET_BMI2 && reload_completed"
+ "TARGET_64BIT && TARGET_BMI2 && reload_completed
+ && !optimize_function_for_size_p (cfun)"
[(set (match_dup 0)
(zero_extend:DI (rotatert:SI (match_dup 1) (match_dup 2))))]
{
@@ -12902,7 +12911,8 @@
(rotatert:SI (match_operand:SI 1 "nonimmediate_operand")
(match_operand:QI 2 "const_int_operand"))))
(clobber (reg:CC FLAGS_REG))]
- "TARGET_64BIT && TARGET_BMI2 && reload_completed"
+ "TARGET_64BIT && TARGET_BMI2 && reload_completed
+ && !optimize_function_for_size_p (cfun)"
[(set (match_dup 0)
(zero_extend:DI (rotatert:SI (match_dup 1) (match_dup 2))))])