OSDN Git Service

2008-06-11 Edmar Wienskoski <edmar@freescale.com>
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Jun 2008 20:02:55 +0000 (20:02 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Jun 2008 20:02:55 +0000 (20:02 +0000)
PR target/36425
* config/rs6000/rs6000.c (rs6000_override_options): Set
rs6000_isel conditionally to the absence of comand line
override.
* config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
Remove duplicate rs6000_isel setting.
* config/rs6000/eabispe.h: Ditto.

testsuite:
2008-06-11  Edmar Wienskoski  <edmar@freescale.com>

* gcc.target/powerpc/e500-1.c: New test case to verify
mno-isel option.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136681 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/rs6000/eabispe.h
gcc/config/rs6000/linuxspe.h
gcc/config/rs6000/rs6000.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/e500-1.c [new file with mode: 0644]

index 95a86b0..d66d335 100644 (file)
@@ -1,3 +1,13 @@
+2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
+
+       PR target/36425
+       * config/rs6000/rs6000.c (rs6000_override_options): Set
+       rs6000_isel conditionally to the absence of comand line
+       override.
+       * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
+       Remove duplicate rs6000_isel setting.
+       * config/rs6000/eabispe.h: Ditto.
+
 2008-06-11  Richard Guenther  <rguenther@suse.de>
 
        * alias.c (get_alias_set): Use the element alias-set for arrays.
index c3a3f2b..ae14651 100644 (file)
@@ -37,8 +37,6 @@
     rs6000_float_gprs = 1; \
   if (!rs6000_explicit_options.spe) \
     rs6000_spe = 1; \
-  if (!rs6000_explicit_options.isel) \
-    rs6000_isel = 1; \
   if (target_flags & MASK_64BIT) \
     error ("-m64 not supported in this configuration")
 
index c526cf8..bcc403e 100644 (file)
@@ -36,8 +36,6 @@
     rs6000_float_gprs = 1; \
   if (!rs6000_explicit_options.spe) \
     rs6000_spe = 1; \
-  if (!rs6000_explicit_options.isel) \
-    rs6000_isel = 1; \
   if (target_flags & MASK_64BIT) \
     error ("-m64 not supported in this configuration")
 
index dcbccbc..66e4b51 100644 (file)
@@ -1553,7 +1553,7 @@ rs6000_override_options (const char *default_cpu)
        }
     }
 
-  if (TARGET_E500)
+  if (TARGET_E500 && !rs6000_explicit_options.isel)
     rs6000_isel = 1;
 
   if (rs6000_cpu == PROCESSOR_PPCE300C2 || rs6000_cpu == PROCESSOR_PPCE300C3)
index 08bd74c..dfbe10d 100644 (file)
@@ -1,3 +1,9 @@
+2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
+
+       PR target/36425
+       * gcc.target/powerpc/e500-1.c: New test case to verify
+       mno-isel option.
+
 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gnat.dg/specs/varsize_copy.ad[sb]: New test.
diff --git a/gcc/testsuite/gcc.target/powerpc/e500-1.c b/gcc/testsuite/gcc.target/powerpc/e500-1.c
new file mode 100644 (file)
index 0000000..76a0e4a
--- /dev/null
@@ -0,0 +1,14 @@
+/* Test functioning of command option -mno-isel */
+/* { dg-do compile { target powerpc*-*-linux* } } */
+/* { dg-options "-O2 -mno-isel" } */
+
+/* { dg-final { scan-assembler-not "isel" } } */
+
+int
+foo (int x, int y)
+{
+  if (x < y)
+    return x;
+  else
+    return y;
+}