xref: /llvm-project/llvm/test/MachineVerifier/test_g_ubfx_sbfx.mir (revision d20190e68413634b87f0f9426312a0e9d8456d18)
1# RUN: not --crash llc -mtriple=arm64 -verify-machineinstrs -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
2# REQUIRES: aarch64-registered-target
3
4name:            test
5body: |
6  bb.0:
7    %v1:_(<2 x s64>) = G_IMPLICIT_DEF
8    %v2:_(<2 x s64>) = G_IMPLICIT_DEF
9    %v3:_(<2 x s64>) = G_IMPLICIT_DEF
10
11    ; CHECK: *** Bad machine code: Bitfield extraction is not supported on vectors ***
12    %ubfx_vector:_(<2 x s64>) = G_UBFX %v1, %v2, %v3
13    ; CHECK: *** Bad machine code: Bitfield extraction is not supported on vectors ***
14    %sbfx_vector:_(<2 x s64>) = G_SBFX %v1, %v2, %v3
15...
16