1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2 ; RUN: llc -mtriple aarch64-none-linux-gnu < %s | FileCheck %s
4 define i32 @uaddlv_uaddlp_v8i16(<8 x i16> %0) {
5 ; CHECK-LABEL: uaddlv_uaddlp_v8i16:
7 ; CHECK-NEXT: uaddlv s0, v0.8h
8 ; CHECK-NEXT: fmov x0, d0
9 ; CHECK-NEXT: // kill: def $w0 killed $w0 killed $x0
11 %2 = tail call <4 x i32> @llvm.aarch64.neon.uaddlp.v4i32.v8i16(<8 x i16> %0)
12 %3 = tail call i64 @llvm.aarch64.neon.uaddlv.i64.v4i32(<4 x i32> %2)
13 %4 = trunc i64 %3 to i32
17 define i16 @uaddlv_uaddlp_v16i8(<16 x i8> %0) {
18 ; CHECK-LABEL: uaddlv_uaddlp_v16i8:
20 ; CHECK-NEXT: uaddlv h0, v0.16b
21 ; CHECK-NEXT: fmov w0, s0
23 %2 = tail call <8 x i16> @llvm.aarch64.neon.uaddlp.v8i16.v16i8(<16 x i8> %0)
24 %3 = tail call i32 @llvm.aarch64.neon.uaddlv.i32.v8i16(<8 x i16> %2)
25 %4 = trunc i32 %3 to i16
29 define i16 @uaddlv_uaddlp_v8i8(<8 x i8> %0) {
30 ; CHECK-LABEL: uaddlv_uaddlp_v8i8:
32 ; CHECK-NEXT: uaddlv h0, v0.8b
33 ; CHECK-NEXT: fmov w0, s0
35 %2 = tail call <4 x i16> @llvm.aarch64.neon.uaddlp.v4i16.v8i8(<8 x i8> %0)
36 %3 = tail call i32 @llvm.aarch64.neon.uaddlv.i32.v4i16(<4 x i16> %2)
37 %4 = trunc i32 %3 to i16
41 declare i64 @llvm.aarch64.neon.uaddlv.i64.v4i32(<4 x i32>)
42 declare i32 @llvm.aarch64.neon.uaddlv.i32.v8i16(<8 x i16>)
43 declare i32 @llvm.aarch64.neon.uaddlv.i32.v4i16(<4 x i16>)
44 declare <4 x i32> @llvm.aarch64.neon.uaddlp.v4i32.v8i16(<8 x i16>)
45 declare <8 x i16> @llvm.aarch64.neon.uaddlp.v8i16.v16i8(<16 x i8>)
46 declare <4 x i16> @llvm.aarch64.neon.uaddlp.v4i16.v8i8(<8 x i8>)