fix warning, add a panic when irio imports vector modes
authorMatthias Braun <matze@braunis.de>
Thu, 7 May 2009 13:24:08 +0000 (13:24 +0000)
committerMatthias Braun <matze@braunis.de>
Thu, 7 May 2009 13:24:08 +0000 (13:24 +0000)
[r25886]

ir/ir/irio.c

index c94065e..f0633e8 100644 (file)
@@ -1481,6 +1481,9 @@ static int parse_modes(io_env_t *env)
                                ir_mode_arithmetic arith = read_mode_arithmetic(env);
                                unsigned modulo_shift = read_long(env);
                                int vector_elems = read_long(env);
+                               if (vector_elems != 1) {
+                                       panic("no support for import of vector modes yes");
+                               }
 
                                ir_mode *mode = new_ir_mode(name, sort, size, sign, arith, modulo_shift);