• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: not --crash llc %s -march=ve -mattr=+vpu -o /dev/null |& FileCheck %s
2
3; CHECK:  t{{[0-9]+}}: v256i32 = vp_srem [[A:t[0-9]+]], [[B:t[0-9]+]], [[MASK:t[0-9]+]], [[EVL:t[0-9]+]]
4; CHECK:  [[A]]: v256i32
5; CHECK:  [[B]]: v256i32
6; CHECK:  [[MASK]]: v256i1
7; CHECK:  [[EVL]]: i32
8
9define <256 x i32> @test_vp_int(<256 x i32> %i0, <256 x i32> %i1, <256 x i1> %m, i32 %n) {
10  %r0 = call <256 x i32> @llvm.vp.srem.v256i32(<256 x i32> %i0, <256 x i32> %i1, <256 x i1> %m, i32 %n)
11  ret <256 x i32> %r0
12}
13
14; integer arith
15declare <256 x i32> @llvm.vp.srem.v256i32(<256 x i32>, <256 x i32>, <256 x i1>, i32)
16