devices-main.c: Move to devices subdirectory.
authorJozef Lawrynowicz <jozef.l@mittosystems.com>
Thu, 31 Oct 2019 17:36:53 +0000 (17:36 +0000)
committerJozef Lawrynowicz <jozefl@gcc.gnu.org>
Thu, 31 Oct 2019 17:36:53 +0000 (17:36 +0000)
2019-10-31  Jozef Lawrynowicz  <jozef.l@mittosystems.com>

* gcc.target/msp430/devices-main.c: Move to devices subdirectory.
* gcc.target/msp430/devices/bad-devices-1.c: Update #include path to
devices-main.c.
* gcc.target/msp430/devices/bad-devices-2.c: Likewise.
* gcc.target/msp430/devices/bad-devices-3.c: Likewise.
* gcc.target/msp430/devices/bad-devices-4.c: Likewise.
* gcc.target/msp430/devices/bad-devices-5.c: Likewise.
* gcc.target/msp430/devices/bad-devices-6.c: Likewise.
* gcc.target/msp430/devices/csv-device-order.c: Likewise.
* gcc.target/msp430/devices/csv-msp430_00.c: Likewise.
* gcc.target/msp430/devices/csv-msp430_01.c: Likewise.
* gcc.target/msp430/devices/csv-msp430_02.c: Likewise.
* gcc.target/msp430/devices/csv-msp430_04.c: Likewise.
* gcc.target/msp430/devices/csv-msp430_08.c: Likewise.
* gcc.target/msp430/devices/csv-msp430_10.c: Likewise.
* gcc.target/msp430/devices/csv-msp430_11.c: Likewise.
* gcc.target/msp430/devices/csv-msp430_12.c: Likewise.
* gcc.target/msp430/devices/csv-msp430_14.c: Likewise.
* gcc.target/msp430/devices/csv-msp430_18.c: Likewise.
* gcc.target/msp430/devices/csv-msp430_20.c: Likewise.
* gcc.target/msp430/devices/csv-msp430_21.c: Likewise.
* gcc.target/msp430/devices/csv-msp430_22.c: Likewise.
* gcc.target/msp430/devices/csv-msp430_24.c: Likewise.
* gcc.target/msp430/devices/csv-msp430_28.c: Likewise.
* gcc.target/msp430/devices/csv-msp430fr5969.c: Likewise.
* gcc.target/msp430/devices/hard-cc430f5123.c: Likewise.
* gcc.target/msp430/devices/hard-foo.c: Likewise.
* gcc.target/msp430/devices/hard-msp430afe253.c: Likewise.
* gcc.target/msp430/devices/hard-msp430cg4616.c: Likewise.
* gcc.target/msp430/devices/hard-msp430f4783.c: Likewise.
* gcc.target/msp430/devices/hard-rf430frl154h_rom.c: Likewise.

From-SVN: r277684

31 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/msp430/devices/bad-devices-1.c
gcc/testsuite/gcc.target/msp430/devices/bad-devices-2.c
gcc/testsuite/gcc.target/msp430/devices/bad-devices-3.c
gcc/testsuite/gcc.target/msp430/devices/bad-devices-4.c
gcc/testsuite/gcc.target/msp430/devices/bad-devices-5.c
gcc/testsuite/gcc.target/msp430/devices/bad-devices-6.c
gcc/testsuite/gcc.target/msp430/devices/csv-device-order.c
gcc/testsuite/gcc.target/msp430/devices/csv-msp430_00.c
gcc/testsuite/gcc.target/msp430/devices/csv-msp430_01.c
gcc/testsuite/gcc.target/msp430/devices/csv-msp430_02.c
gcc/testsuite/gcc.target/msp430/devices/csv-msp430_04.c
gcc/testsuite/gcc.target/msp430/devices/csv-msp430_08.c
gcc/testsuite/gcc.target/msp430/devices/csv-msp430_10.c
gcc/testsuite/gcc.target/msp430/devices/csv-msp430_11.c
gcc/testsuite/gcc.target/msp430/devices/csv-msp430_12.c
gcc/testsuite/gcc.target/msp430/devices/csv-msp430_14.c
gcc/testsuite/gcc.target/msp430/devices/csv-msp430_18.c
gcc/testsuite/gcc.target/msp430/devices/csv-msp430_20.c
gcc/testsuite/gcc.target/msp430/devices/csv-msp430_21.c
gcc/testsuite/gcc.target/msp430/devices/csv-msp430_22.c
gcc/testsuite/gcc.target/msp430/devices/csv-msp430_24.c
gcc/testsuite/gcc.target/msp430/devices/csv-msp430_28.c
gcc/testsuite/gcc.target/msp430/devices/csv-msp430fr5969.c
gcc/testsuite/gcc.target/msp430/devices/devices-main.c [new file with mode: 0644]
gcc/testsuite/gcc.target/msp430/devices/hard-cc430f5123.c
gcc/testsuite/gcc.target/msp430/devices/hard-foo.c
gcc/testsuite/gcc.target/msp430/devices/hard-msp430afe253.c
gcc/testsuite/gcc.target/msp430/devices/hard-msp430cg4616.c
gcc/testsuite/gcc.target/msp430/devices/hard-msp430f4783.c
gcc/testsuite/gcc.target/msp430/devices/hard-rf430frl154h_rom.c

index 1830b4d691f176fa3dfe0d209b970fbc70a573d1..79936089d20ab92816fd4f621717373a7f8af5f5 100644 (file)
@@ -1,3 +1,37 @@
+2019-10-31  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
+
+       * gcc.target/msp430/devices-main.c: Move to devices subdirectory.
+       * gcc.target/msp430/devices/bad-devices-1.c: Update #include path to
+       devices-main.c.
+       * gcc.target/msp430/devices/bad-devices-2.c: Likewise.
+       * gcc.target/msp430/devices/bad-devices-3.c: Likewise.
+       * gcc.target/msp430/devices/bad-devices-4.c: Likewise.
+       * gcc.target/msp430/devices/bad-devices-5.c: Likewise.
+       * gcc.target/msp430/devices/bad-devices-6.c: Likewise.
+       * gcc.target/msp430/devices/csv-device-order.c: Likewise.
+       * gcc.target/msp430/devices/csv-msp430_00.c: Likewise.
+       * gcc.target/msp430/devices/csv-msp430_01.c: Likewise.
+       * gcc.target/msp430/devices/csv-msp430_02.c: Likewise.
+       * gcc.target/msp430/devices/csv-msp430_04.c: Likewise.
+       * gcc.target/msp430/devices/csv-msp430_08.c: Likewise.
+       * gcc.target/msp430/devices/csv-msp430_10.c: Likewise.
+       * gcc.target/msp430/devices/csv-msp430_11.c: Likewise.
+       * gcc.target/msp430/devices/csv-msp430_12.c: Likewise.
+       * gcc.target/msp430/devices/csv-msp430_14.c: Likewise.
+       * gcc.target/msp430/devices/csv-msp430_18.c: Likewise.
+       * gcc.target/msp430/devices/csv-msp430_20.c: Likewise.
+       * gcc.target/msp430/devices/csv-msp430_21.c: Likewise.
+       * gcc.target/msp430/devices/csv-msp430_22.c: Likewise.
+       * gcc.target/msp430/devices/csv-msp430_24.c: Likewise.
+       * gcc.target/msp430/devices/csv-msp430_28.c: Likewise.
+       * gcc.target/msp430/devices/csv-msp430fr5969.c: Likewise.
+       * gcc.target/msp430/devices/hard-cc430f5123.c: Likewise.
+       * gcc.target/msp430/devices/hard-foo.c: Likewise.
+       * gcc.target/msp430/devices/hard-msp430afe253.c: Likewise.
+       * gcc.target/msp430/devices/hard-msp430cg4616.c: Likewise.
+       * gcc.target/msp430/devices/hard-msp430f4783.c: Likewise.
+       * gcc.target/msp430/devices/hard-rf430frl154h_rom.c: Likewise.
+
 2019-10-31  Richard Sandiford  <richard.sandiford@arm.com>
 
        * g++.target/aarch64/sve/vcond_1_run.C: Update test name.
index 29ef85968d53745c0b428d185bf796b1359a1685..2f01d7797cb42a8d763a29b270ca4ea4e2cc29cc 100644 (file)
@@ -2,4 +2,4 @@
 /* { dg-additional-options "-mmcu=msp430_00 -mno-warn-mcu" } */
 /* { dg-warning "'CPU_TYPE' column heading is missing from 'devices.csv'" "" { target *-*-* } 0 } */
 
-#include "../devices-main.c"
+#include "devices-main.c"
index 32e5cebd46e2cde50d791969703ae557f1276d83..dcf37c529479bf39b57012289ab699a246273317 100644 (file)
@@ -2,4 +2,4 @@
 /* { dg-additional-options "-mmcu=msp430_00 -mno-warn-mcu" } */
 /* { dg-warning "'MPY_TYPE' column heading is missing from 'devices.csv'" "" { target *-*-* } 0 } */
 
-#include "../devices-main.c"
+#include "devices-main.c"
index c982c4a7de5935962e1e5a5f2cd8fdba00e51a1a..9556104b69a0e0bd69a3e5897ffefa835cb74414 100644 (file)
@@ -2,4 +2,4 @@
 /* { dg-additional-options "-mmcu=msp430_00 -mno-warn-mcu" } */
 /* { dg-warning "'CPU_TYPE' and 'MPY_TYPE' column headings are missing from 'devices.csv'" "" { target *-*-* } 0 } */
 
-#include "../devices-main.c"
+#include "devices-main.c"
index 89ebe61d179e13d37417d64beef4bcef264d64c8..d687fd2206bcad8916c5067fcd0616088571ca8f 100644 (file)
@@ -2,4 +2,4 @@
 /* { dg-additional-options "-mmcu=msp430_00 -mno-warn-mcu" } */
 /* { dg-warning "format of column headings in 'devices.csv' is incorrect" "" { target *-*-* } 0 } */
 
-#include "../devices-main.c"
+#include "devices-main.c"
index e33bac06b425f3f9d4e60b34a1dc7750dff7562d..639608400ad49d4f095c9ba1e55985c70050475c 100644 (file)
@@ -2,4 +2,4 @@
 /* { dg-additional-options "-mmcu=msp430_00 -mno-warn-mcu" } */
 /* { dg-warning "invalid 'CPU_TYPE' value of '5' read from 'devices.csv' for 'msp430_00'" "" { target *-*-* } 0 } */
 
-#include "../devices-main.c"
+#include "devices-main.c"
index 9dd9ed9e156c2ae7a5aa22c194507234b21440f6..9c31811d91756de6265e4e683726a861119f428e 100644 (file)
@@ -2,4 +2,4 @@
 /* { dg-additional-options "-mmcu=msp430_00 -mno-warn-mcu" } */
 /* { dg-warning "invalid 'MPY_TYPE' value of '3' read from 'devices.csv' for 'msp430_00'" "" { target *-*-* } 0 } */
 
-#include "../devices-main.c"
+#include "devices-main.c"
index 172880321de1a4ec079434c3ae7b509f7997a785..2bc338cd0ac6eb7fca72e25205b1080282004704 100644 (file)
@@ -8,4 +8,4 @@
    devices.csv, but should not be matched.
    Errors and warnings will be emitted if msp430f0123 is wrongly matched.  */
 
-#include "../devices-main.c"
+#include "devices-main.c"
index 8d56873140e6ebfd75160175509edce535a1b3ac..908faf2b9dffe5f2fc5350a9d5d16f326591e046 100644 (file)
@@ -4,4 +4,4 @@
 /* { dg-warning "supports 430 ISA but" "" { target msp430_430x_selected } 0 } */
 /* { dg-error "'-mlarge' requires a 430X-compatible '-mmcu='" "" { target msp430_mlarge_selected } 0 } */
 
-#include "../devices-main.c"
+#include "devices-main.c"
index 154511b6fea871ed8b0beddf1164d4c73621c165..36d5789185f7504faf26e1704a2cda047a15fe7c 100644 (file)
@@ -4,4 +4,4 @@
 /* { dg-warning "supports 430 ISA but" "" { target msp430_430x_selected } 0 } */
 /* { dg-error "'-mlarge' requires a 430X-compatible '-mmcu='" "" { target msp430_mlarge_selected } 0 } */
 
-#include "../devices-main.c"
+#include "devices-main.c"
index 4c72163890344911522b4fb300894ddb06005760..7d16dc7b390c6295b7c4193112050758c4dfe155 100644 (file)
@@ -4,4 +4,4 @@
 /* { dg-warning "supports 430 ISA but" "" { target msp430_430x_selected } 0 } */
 /* { dg-error "'-mlarge' requires a 430X-compatible '-mmcu='" "" { target msp430_mlarge_selected } 0 } */
 
-#include "../devices-main.c"
+#include "devices-main.c"
index c8ed711eb1d318c26cb7d26cd0c107e52ff06e56..a58796cec869d320e77758fd93ca9e4ecdb075cf 100644 (file)
@@ -4,4 +4,4 @@
 /* { dg-warning "supports 430 ISA but" "" { target msp430_430x_selected } 0 } */
 /* { dg-error "'-mlarge' requires a 430X-compatible '-mmcu='" "" { target msp430_mlarge_selected } 0 } */
 
