predicates.md (const2356_operand): Change to ...
authorUros Bizjak <uros@gcc.gnu.org>
Tue, 4 Mar 2014 18:13:12 +0000 (19:13 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Tue, 4 Mar 2014 18:13:12 +0000 (19:13 +0100)
* 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

gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/predicates.md
gcc/config/i386/sse.md

index 97d4866..3a02c14 100644 (file)
@@ -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
 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
index 13e873a..38b41a9 100644 (file)
@@ -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;
        }
 
index 70418f4..0492241 100644 (file)
   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
index 5775bc6..f30b27e 100644 (file)
          [(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"
 {
            (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:
            (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:
          [(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"
 {
            (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:
            (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: