From 1f1d52e33df1b07c3d33b9fe377691ebbf4be157 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sat, 16 Feb 2019 11:05:16 +0100 Subject: [PATCH] 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 (_andnot3, *3, *andnot3, *andnottf3, *3, *tf3, 3): Likewise. From-SVN: r268956 --- gcc/ChangeLog | 9 +++++++ gcc/config/i386/i386.md | 5 ++-- gcc/config/i386/sse.md | 55 ++++++++++++++++++++++++----------------- 3 files changed, 45 insertions(+), 24 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c430cfd9677..a63f2abba13 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2019-02-16 Jakub Jelinek + + * 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 (_andnot3, + *3, *andnot3, *andnottf3, *3, + *tf3, 3): Likewise. + 2019-02-15 Eric Botcazou * config/sparc/linux.h (ASAN_CC1_SPEC): Define. diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 9948f77fca5..b1ae88c400f 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -2531,7 +2531,7 @@ "Q ,R,r,n,m,q,rn, m,qn,r,k,k,k,m,C,BC"))] "!(MEM_P (operands[0]) && MEM_P (operands[1]))" { - static char buf[128]; + char buf[128]; const char *ops; const char *suffix; @@ -2564,7 +2564,8 @@ suffix = (get_attr_mode (insn) == MODE_HI) ? "w" : "b"; snprintf (buf, sizeof (buf), ops, suffix); - return buf; + output_asm_insn (buf, operands); + return ""; case TYPE_MSKLOG: if (operands[1] == const0_rtx) diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index fac5db62b1e..8281fe2d398 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -3198,7 +3198,7 @@ (match_operand:VF_128_256 2 "vector_operand" "xBm,xm,vm,vm")))] "TARGET_SSE && " { - static char buf[128]; + char buf[128]; const char *ops; const char *suffix; @@ -3233,7 +3233,8 @@ } snprintf (buf, sizeof (buf), ops, suffix); - return buf; + output_asm_insn (buf, operands); + return ""; } [(set_attr "isa" "noavx,avx,avx512dq,avx512f") (set_attr "type" "sselog") @@ -3264,7 +3265,7 @@ (match_operand:VF_512 2 "nonimmediate_operand" "vm")))] "TARGET_AVX512F" { - static char buf[128]; + char buf[128]; const char *ops; const char *suffix; @@ -3281,7 +3282,8 @@ snprintf (buf, sizeof (buf), "v%sandn%s\t{%%2, %%1, %%0|%%0, %%1, %%2}", ops, suffix); - return buf; + output_asm_insn (buf, operands); + return ""; } [(set_attr "type" "sselog") (set_attr "prefix" "evex") @@ -3314,7 +3316,7 @@ "TARGET_SSE && && !(MEM_P (operands[1]) && MEM_P (operands[2]))" { - static char buf[128]; + char buf[128]; const char *ops; const char *suffix; @@ -3349,7 +3351,8 @@ } snprintf (buf, sizeof (buf), ops, suffix); - return buf; + output_asm_insn (buf, operands); + return ""; } [(set_attr "isa" "noavx,avx,avx512dq,avx512f") (set_attr "type" "sselog") @@ -3378,7 +3381,7 @@ (match_operand:VF_512 2 "nonimmediate_operand" "vm")))] "TARGET_AVX512F && !(MEM_P (operands[1]) && MEM_P (operands[2]))" { - static char buf[128]; + char buf[128]; const char *ops; const char *suffix; @@ -3395,7 +3398,8 @@ snprintf (buf, sizeof (buf), "v%s%s\t{%%2, %%1, %%0|%%0, %%1, %%2}", ops, suffix); - return buf; + output_asm_insn (buf, operands); + return ""; } [(set_attr "type" "sselog") (set_attr "prefix" "evex") @@ -3449,7 +3453,7 @@ (match_operand:MODEF 2 "register_operand" "x,x,v,v")))] "SSE_FLOAT_MODE_P (mode)" { - static char buf[128]; + char buf[128]; const char *ops; const char *suffix = (get_attr_mode (insn) == MODE_V4SF) ? "ps" : ""; @@ -3485,7 +3489,8 @@ } snprintf (buf, sizeof (buf), ops, suffix); - return buf; + output_asm_insn (buf, operands); + return ""; } [(set_attr "isa" "noavx,avx,avx512vl,avx512f") (set_attr "type" "sselog") @@ -3516,7 +3521,7 @@ (match_operand:TF 2 "vector_operand" "xBm,xm,vm,v")))] "TARGET_SSE" { - static char buf[128]; + char buf[128]; const char *ops; const char *tmp = (which_alternative >= 2 ? "pandnq" @@ -3539,7 +3544,8 @@ } snprintf (buf, sizeof (buf), ops, tmp); - return buf; + output_asm_insn (buf, operands); + return ""; } [(set_attr "isa" "noavx,avx,avx512vl,avx512f") (set_attr "type" "sselog") @@ -3572,7 +3578,7 @@ (match_operand:MODEF 2 "register_operand" "x,x,v,v")))] "SSE_FLOAT_MODE_P (mode)" { - static char buf[128]; + char buf[128]; const char *ops; const char *suffix = (get_attr_mode (insn) == MODE_V4SF) ? "ps" : ""; @@ -3607,7 +3613,8 @@ } snprintf (buf, sizeof (buf), ops, suffix); - return buf; + output_asm_insn (buf, operands); + return ""; } [(set_attr "isa" "noavx,avx,avx512vl,avx512f") (set_attr "type" "sselog") @@ -3646,7 +3653,7 @@ (match_operand:TF 2 "vector_operand" "xBm,xm,vm,v")))] "TARGET_SSE && !(MEM_P (operands[1]) && MEM_P (operands[2]))" { - static char buf[128]; + char buf[128]; const char *ops; const char *tmp = (which_alternative >= 2 ? "pq" @@ -3669,7 +3676,8 @@ } snprintf (buf, sizeof (buf), ops, tmp); - return buf; + output_asm_insn (buf, operands); + return ""; } [(set_attr "isa" "noavx,avx,avx512vl,avx512f") (set_attr "type" "sselog") @@ -12066,7 +12074,7 @@ (match_operand:VI 2 "vector_operand" "xBm,xm,vm")))] "TARGET_SSE" { - static char buf[64]; + char buf[64]; const char *ops; const char *tmp; const char *ssesuffix; @@ -12136,7 +12144,8 @@ } snprintf (buf, sizeof (buf), ops, tmp, ssesuffix); - return buf; + output_asm_insn (buf, operands); + return ""; } [(set_attr "isa" "noavx,avx,avx") (set_attr "type" "sselog") @@ -12211,7 +12220,7 @@ "TARGET_SSE && && !(MEM_P (operands[1]) && MEM_P (operands[2]))" { - static char buf[64]; + char buf[64]; const char *ops; const char *tmp; const char *ssesuffix; @@ -12276,7 +12285,8 @@ } snprintf (buf, sizeof (buf), ops, tmp, ssesuffix); - return buf; + output_asm_insn (buf, operands); + return ""; } [(set_attr "isa" "noavx,avx,avx") (set_attr "type" "sselog") @@ -12311,7 +12321,7 @@ (match_operand:VI12_AVX_AVX512F 2 "vector_operand" "xBm,xm,vm")))] "TARGET_SSE && !(MEM_P (operands[1]) && MEM_P (operands[2]))" { - static char buf[64]; + char buf[64]; const char *ops; const char *tmp; const char *ssesuffix; @@ -12371,7 +12381,8 @@ } snprintf (buf, sizeof (buf), ops, tmp, ssesuffix); - return buf; + output_asm_insn (buf, operands); + return ""; } [(set_attr "isa" "noavx,avx,avx") (set_attr "type" "sselog") -- 2.30.2