brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.2 KiB · ef549c5 Raw
59 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=ve-unknown-unknown -mattr=+vpu | FileCheck %s3 4declare <256 x i64> @llvm.vp.gather.v256i64.v256p0(<256 x ptr>, <256 x i1>, i32)5 6; Function Attrs: nounwind7define fastcc <256 x i64> @vp_gather_v256i64(<256 x ptr> %P, <256 x i1> %M, i32 %avl) {8; CHECK-LABEL: vp_gather_v256i64:9; CHECK:       # %bb.0:10; CHECK-NEXT:    and %s0, %s0, (32)011; CHECK-NEXT:    lvl %s012; CHECK-NEXT:    vgt %v0, %v0, 0, 0, %vm113; CHECK-NEXT:    b.l.t (, %s10)14  %r = call <256 x i64> @llvm.vp.gather.v256i64.v256p0(<256 x ptr> %P, <256 x i1> %M, i32 %avl)15  ret <256 x i64> %r16}17 18declare <256 x double> @llvm.vp.gather.v256f64.v256p0(<256 x ptr>, <256 x i1>, i32)19 20; Function Attrs: nounwind21define fastcc <256 x double> @vp_gather_v256f64(<256 x ptr> %P, <256 x i1> %M, i32 %avl) {22; CHECK-LABEL: vp_gather_v256f64:23; CHECK:       # %bb.0:24; CHECK-NEXT:    and %s0, %s0, (32)025; CHECK-NEXT:    lvl %s026; CHECK-NEXT:    vgt %v0, %v0, 0, 0, %vm127; CHECK-NEXT:    b.l.t (, %s10)28  %r = call <256 x double> @llvm.vp.gather.v256f64.v256p0(<256 x ptr> %P, <256 x i1> %M, i32 %avl)29  ret <256 x double> %r30}31 32declare <256 x float> @llvm.vp.gather.v256f32.v256p0(<256 x ptr>, <256 x i1>, i32)33 34; Function Attrs: nounwind35define fastcc <256 x float> @vp_gather_v256f32(<256 x ptr> %P, <256 x i1> %M, i32 %avl) {36; CHECK-LABEL: vp_gather_v256f32:37; CHECK:       # %bb.0:38; CHECK-NEXT:    and %s0, %s0, (32)039; CHECK-NEXT:    lvl %s040; CHECK-NEXT:    vgtu %v0, %v0, 0, 0, %vm141; CHECK-NEXT:    b.l.t (, %s10)42  %r = call <256 x float> @llvm.vp.gather.v256f32.v256p0(<256 x ptr> %P, <256 x i1> %M, i32 %avl)43  ret <256 x float> %r44}45 46declare <256 x i32> @llvm.vp.gather.v256i32.v256p0(<256 x ptr>, <256 x i1>, i32)47 48; Function Attrs: nounwind49define fastcc <256 x i32> @vp_gather_v256i32(<256 x ptr> %P, <256 x i1> %M, i32 %avl) {50; CHECK-LABEL: vp_gather_v256i32:51; CHECK:       # %bb.0:52; CHECK-NEXT:    and %s0, %s0, (32)053; CHECK-NEXT:    lvl %s054; CHECK-NEXT:    vgtl.zx %v0, %v0, 0, 0, %vm155; CHECK-NEXT:    b.l.t (, %s10)56  %r = call <256 x i32> @llvm.vp.gather.v256i32.v256p0(<256 x ptr> %P, <256 x i1> %M, i32 %avl)57  ret <256 x i32> %r58}59