summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-and.mir
blob: 50ef150510d224f86dd643c2f61e9c215c13185a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -O0 -run-pass=legalizer -global-isel %s -o - | FileCheck %s

--- |
  define void @test_and() { ret void }
...

---
name:            test_and
registers:
  - { id: 0, class: _ }
  - { id: 1, class: _ }
  - { id: 2, class: _ }
body: |
  bb.0:
    liveins: %vgpr0, %vgpr1
    ; CHECK-LABEL: name: test_and
    ; CHECK: %2(s32) = G_AND %0, %1

    %0(s32) = COPY %vgpr0
    %1(s32) = COPY %vgpr1
    %2(s32) = G_AND %0, %1
...
OpenPOWER on IntegriCloud