aboutsummaryrefslogtreecommitdiffstats
path: root/src/ortho/gcc/ortho-lang-7.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ortho/gcc/ortho-lang-7.c')
-rw-r--r--src/ortho/gcc/ortho-lang-7.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ortho/gcc/ortho-lang-7.c b/src/ortho/gcc/ortho-lang-7.c
index f871bf93c..e9c0d47c8 100644
--- a/src/ortho/gcc/ortho-lang-7.c
+++ b/src/ortho/gcc/ortho-lang-7.c
@@ -718,6 +718,14 @@ type_for_mode (enum machine_mode mode, int unsignedp)
if (mode == TYPE_MODE (long_double_type_node))
return long_double_type_node;
+ if (VECTOR_MODE_P (mode))
+ {
+ machine_mode inner_mode = GET_MODE_INNER (mode);
+ tree inner_type = type_for_mode (inner_mode, unsignedp);
+ if (inner_type)
+ return build_vector_type_for_mode (inner_type, mode);
+ }
+
return NULL_TREE;
}