1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=aarch64 -run-pass=regbankselect -verify-machineinstrs %s -o - | FileCheck %s
4 # Verify register banks for intrinsics with known constraints. (E.g. all
5 # operands must be FPRs.
13 tracksRegLiveness: true
18 ; CHECK-LABEL: name: uaddlv_fpr
20 ; CHECK: %copy:fpr(<16 x s8>) = COPY $q0
21 ; CHECK: %intrin:fpr(s32) = G_INTRINSIC intrinsic(@llvm.aarch64.neon.uaddlv), %copy(<16 x s8>)
22 ; CHECK: $w0 = COPY %intrin(s32)
23 ; CHECK: RET_ReallyLR implicit $w0
24 %copy:_(<16 x s8>) = COPY $q0
25 %intrin:_(s32) = G_INTRINSIC intrinsic(@llvm.aarch64.neon.uaddlv), %copy(<16 x s8>)
26 $w0 = COPY %intrin(s32)
27 RET_ReallyLR implicit $w0
34 tracksRegLiveness: true
38 ; CHECK-LABEL: name: uaddlv_fpr_load
40 ; CHECK: %ptr:gpr(p0) = COPY $x0
41 ; CHECK: %load:fpr(<2 x s32>) = G_LOAD %ptr(p0) :: (load (<2 x s32>))
42 ; CHECK: %intrin:fpr(s32) = G_INTRINSIC intrinsic(@llvm.aarch64.neon.uaddlv), %load(<2 x s32>)
43 ; CHECK: $w0 = COPY %intrin(s32)
44 ; CHECK: RET_ReallyLR implicit $w0
46 %load:_(<2 x s32>) = G_LOAD %ptr :: (load (<2 x s32>))
47 %intrin:_(s32) = G_INTRINSIC intrinsic(@llvm.aarch64.neon.uaddlv), %load(<2 x s32>)
48 $w0 = COPY %intrin(s32)
49 RET_ReallyLR implicit $w0
53 name: uaddlv_fpr_store
56 tracksRegLiveness: true
60 ; CHECK-LABEL: name: uaddlv_fpr_store
61 ; CHECK: liveins: $x0, $x1
62 ; CHECK: %copy:gpr(<2 x s32>) = COPY $x0
63 ; CHECK: %ptr:gpr(p0) = COPY $x0
64 ; CHECK: [[COPY:%[0-9]+]]:fpr(<2 x s32>) = COPY %copy(<2 x s32>)
65 ; CHECK: %intrin:fpr(s32) = G_INTRINSIC intrinsic(@llvm.aarch64.neon.uaddlv), [[COPY]](<2 x s32>)
66 ; CHECK: G_STORE %intrin(s32), %ptr(p0) :: (store (s32))
67 %copy:_(<2 x s32>) = COPY $x0
69 %intrin:_(s32) = G_INTRINSIC intrinsic(@llvm.aarch64.neon.uaddlv), %copy(<2 x s32>)
70 G_STORE %intrin, %ptr :: (store (s32))