From: Uros Bizjak Date: Tue, 4 Mar 2014 18:13:12 +0000 (+0100) Subject: predicates.md (const2356_operand): Change to ... X-Git-Tag: releases/gcc-4.9.0~576 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=66b03f816acc79da5e6b25b9fe9d879224b4b51e;p=thirdparty%2Fgcc.git predicates.md (const2356_operand): Change to ... * config/i386/predicates.md (const2356_operand): Change to ... (const2367_operand): ... this. * config/i386/sse.md (avx512pf_scatterpfsf): Use const2367_operand. (*avx512pf_scatterpfsf_mask): Ditto. (*avx512pf_scatterpfsf): Ditto. (avx512pf_scatterpfdf): Ditto. (*avx512pf_scatterpfdf_mask): Ditto. (*avx512pf_scatterpfdf): Ditto. * config/i386/i386.c (ix86_expand_builtin): Update incorrect hint operand error message. From-SVN: r208324 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 97d4866c7a82..3a02c148810c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,7 +1,21 @@ +2014-03-04 Uros Bizjak + + * config/i386/predicates.md (const2356_operand): Change to ... + (const2367_operand): ... this. + * config/i386/sse.md (avx512pf_scatterpfsf): Use + const2367_operand. + (*avx512pf_scatterpfsf_mask): Ditto. + (*avx512pf_scatterpfsf): Ditto. + (avx512pf_scatterpfdf): Ditto. + (*avx512pf_scatterpfdf_mask): Ditto. + (*avx512pf_scatterpfdf): Ditto. + * config/i386/i386.c (ix86_expand_builtin): Update + incorrect hint operand error message. + 2014-03-04 Richard Biener * lto-section-in.c (lto_get_section_data): Fix const cast. - + 2014-03-04 Paulo Matos * tree-streamer.c (record_common_node): Assert we don't record @@ -13,12 +27,11 @@ 2014-03-04 Richard Biener PR lto/60405 - * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version - check. + * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check. (lto_input_toplevel_asms): Likewise. * lto-section-in.c (lto_get_section_data): Instead do it here for every section. - + 2014-03-04 Richard Biener PR tree-optimization/60382 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 13e873a2886c..38b41a93c22c 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -36022,7 +36022,7 @@ addcarryx: if (!insn_data[icode].operand[4].predicate (op4, mode4)) { - error ("the last argument must be hint 0 or 1"); + error ("incorrect hint operand"); return const0_rtx; } diff --git a/gcc/config/i386/predicates.md b/gcc/config/i386/predicates.md index 70418f430227..0492241fd8f8 100644 --- a/gcc/config/i386/predicates.md +++ b/gcc/config/i386/predicates.md @@ -660,12 +660,12 @@ return i == 2 || i == 4 || i == 8; }) -;; Match 2, 3, 5, or 6 -(define_predicate "const2356_operand" +;; Match 2, 3, 6, or 7 +(define_predicate "const2367_operand" (match_code "const_int") { HOST_WIDE_INT i = INTVAL (op); - return i == 2 || i == 3 || i == 5 || i == 6; + return i == 2 || i == 3 || i == 6 || i == 7; }) ;; Match 1, 2, 4, or 8 diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index 5775bc67c1e2..f30b27e860f5 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -12652,7 +12652,7 @@ [(match_operand 2 "vsib_address_operand") (match_operand:VI48_512 1 "register_operand") (match_operand:SI 3 "const1248_operand")])) - (match_operand:SI 4 "const2356_operand")] + (match_operand:SI 4 "const2367_operand")] UNSPEC_SCATTER_PREFETCH)] "TARGET_AVX512PF" { @@ -12670,14 +12670,14 @@ (match_operand:VI48_512 1 "register_operand" "v") (match_operand:SI 3 "const1248_operand" "n")] UNSPEC_VSIBADDR)]) - (match_operand:SI 4 "const2356_operand" "n")] + (match_operand:SI 4 "const2367_operand" "n")] UNSPEC_SCATTER_PREFETCH)] "TARGET_AVX512PF" { switch (INTVAL (operands[4])) { case 3: - case 5: + case 7: return "vscatterpf0ps\t{%5%{%0%}|%5%{%0%}}"; case 2: case 6: @@ -12699,14 +12699,14 @@ (match_operand:VI48_512 0 "register_operand" "v") (match_operand:SI 2 "const1248_operand" "n")] UNSPEC_VSIBADDR)]) - (match_operand:SI 3 "const2356_operand" "n")] + (match_operand:SI 3 "const2367_operand" "n")] UNSPEC_SCATTER_PREFETCH)] "TARGET_AVX512PF" { switch (INTVAL (operands[3])) { case 3: - case 5: + case 7: return "vscatterpf0ps\t{%4|%4}"; case 2: case 6: @@ -12728,7 +12728,7 @@ [(match_operand 2 "vsib_address_operand") (match_operand:VI4_256_8_512 1 "register_operand") (match_operand:SI 3 "const1248_operand")])) - (match_operand:SI 4 "const2356_operand")] + (match_operand:SI 4 "const2367_operand")] UNSPEC_SCATTER_PREFETCH)] "TARGET_AVX512PF" { @@ -12746,14 +12746,14 @@ (match_operand:VI4_256_8_512 1 "register_operand" "v") (match_operand:SI 3 "const1248_operand" "n")] UNSPEC_VSIBADDR)]) - (match_operand:SI 4 "const2356_operand" "n")] + (match_operand:SI 4 "const2367_operand" "n")] UNSPEC_SCATTER_PREFETCH)] "TARGET_AVX512PF" { switch (INTVAL (operands[4])) { case 3: - case 5: + case 7: return "vscatterpf0pd\t{%5%{%0%}|%5%{%0%}}"; case 2: case 6: @@ -12775,14 +12775,14 @@ (match_operand:VI4_256_8_512 0 "register_operand" "v") (match_operand:SI 2 "const1248_operand" "n")] UNSPEC_VSIBADDR)]) - (match_operand:SI 3 "const2356_operand" "n")] + (match_operand:SI 3 "const2367_operand" "n")] UNSPEC_SCATTER_PREFETCH)] "TARGET_AVX512PF" { switch (INTVAL (operands[3])) { case 3: - case 5: + case 7: return "vscatterpf0pd\t{%4|%4}"; case 2: case 6: