]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/AMDGPU/indirect-addressing-si-noopt.ll
Vendor import of llvm release_40 branch r296202:
[FreeBSD/FreeBSD.git] / test / CodeGen / AMDGPU / indirect-addressing-si-noopt.ll
1 ; RUN: llc -O0 -march=amdgcn -verify-machineinstrs < %s | FileCheck %s
2
3 ; FIXME: Merge into indirect-addressing-si.ll
4
5 ; Make sure that TwoAddressInstructions keeps src0 as subregister sub0
6 ; of the tied implicit use and def of the super register.
7
8 ; CHECK-LABEL: {{^}}insert_wo_offset:
9 ; CHECK: s_load_dword [[IN:s[0-9]+]]
10 ; CHECK: s_mov_b32 m0, [[IN]]
11 ; CHECK: v_movreld_b32_e32 v[[ELT0:[0-9]+]]
12 ; CHECK-NEXT: buffer_store_dwordx4 v{{\[}}[[ELT0]]:
13 define void @insert_wo_offset(<4 x float> addrspace(1)* %out, i32 %in) {
14 entry:
15   %ins = insertelement <4 x float> <float 1.0, float 2.0, float 3.0, float 4.0>, float 5.0, i32 %in
16   store <4 x float> %ins, <4 x float> addrspace(1)* %out
17   ret void
18 }
19