1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2# RUN: llc -mtriple=amdgcn-mesa-mesa3d -O0 -run-pass=legalizer -global-isel %s -o - | FileCheck %s
3
4---
5name:            test_ashr
6registers:
7  - { id: 0, class: _ }
8  - { id: 1, class: _ }
9  - { id: 2, class: _ }
10body: |
11  bb.0.entry:
12    liveins: $vgpr0, $vgpr1
13
14    ; CHECK-LABEL: name: test_ashr
15    ; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
16    ; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
17    ; CHECK: [[SHL:%[0-9]+]]:_(s32) = G_ASHR [[COPY]], [[COPY1]]
18    %0(s32) = COPY $vgpr0
19    %1(s32) = COPY $vgpr1
20    %2(s32) = G_ASHR %0, %1
21    $vgpr0 = COPY %2
22...
23