aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-02-16 11:05:16 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2019-02-16 11:05:16 +0100
commit1f1d52e33df1b07c3d33b9fe377691ebbf4be157 (patch)
tree45257b72023933ca8a7675bbfee3a591c9d125f6 /gcc
parentbc50c4998fe8a3dd0f6ff3a0e22e5f0a3ebfd51c (diff)
downloadgcc-1f1d52e33df1b07c3d33b9fe377691ebbf4be157.zip
gcc-1f1d52e33df1b07c3d33b9fe377691ebbf4be157.tar.gz
gcc-1f1d52e33df1b07c3d33b9fe377691ebbf4be157.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/config/i386/i386.md5
-rw-r--r--gcc/config/i386/sse.md55
3 files changed, 45 insertions, 24 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c430cfd..a63f2ab 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,12 @@
+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>
* config/sparc/linux.h (ASAN_CC1_SPEC): Define.
diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md
index 9948f77..b1ae88c 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 fac5db6..8281fe2 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 && <mask_avx512vl_condition>"
{
- 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<mask_operand3_1>|%%0<mask_operand3_1>, %%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 && <mask_avx512vl_condition>
&& !(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<logic>%s\t{%%2, %%1, %%0<mask_operand3_1>|%%0<mask_operand3_1>, %%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>mode)"
{
- static char buf[128];
+ char buf[128];
const char *ops;
const char *suffix
= (get_attr_mode (insn) == MODE_V4SF) ? "ps" : "<ssevecmodesuffix>";
@@ -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>mode)"
{
- static char buf[128];
+ char buf[128];
const char *ops;
const char *suffix
= (get_attr_mode (insn) == MODE_V4SF) ? "ps" : "<ssevecmodesuffix>";
@@ -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 ? "p<logic>q"
@@ -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 && <mask_mode512bit_condition>
&& !(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")