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 @fptoui(i32 addrspace(1)* %global0) {ret void}
      5 ...
      6 ---
      7 
      8 name:            fptoui
      9 legalized:       true
     10 regBankSelected: true
     11 
     12 # GCN-LABEL: name: fptoui
     13 body: |
     14   bb.0:
     15     liveins: $sgpr0, $vgpr0, $vgpr3_vgpr4
     16 
     17     ; GCN: [[SGPR:%[0-9]+]]:sreg_32_xm0 = COPY $sgpr0
     18     %0:sgpr(s32) = COPY $sgpr0
     19 
     20     ; GCN: [[VGPR:%[0-9]+]]:vgpr_32 = COPY $vgpr0
     21     %1:vgpr(s32) = COPY $vgpr0
     22 
     23     %2:vgpr(s64) = COPY $vgpr3_vgpr4
     24 
     25     ; fptoui s
     26     ; GCN: V_CVT_U32_F32_e64 0, [[SGPR]], 0, 0
     27     %3:vgpr(s32) = G_FPTOUI %0
     28 
     29     ; fptoui v
     30     ; GCN: V_CVT_U32_F32_e64 0, [[VGPR]], 0, 0
     31     %4:vgpr(s32) = G_FPTOUI %1
     32 
     33     G_STORE %3, %2 :: (store 4 into %ir.global0)
     34     G_STORE %4, %2 :: (store 4 into %ir.global0)
     35 ...
     36 ---
     37