summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AArch64/sve-neg-int-arith-imm-2.ll
blob: 56d65425dd9effcba5605b6ff38e4a4aed741c10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: not llc -mtriple=aarch64-linux-gnu -mattr=+sve < %s

; Numbers smaller than -127 and greater than or equal to 127 are not allowed.
; This should get lowered to a regular vector multiply and these tests should
; be updated when those patterns are added.

define <vscale x 2 x i64> @mul_i64_neg_1(<vscale x 2 x i64> %a) {
  %elt = insertelement <vscale x 2 x i64> undef, i64 255, i32 0
  %splat = shufflevector <vscale x 2 x i64> %elt, <vscale x 2 x i64> undef, <vscale x 2 x i32> zeroinitializer
  %res = mul <vscale x 2 x i64> %a, %splat
  ret <vscale x 2 x i64> %res
}
OpenPOWER on IntegriCloud