diff options
author | Uros Bizjak <uros@gcc.gnu.org> | 2014-03-04 19:13:12 +0100 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2014-03-04 19:13:12 +0100 |
commit | 66b03f816acc79da5e6b25b9fe9d879224b4b51e (patch) | |
tree | 0b5dabc2c479765e2e75f72d91a31d9a6b5eef61 | |
parent | fabdcf97a572387959d363a90ef2808b1007bc29 (diff) | |
download | gcc-66b03f816acc79da5e6b25b9fe9d879224b4b51e.zip gcc-66b03f816acc79da5e6b25b9fe9d879224b4b51e.tar.gz gcc-66b03f816acc79da5e6b25b9fe9d879224b4b51e.tar.bz2 |
predicates.md (const2356_operand): Change to ...
* config/i386/predicates.md (const2356_operand): Change to ...
(const2367_operand): ... this.
* config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
const2367_operand.
(*avx512pf_scatterpf<mode>sf_mask): Ditto.
(*avx512pf_scatterpf<mode>sf): Ditto.
(avx512pf_scatterpf<mode>df): Ditto.
(*avx512pf_scatterpf<mode>df_mask): Ditto.
(*avx512pf_scatterpf<mode>df): Ditto.
* config/i386/i386.c (ix86_expand_builtin): Update
incorrect hint operand error message.
From-SVN: r208324
-rw-r--r-- | gcc/ChangeLog | 21 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 2 | ||||
-rw-r--r-- | gcc/config/i386/predicates.md | 6 | ||||
-rw-r--r-- | gcc/config/i386/sse.md | 20 |
4 files changed, 31 insertions, 18 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 97d4866..3a02c14 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,7 +1,21 @@ +2014-03-04 Uros Bizjak <ubizjak@gmail.com> + + * config/i386/predicates.md (const2356_operand): Change to ... + (const2367_operand): ... this. + * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use + const2367_operand. + (*avx512pf_scatterpf<mode>sf_mask): Ditto. + (*avx512pf_scatterpf<mode>sf): Ditto. + (avx512pf_scatterpf<mode>df): Ditto. + (*avx512pf_scatterpf<mode>df_mask): Ditto. + (*avx512pf_scatterpf<mode>df): Ditto. + * config/i386/i386.c (ix86_expand_builtin): Update + incorrect hint operand error message. + 2014-03-04 Richard Biener <rguenther@suse.de> * lto-section-in.c (lto_get_section_data): Fix const cast. - + 2014-03-04 Paulo Matos <paulo@matos-sorge.com> * tree-streamer.c (record_common_node): Assert we don't record @@ -13,12 +27,11 @@ 2014-03-04 Richard Biener <rguenther@suse.de> 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 <rguenther@suse.de> PR tree-optimization/60382 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 13e873a..38b41a9 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 70418f4..0492241 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 5775bc6..f30b27e 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 "vscatterpf0<ssemodesuffix>ps\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 "vscatterpf0<ssemodesuffix>ps\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 "vscatterpf0<ssemodesuffix>pd\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 "vscatterpf0<ssemodesuffix>pd\t{%4|%4}"; case 2: case 6: |