Commit 1f1d52e3 by Jakub Jelinek Committed by Jakub Jelinek

i386.md (*movqi_internal): Remove static from buf variable.

	* config/i386/i386.md (*movqi_internal): Remove static from
	buf variable.  Use output_asm_insn (buf, operands); return "";
	instead of return buf;.
	* config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
	*<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
	*<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.

From-SVN: r268956
parent bc50c499
2019-02-16 Jakub Jelinek <jakub@redhat.com>
* config/i386/i386.md (*movqi_internal): Remove static from
buf variable. Use output_asm_insn (buf, operands); return "";
instead of return buf;.
* config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
*<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
*<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
2019-02-15 Eric Botcazou <ebotcazou@adacore.com> 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
* config/sparc/linux.h (ASAN_CC1_SPEC): Define. * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
......
...@@ -2531,7 +2531,7 @@ ...@@ -2531,7 +2531,7 @@
"Q ,R,r,n,m,q,rn, m,qn,r,k,k,k,m,C,BC"))] "Q ,R,r,n,m,q,rn, m,qn,r,k,k,k,m,C,BC"))]
"!(MEM_P (operands[0]) && MEM_P (operands[1]))" "!(MEM_P (operands[0]) && MEM_P (operands[1]))"
{ {
static char buf[128]; char buf[128];
const char *ops; const char *ops;
const char *suffix; const char *suffix;
...@@ -2564,7 +2564,8 @@ ...@@ -2564,7 +2564,8 @@
suffix = (get_attr_mode (insn) == MODE_HI) ? "w" : "b"; suffix = (get_attr_mode (insn) == MODE_HI) ? "w" : "b";
snprintf (buf, sizeof (buf), ops, suffix); snprintf (buf, sizeof (buf), ops, suffix);
return buf; output_asm_insn (buf, operands);
return "";
case TYPE_MSKLOG: case TYPE_MSKLOG:
if (operands[1] == const0_rtx) if (operands[1] == const0_rtx)
......
...@@ -3198,7 +3198,7 @@ ...@@ -3198,7 +3198,7 @@
(match_operand:VF_128_256 2 "vector_operand" "xBm,xm,vm,vm")))] (match_operand:VF_128_256 2 "vector_operand" "xBm,xm,vm,vm")))]
"TARGET_SSE && <mask_avx512vl_condition>" "TARGET_SSE && <mask_avx512vl_condition>"
{ {
static char buf[128]; char buf[128];
const char *ops; const char *ops;
const char *suffix; const char *suffix;
...@@ -3233,7 +3233,8 @@ ...@@ -3233,7 +3233,8 @@
} }
snprintf (buf, sizeof (buf), ops, suffix); snprintf (buf, sizeof (buf), ops, suffix);
return buf; output_asm_insn (buf, operands);
return "";
} }
[(set_attr "isa" "noavx,avx,avx512dq,avx512f") [(set_attr "isa" "noavx,avx,avx512dq,avx512f")
(set_attr "type" "sselog") (set_attr "type" "sselog")
...@@ -3264,7 +3265,7 @@ ...@@ -3264,7 +3265,7 @@
(match_operand:VF_512 2 "nonimmediate_operand" "vm")))] (match_operand:VF_512 2 "nonimmediate_operand" "vm")))]
"TARGET_AVX512F" "TARGET_AVX512F"
{ {
static char buf[128]; char buf[128];
const char *ops; const char *ops;
const char *suffix; const char *suffix;
...@@ -3281,7 +3282,8 @@ ...@@ -3281,7 +3282,8 @@
snprintf (buf, sizeof (buf), snprintf (buf, sizeof (buf),
"v%sandn%s\t{%%2, %%1, %%0<mask_operand3_1>|%%0<mask_operand3_1>, %%1, %%2}", "v%sandn%s\t{%%2, %%1, %%0<mask_operand3_1>|%%0<mask_operand3_1>, %%1, %%2}",
ops, suffix); ops, suffix);
return buf; output_asm_insn (buf, operands);
return "";
} }
[(set_attr "type" "sselog") [(set_attr "type" "sselog")
(set_attr "prefix" "evex") (set_attr "prefix" "evex")
...@@ -3314,7 +3316,7 @@ ...@@ -3314,7 +3316,7 @@
"TARGET_SSE && <mask_avx512vl_condition> "TARGET_SSE && <mask_avx512vl_condition>
&& !(MEM_P (operands[1]) && MEM_P (operands[2]))" && !(MEM_P (operands[1]) && MEM_P (operands[2]))"
{ {
static char buf[128]; char buf[128];
const char *ops; const char *ops;
const char *suffix; const char *suffix;
...@@ -3349,7 +3351,8 @@ ...@@ -3349,7 +3351,8 @@
} }
snprintf (buf, sizeof (buf), ops, suffix); snprintf (buf, sizeof (buf), ops, suffix);
return buf; output_asm_insn (buf, operands);
return "";
} }
[(set_attr "isa" "noavx,avx,avx512dq,avx512f") [(set_attr "isa" "noavx,avx,avx512dq,avx512f")
(set_attr "type" "sselog") (set_attr "type" "sselog")
...@@ -3378,7 +3381,7 @@ ...@@ -3378,7 +3381,7 @@
(match_operand:VF_512 2 "nonimmediate_operand" "vm")))] (match_operand:VF_512 2 "nonimmediate_operand" "vm")))]
"TARGET_AVX512F && !(MEM_P (operands[1]) && MEM_P (operands[2]))" "TARGET_AVX512F && !(MEM_P (operands[1]) && MEM_P (operands[2]))"
{ {
static char buf[128]; char buf[128];
const char *ops; const char *ops;
const char *suffix; const char *suffix;
...@@ -3395,7 +3398,8 @@ ...@@ -3395,7 +3398,8 @@
snprintf (buf, sizeof (buf), snprintf (buf, sizeof (buf),
"v%s<logic>%s\t{%%2, %%1, %%0<mask_operand3_1>|%%0<mask_operand3_1>, %%1, %%2}", "v%s<logic>%s\t{%%2, %%1, %%0<mask_operand3_1>|%%0<mask_operand3_1>, %%1, %%2}",
ops, suffix); ops, suffix);
return buf; output_asm_insn (buf, operands);
return "";
} }
[(set_attr "type" "sselog") [(set_attr "type" "sselog")
(set_attr "prefix" "evex") (set_attr "prefix" "evex")
...@@ -3449,7 +3453,7 @@ ...@@ -3449,7 +3453,7 @@
(match_operand:MODEF 2 "register_operand" "x,x,v,v")))] (match_operand:MODEF 2 "register_operand" "x,x,v,v")))]
"SSE_FLOAT_MODE_P (<MODE>mode)" "SSE_FLOAT_MODE_P (<MODE>mode)"
{ {
static char buf[128]; char buf[128];
const char *ops; const char *ops;
const char *suffix const char *suffix
= (get_attr_mode (insn) == MODE_V4SF) ? "ps" : "<ssevecmodesuffix>"; = (get_attr_mode (insn) == MODE_V4SF) ? "ps" : "<ssevecmodesuffix>";
...@@ -3485,7 +3489,8 @@ ...@@ -3485,7 +3489,8 @@
} }
snprintf (buf, sizeof (buf), ops, suffix); snprintf (buf, sizeof (buf), ops, suffix);
return buf; output_asm_insn (buf, operands);
return "";
} }
[(set_attr "isa" "noavx,avx,avx512vl,avx512f") [(set_attr "isa" "noavx,avx,avx512vl,avx512f")
(set_attr "type" "sselog") (set_attr "type" "sselog")
...@@ -3516,7 +3521,7 @@ ...@@ -3516,7 +3521,7 @@
(match_operand:TF 2 "vector_operand" "xBm,xm,vm,v")))] (match_operand:TF 2 "vector_operand" "xBm,xm,vm,v")))]
"TARGET_SSE" "TARGET_SSE"
{ {
static char buf[128]; char buf[128];
const char *ops; const char *ops;
const char *tmp const char *tmp
= (which_alternative >= 2 ? "pandnq" = (which_alternative >= 2 ? "pandnq"
...@@ -3539,7 +3544,8 @@ ...@@ -3539,7 +3544,8 @@
} }
snprintf (buf, sizeof (buf), ops, tmp); snprintf (buf, sizeof (buf), ops, tmp);
return buf; output_asm_insn (buf, operands);
return "";
} }
[(set_attr "isa" "noavx,avx,avx512vl,avx512f") [(set_attr "isa" "noavx,avx,avx512vl,avx512f")
(set_attr "type" "sselog") (set_attr "type" "sselog")
...@@ -3572,7 +3578,7 @@ ...@@ -3572,7 +3578,7 @@
(match_operand:MODEF 2 "register_operand" "x,x,v,v")))] (match_operand:MODEF 2 "register_operand" "x,x,v,v")))]
"SSE_FLOAT_MODE_P (<MODE>mode)" "SSE_FLOAT_MODE_P (<MODE>mode)"
{ {
static char buf[128]; char buf[128];
const char *ops; const char *ops;
const char *suffix const char *suffix
= (get_attr_mode (insn) == MODE_V4SF) ? "ps" : "<ssevecmodesuffix>"; = (get_attr_mode (insn) == MODE_V4SF) ? "ps" : "<ssevecmodesuffix>";
...@@ -3607,7 +3613,8 @@ ...@@ -3607,7 +3613,8 @@
} }
snprintf (buf, sizeof (buf), ops, suffix); snprintf (buf, sizeof (buf), ops, suffix);
return buf; output_asm_insn (buf, operands);
return "";
} }
[(set_attr "isa" "noavx,avx,avx512vl,avx512f") [(set_attr "isa" "noavx,avx,avx512vl,avx512f")
(set_attr "type" "sselog") (set_attr "type" "sselog")
...@@ -3646,7 +3653,7 @@ ...@@ -3646,7 +3653,7 @@
(match_operand:TF 2 "vector_operand" "xBm,xm,vm,v")))] (match_operand:TF 2 "vector_operand" "xBm,xm,vm,v")))]
"TARGET_SSE && !(MEM_P (operands[1]) && MEM_P (operands[2]))" "TARGET_SSE && !(MEM_P (operands[1]) && MEM_P (operands[2]))"
{ {
static char buf[128]; char buf[128];
const char *ops; const char *ops;
const char *tmp const char *tmp
= (which_alternative >= 2 ? "p<logic>q" = (which_alternative >= 2 ? "p<logic>q"
...@@ -3669,7 +3676,8 @@ ...@@ -3669,7 +3676,8 @@
} }
snprintf (buf, sizeof (buf), ops, tmp); snprintf (buf, sizeof (buf), ops, tmp);
return buf; output_asm_insn (buf, operands);
return "";
} }
[(set_attr "isa" "noavx,avx,avx512vl,avx512f") [(set_attr "isa" "noavx,avx,avx512vl,avx512f")
(set_attr "type" "sselog") (set_attr "type" "sselog")
...@@ -12066,7 +12074,7 @@ ...@@ -12066,7 +12074,7 @@
(match_operand:VI 2 "vector_operand" "xBm,xm,vm")))] (match_operand:VI 2 "vector_operand" "xBm,xm,vm")))]
"TARGET_SSE" "TARGET_SSE"
{ {
static char buf[64]; char buf[64];
const char *ops; const char *ops;
const char *tmp; const char *tmp;
const char *ssesuffix; const char *ssesuffix;
...@@ -12136,7 +12144,8 @@ ...@@ -12136,7 +12144,8 @@
} }
snprintf (buf, sizeof (buf), ops, tmp, ssesuffix); snprintf (buf, sizeof (buf), ops, tmp, ssesuffix);
return buf; output_asm_insn (buf, operands);
return "";
} }
[(set_attr "isa" "noavx,avx,avx") [(set_attr "isa" "noavx,avx,avx")
(set_attr "type" "sselog") (set_attr "type" "sselog")
...@@ -12211,7 +12220,7 @@ ...@@ -12211,7 +12220,7 @@
"TARGET_SSE && <mask_mode512bit_condition> "TARGET_SSE && <mask_mode512bit_condition>
&& !(MEM_P (operands[1]) && MEM_P (operands[2]))" && !(MEM_P (operands[1]) && MEM_P (operands[2]))"
{ {
static char buf[64]; char buf[64];
const char *ops; const char *ops;
const char *tmp; const char *tmp;
const char *ssesuffix; const char *ssesuffix;
...@@ -12276,7 +12285,8 @@ ...@@ -12276,7 +12285,8 @@
} }
snprintf (buf, sizeof (buf), ops, tmp, ssesuffix); snprintf (buf, sizeof (buf), ops, tmp, ssesuffix);
return buf; output_asm_insn (buf, operands);
return "";
} }
[(set_attr "isa" "noavx,avx,avx") [(set_attr "isa" "noavx,avx,avx")
(set_attr "type" "sselog") (set_attr "type" "sselog")
...@@ -12311,7 +12321,7 @@ ...@@ -12311,7 +12321,7 @@
(match_operand:VI12_AVX_AVX512F 2 "vector_operand" "xBm,xm,vm")))] (match_operand:VI12_AVX_AVX512F 2 "vector_operand" "xBm,xm,vm")))]
"TARGET_SSE && !(MEM_P (operands[1]) && MEM_P (operands[2]))" "TARGET_SSE && !(MEM_P (operands[1]) && MEM_P (operands[2]))"
{ {
static char buf[64]; char buf[64];
const char *ops; const char *ops;
const char *tmp; const char *tmp;
const char *ssesuffix; const char *ssesuffix;
...@@ -12371,7 +12381,8 @@ ...@@ -12371,7 +12381,8 @@
} }
snprintf (buf, sizeof (buf), ops, tmp, ssesuffix); snprintf (buf, sizeof (buf), ops, tmp, ssesuffix);
return buf; output_asm_insn (buf, operands);
return "";
} }
[(set_attr "isa" "noavx,avx,avx") [(set_attr "isa" "noavx,avx,avx")
(set_attr "type" "sselog") (set_attr "type" "sselog")
......
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