We don't have sign-/zero-extending ldg/ldu instructions defined,
so we need to emulate them with explicit CVTs. We were originally
handling the i8 case, but not any other cases.
Fixes PR26185
Differential D19615
[NVPTX] Fix sign/zero-extending ldg/ldu instruction selection Authored by jholewinski on Apr 27 2016, 1:40 PM.
Details We don't have sign-/zero-extending ldg/ldu instructions defined, Fixes PR26185
Diff Detail Event TimelineComment Actions Awesome! Thanks Justin.
| ||||||||||||||||||
The giant if-switch below may be simplified by
DestType = OrigType.getSimpleVT().SimpleTy; if (SizeOf(EltVT) < SizeOf(DestType)) { CvtOpc = GetConvertOpcode(EltVT, DestType); ... }