-#include "../devices-main.c"
+#include "devices-main.c"
index 0214e636644965ca01024ef125efcd86ba1ef494..acb9bc2e1a7c162f9362f3d14297991fae188ae0 100644 (file)
@@ -4,4 +4,4 @@
 /* { dg-warning "supports 430 ISA but" "" { target msp430_430x_selected } 0 } */
 /* { dg-error "'-mlarge' requires a 430X-compatible '-mmcu='" "" { target msp430_mlarge_selected } 0 } */
 
-#include "../devices-main.c"
+#include "devices-main.c"
index 86f89ed51cfe15d39034e2cff0b3c6b09b25123a..807f2999ed44f204f27d30b43cc48dbcba76766c 100644 (file)
@@ -3,4 +3,4 @@
 /* { dg-warning "does not have hardware multiply" "" { target msp430_hwmul_not_none } 0 } */
 /* { dg-warning "supports 430X ISA but '-mcpu' option is set to 430" "" { target msp430_430_selected } 0 } */
 
-#include "../devices-main.c"
+#include "devices-main.c"
index 2923238e6b8007841fc78e0ec83499a33b483f9b..af0437a77d0558a15e6561af240913e75a11ea4d 100644 (file)
@@ -3,4 +3,4 @@
 /* { dg-warning "supports 430X ISA but '-mcpu' option is set to 430" "" { target msp430_430_selected } 0 } */
 /* { dg-warning "supports 16-bit hardware multiply" "" { target msp430_hwmul_not_16bit } 0 } */
 
-#include "../devices-main.c"
+#include "devices-main.c"
index ed59ac890c152030e1cf167474f3f5c79e21b8ef..c06ba8e46810d35c670a2f2e15127a56f9c3a2a5 100644 (file)
@@ -3,4 +3,4 @@
 /* { dg-warning "supports 430X ISA but '-mcpu' option is set to 430" "" { target msp430_430_selected } 0 } */
 /* { dg-warning "supports 16-bit hardware multiply" "" { target msp430_hwmul_not_16bit } 0 } */
 
-#include "../devices-main.c"
+#include "devices-main.c"
index fb038a0d30fdc8dc3ccc93208836905751b70678..69c769530d436258c32749692eb16b20aa0a4e1b 100644 (file)
@@ -3,4 +3,4 @@
 /* { dg-warning "supports 430X ISA but '-mcpu' option is set to 430" "" { target msp430_430_selected } 0 } */
 /* { dg-warning "supports 32-bit hardware multiply" "" { target msp430_hwmul_not_32bit } 0 } */
 
-#include "../devices-main.c"
+#include "devices-main.c"
index 133f984d031773b74aa735f8a477dda6428a8037..cdd0668078849adaa3c3a69f203f8f6107e42af1 100644 (file)
@@ -3,4 +3,4 @@
 /* { dg-warning "supports 430X ISA but '-mcpu' option is set to 430" "" { target msp430_430_selected } 0 } */
 /* { dg-warning "supports 32-bit .5xx. hardware multiply" "" { target msp430_hwmul_not_f5 } 0 } */
 
-#include "../devices-main.c"
+#include "devices-main.c"
index c7c94252b00d157a7180d51930b725da0710c5c3..df8256480a62a592f334adb71449cbd70927bc21 100644 (file)
@@ -3,4 +3,4 @@
 /* { dg-warning "does not have hardware multiply" "" { target msp430_hwmul_not_none } 0 } */
 /* { dg-warning "supports 430X ISA but '-mcpu' option is set to 430" "" { target msp430_430_selected } 0 } */
 
-#include "../devices-main.c"
+#include "devices-main.c"
index 8794f891db74abb5f5ad9244fa27101c945e54df..f46e4e47f3202b7c482cb17f050fbb6d83732f91 100644 (file)
@@ -3,4 +3,4 @@
 /* { dg-warning "supports 430X ISA but '-mcpu' option is set to 430" "" { target msp430_430_selected } 0 } */
 /* { dg-warning "supports 16-bit hardware multiply" "" { target msp430_hwmul_not_16bit } 0 } */
 
-#include "../devices-main.c"
+#include "devices-main.c"
index 47d90f4f73097f1541b4142093b6610194a7e703..ebc3c73b9bb8f79853075480cd582438c5a7f381 100644 (file)
@@ -3,4 +3,4 @@
 /* { dg-warning "supports 430X ISA but '-mcpu' option is set to 430" "" { target msp430_430_selected } 0 } */
 /* { dg-warning "supports 16-bit hardware multiply" "" { target msp430_hwmul_not_16bit } 0 } */
 
