Home | History | Annotate | Download | only in R600
      1 ; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs< %s | FileCheck -check-prefix=SI %s
      2 
      3 ; Copy VGPR -> SGPR used twice as an instruction operand, which is then
      4 ; used in an REG_SEQUENCE that also needs to be handled.
      5 
      6 ; SI-LABEL: @test_dup_operands:
      7 ; SI: V_ADD_I32_e32
      8 define void @test_dup_operands(<2 x i32> addrspace(1)* noalias %out, <2 x i32> addrspace(1)* noalias %in) {
      9   %a = load <2 x i32> addrspace(1)* %in
     10   %lo = extractelement <2 x i32> %a, i32 0
     11   %hi = extractelement <2 x i32> %a, i32 1
     12   %add = add i32 %lo, %lo
     13   %vec0 = insertelement <2 x i32> undef, i32 %add, i32 0
     14   %vec1 = insertelement <2 x i32> %vec0, i32 %hi, i32 1
     15   store <2 x i32> %vec1, <2 x i32> addrspace(1)* %out, align 8
     16   ret void
     17 }
     18 
     19