llvm.org GIT mirror llvm / release_80 test / CodeGen / AMDGPU / GlobalISel / legalize-fadd.mir
release_80

Tree @release_80 (Download .tar.gz)

legalize-fadd.mir @release_80raw · history · blame

# RUN: llc -mtriple=amdgcn-mesa-mesa3d -run-pass=legalizer %s -o - | FileCheck %s

---
name: test_fadd_f32
body: |
  bb.0.entry:
    liveins: $vgpr0, $vgpr1
    ; CHECK-LABEL: name: test_fadd
    ; CHECK: %2:_(s32) = G_FADD %0, %1

    %0:_(s32) = COPY $vgpr0
    %1:_(s32) = COPY $vgpr1
    %2:_(s32) = G_FADD %0, %1
    $vgpr0 = COPY %2
...
---
name: test_fadd_f64
body: |
  bb.0.entry:
    liveins: $vgpr0_vgpr1, $vgpr2_vgpr3

    %0:_(s64) = COPY $vgpr0_vgpr1
    %1:_(s64) = COPY $vgpr2_vgpr3
    %2:_(s64) = G_FADD %0, %1
    $vgpr0_vgpr1 = COPY %2
...