Home | History | Annotate | Download | only in GlobalISel
      1 # RUN: llc -march=amdgcn -run-pass=instruction-select -verify-machineinstrs -global-isel %s -o - | FileCheck %s -check-prefixes=GCN
      2 
      3 --- |
      4   define amdgpu_kernel void @fadd(i32 addrspace(1)* %global0) {ret void}
      5 ...
      6 ---
      7 
      8 name:            fadd
      9 legalized:       true
     10 regBankSelected: true
     11 
     12 # GCN-LABEL: name: fadd
     13 body: |
     14   bb.0:
     15     liveins: $sgpr0, $vgpr0, $vgpr1, $vgpr3_vgpr4
     16     %0:sgpr(s32) = COPY $sgpr0
     17     %1:vgpr(s32) = COPY $vgpr0
     18     %2:vgpr(s32) = COPY $vgpr1
     19     %3:vgpr(s64) = COPY $vgpr3_vgpr4
     20 
     21     ; fadd vs
     22     ; GCN: V_ADD_F32_e64
     23     %4:vgpr(s32) = G_FADD %1, %0
     24 
     25     ; fadd sv
     26     ; GCN: V_ADD_F32_e64
     27     %5:vgpr(s32) = G_FADD %0, %1
     28 
     29     ; fadd vv
     30     ; GCN: V_ADD_F32_e64
     31     %6:vgpr(s32) = G_FADD %1, %2
     32 
     33     G_STORE %4, %3 :: (store 4 into %ir.global0)
     34     G_STORE %5, %3 :: (store 4 into %ir.global0)
     35     G_STORE %6, %3 :: (store 4 into %ir.global0)
     36 ...
     37 ---
     38