Skip to content

Commit ab15c3b

Browse files
committed
Fix 'unrecognizable instruction' error for convert_vector (IFN_VEC_CONVERT)
1 parent 0137524 commit ab15c3b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gcc/jit/jit-playback.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,6 +1556,9 @@ convert_vector (location *loc,
15561556

15571557
tree t_vector = vector->as_tree ();
15581558

1559+
/* It seems IFN_VEC_CONVERT only work on registers, not on memory. */
1560+
if (TREE_CODE (t_vector) == VAR_DECL)
1561+
DECL_REGISTER (t_vector) = 1;
15591562
tree t_result = build_call_expr_internal_loc (UNKNOWN_LOCATION, IFN_VEC_CONVERT, type->as_tree (), 1, t_vector);
15601563

15611564
if (loc)

0 commit comments

Comments
 (0)