brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · fca30e5 Raw
39 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=thumbv8.1m.main-none-none-eabi -mattr=+mve.fp -enable-arm-maskedldst %s -o - | FileCheck %s3 4; This files has some unused gathers, making sure that they do not cause5; problems as the function gets simplified.6 7define arm_aapcs_vfpcc void @unused1(<4 x ptr> %offs) {8; CHECK-LABEL: unused1:9; CHECK:       @ %bb.0: @ %entry10; CHECK-NEXT:    bx lr11entry: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)13  ret void14}15 16define arm_aapcs_vfpcc void @unused2(<4 x ptr> %offs) {17; CHECK-LABEL: unused2:18; CHECK:       @ %bb.0: @ %entry19; CHECK-NEXT:    bx lr20entry: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)23  ret void24}25 26define arm_aapcs_vfpcc void @unused2_used(<4 x ptr> %offs) {27; CHECK-LABEL: unused2_used:28; CHECK:       @ %bb.0: @ %entry29; CHECK-NEXT:    bx lr30entry: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, %gather234  ret void35}36 37 38declare <4 x i32> @llvm.masked.gather.v4i32.v4p0(<4 x ptr>, i32, <4 x i1>, <4 x i32>)39