Extended Description
As discussed in https://reviews.llvm.org/D54392 :
define <4 x i16> @usubl(<8 x i8> %a, <8 x i8> %b) {
%za = zext <8 x i8> %a to <8 x i16>
%zb = zext <8 x i8> %b to <8 x i16>
%xa = shufflevector <8 x i16> %za, <8 x i16> undef, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
%xb = shufflevector <8 x i16> %zb, <8 x i16> undef, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
%bo = sub <4 x i16> %xa, %xb
ret <4 x i16> %bo
}
$ llc -o - uxtl.ll -mtriple=aarch64
ushll v0.8h, v0.8b, #0
ushll v1.8h, v1.8b, #0
sub v0.4h, v0.4h, v1.4h
ret
This should be "usubl"? Similar matching should be added for other math ops and types supported by the ISA.