projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
17afeff
)
fix warning, add a panic when irio imports vector modes
author
Matthias Braun
<matze@braunis.de>
Thu, 7 May 2009 13:24:08 +0000
(13:24 +0000)
committer
Matthias Braun
<matze@braunis.de>
Thu, 7 May 2009 13:24:08 +0000
(13:24 +0000)
[r25886]
ir/ir/irio.c
patch
|
blob
|
history
diff --git
a/ir/ir/irio.c
b/ir/ir/irio.c
index
c94065e
..
f0633e8
100644
(file)
--- a/
ir/ir/irio.c
+++ b/
ir/ir/irio.c
@@
-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);
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);
ir_mode *mode = new_ir_mode(name, sort, size, sign, arith, modulo_shift);