1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=thumbv8.1m.main-none-none-eabi -mattr=+mve.fp -enable-arm-maskedldst %s -o - | FileCheck %s
4 ; This files has some unused gathers, making sure that they do not cause
5 ; problems as the function gets simplified.
7 define arm_aapcs_vfpcc void @unused1(<4 x ptr> %offs) {
8 ; CHECK-LABEL: unused1:
9 ; CHECK: @ %bb.0: @ %entry
12 %gather = call <4 x i32> @llvm.masked.gather.v4i32.v4p0(<4 x ptr> %offs, i32 4, <4 x i1> <i1 true, i1 true, i1 true, i1 true>, <4 x i32> undef)
16 define arm_aapcs_vfpcc void @unused2(<4 x ptr> %offs) {
17 ; CHECK-LABEL: unused2:
18 ; CHECK: @ %bb.0: @ %entry
21 %gather1 = call <4 x i32> @llvm.masked.gather.v4i32.v4p0(<4 x ptr> %offs, i32 4, <4 x i1> <i1 true, i1 true, i1 true, i1 true>, <4 x i32> undef)
22 %gather2 = call <4 x i32> @llvm.masked.gather.v4i32.v4p0(<4 x ptr> %offs, i32 4, <4 x i1> <i1 true, i1 true, i1 true, i1 true>, <4 x i32> undef)
26 define arm_aapcs_vfpcc void @unused2_used(<4 x ptr> %offs) {
27 ; CHECK-LABEL: unused2_used:
28 ; CHECK: @ %bb.0: @ %entry
31 %gather1 = call <4 x i32> @llvm.masked.gather.v4i32.v4p0(<4 x ptr> %offs, i32 4, <4 x i1> <i1 true, i1 true, i1 true, i1 true>, <4 x i32> undef)
32 %gather2 = call <4 x i32> @llvm.masked.gather.v4i32.v4p0(<4 x ptr> %offs, i32 4, <4 x i1> <i1 true, i1 true, i1 true, i1 true>, <4 x i32> undef)
33 %unused = add <4 x i32> %gather1, %gather2
38 declare <4 x i32> @llvm.masked.gather.v4i32.v4p0(<4 x ptr>, i32, <4 x i1>, <4 x i32>)