Re: [PATCH]AArch64 Update costing for vector conversions [PR110625]

2023-12-29 Thread Richard Sandiford
Tamar Christina writes: > Hi All, > > In gimple the operation > > short _8; > double _9; > _9 = (double) _8; > > denotes two operations. First we have to widen from short to long and then > convert this integer to a double. Think it's worth saying "two operations on AArch64". Some targets can

[PATCH]AArch64 Update costing for vector conversions [PR110625]

2023-12-29 Thread Tamar Christina
Hi All, In gimple the operation short _8; double _9; _9 = (double) _8; denotes two operations. First we have to widen from short to long and then convert this integer to a double. Currently however we only count the widen/truncate operations: (double) _5 6 times vec_promote_demote costs 12