-#include "../devices-main.c"
+#include "devices-main.c"
index 0a616307e86249fc61471032c0cde0a6e495cae9..ea031aa329d0233b7a7623a798e85f98a2a4975c 100644 (file)
@@ -3,4 +3,4 @@
 /* { dg-warning "supports 430X ISA but '-mcpu' option is set to 430" "" { target msp430_430_selected } 0 } */
 /* { dg-warning "supports 32-bit hardware multiply" "" { target msp430_hwmul_not_32bit } 0 } */
 
-#include "../devices-main.c"
+#include "devices-main.c"
index 1243f7527e396009b234d8bfb14317ad41cb8133..ad002cee5391672740537369d67d8777c29996ca 100644 (file)
@@ -3,4 +3,4 @@
 /* { dg-warning "supports 430X ISA but '-mcpu' option is set to 430" "" { target msp430_430_selected } 0 } */
 /* { dg-warning "supports 32-bit .5xx. hardware multiply" "" { target msp430_hwmul_not_f5 } 0 } */
 
-#include "../devices-main.c"
+#include "devices-main.c"
index 636460756ad602fdacadcef7e89c73e18176a433..392ac99e54f073326116422d8aab1b7f90408188 100644 (file)
@@ -8,4 +8,4 @@
 /* { dg-error "'-mlarge' requires a 430X-compatible '-mmcu='" "" { target msp430_mlarge_selected } 0 } */
 
 
-#include "../devices-main.c"
+#include "devices-main.c"
diff --git a/gcc/testsuite/gcc.target/msp430/devices/devices-main.c b/gcc/testsuite/gcc.target/msp430/devices/devices-main.c
new file mode 100644 (file)
index 0000000..20448f4
--- /dev/null
@@ -0,0 +1,6 @@
+int
+main (void)
+{
+  while (1);
+  return 0;
+}
index 15a4ae1a584255e907a677946b6a6dd1c8faf31b..ec9e061a189fcbfa8e28aa4e1b3fa667d751bedd 100644 (file)
@@ -4,4 +4,4 @@
 /* { dg-warning "supports 32-bit .5xx. hardware multiply" "" { target msp430_hwmul_not_f5 } 0 } */
 
 /* revision=2, hwmpy=8 */
-#include "../devices-main.c"
+#include "devices-main.c"
index e13acb52c50c46c77542699265e97e8d3b913c69..2c0f572d9b37c47c9623fc1ceae533ffd756341d 100644 (file)
@@ -3,4 +3,4 @@
 /* { dg-warning "could not locate MCU data file 'devices.csv'" "" { target *-*-* } 0 } */
 /* { dg-warning "Unrecognized MCU name 'msp430foo'.*\n.*Use the" "" { target *-*-* } 0 } */
 
-#include "../devices-main.c"
+#include "devices-main.c"
index 9edf6eb02a7571eab90d37289bf6e8973016eca5..d19e09b33f2567291c46143b4506fcce14875be3 100644 (file)
@@ -5,4 +5,4 @@
 /* { dg-error "'-mlarge' requires a 430X-compatible '-mmcu='" "" { target msp430_mlarge_selected } 0 } */
 
 /* revision=0, hwmpy=2  */
-#include "../devices-main.c"
+#include "devices-main.c"
index 493d02258f2949529e4c1fb5a80b8c8eb396e42d..877a1156d74dd50f37b1c216ec8fcbc6efef3e8a 100644 (file)
@@ -4,4 +4,4 @@
 /* { dg-warning "supports 16-bit hardware multiply" "" { target msp430_hwmul_not_16bit } 0 } */
 
 /* revision=1, hwmpy=1 */
-#include "../devices-main.c"
+#include "devices-main.c"
index af918c3e516be11e5258aa6b3f6ee40fe3e28b88..ae0ae0c82f1fe325650c2589e632e2ebc53f22a7 100644 (file)
@@ -5,4 +5,4 @@
 /* { dg-error "'-mlarge' requires a 430X-compatible '-mmcu='" "" { target msp430_mlarge_selected } 0 } */
 
 /* revision=0, hwmpy=4  */
-#include "../devices-main.c"
+#include "devices-main.c"
index ad0c33d39b3fc126a2f6d692f883e4e4e9b52207..306d1d6c0911de057c1bca23cfc68bbec6289d58 100644 (file)
@@ -5,4 +5,4 @@
 /* { dg-error "'-mlarge' requires a 430X-compatible '-mmcu='" "" { target msp430_mlarge_selected } 0 } */
 
 /* revision=0, hwmpy=0  */
-#include "../devices-main.c"
+#include "devices-main.c"