• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2# RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -O0 -run-pass=legalizer %s -o - | FileCheck %s
3
4--- |
5  define void @test_and() { ret void }
6...
7
8---
9name:            test_and
10registers:
11  - { id: 0, class: _ }
12  - { id: 1, class: _ }
13  - { id: 2, class: _ }
14body: |
15  bb.0:
16    liveins: $vgpr0, $vgpr1
17
18    ; CHECK-LABEL: name: test_and
19    ; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
20    ; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
21    ; CHECK: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY]], [[COPY1]]
22    %0(s32) = COPY $vgpr0
23    %1(s32) = COPY $vgpr1
24    %2(s32) = G_AND %0, %1
25    $vgpr0 = COPY %2
26...
27