Commit 1709c754 by Richard Stallman

(expand_call): Don't call convert_to_mode if we obtained

VALUE in the proper mode; VALUE might be a CONST_INT.

From-SVN: r2604
parent 87e38d84
...@@ -1425,7 +1425,7 @@ expand_call (exp, target, ignore) ...@@ -1425,7 +1425,7 @@ expand_call (exp, target, ignore)
mode = (GET_CODE (args[i].reg) == EXPR_LIST mode = (GET_CODE (args[i].reg) == EXPR_LIST
? GET_MODE (XEXP (args[i].reg, 0)) : GET_MODE (args[i].reg)); ? GET_MODE (XEXP (args[i].reg, 0)) : GET_MODE (args[i].reg));
if (GET_MODE (args[i].value) != mode) if (TYPE_MODE (TREE_TYPE (args[i].tree_value)) != mode)
args[i].value = convert_to_mode (mode, args[i].value, args[i].value = convert_to_mode (mode, args[i].value,
args[i].unsignedp); args[i].unsignedp);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment