aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/MachineVerifier/test_g_vscale.mir
blob: f4ff76766a84e5677a663262f19631d3246d983f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# RUN: not --crash llc -verify-machineinstrs -mtriple=arm64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
# REQUIRES: aarch64-registered-target

---
name:            g_vscale
body: |
  bb.0:

  %1:_(s32) = G_CONSTANT i32 4

  ; CHECK: G_VSCALE operand must be cimm
  %2:_(s32) = G_VSCALE %1

  ; CHECK: G_VSCALE immediate cannot be zero
  %3:_(s32) = G_VSCALE i32 0
...