source: icGREP/icgrep-devel/llvm-3.6.1.src/test/CodeGen/R600/extract_vector_elt_i16.ll @ 4664

Last change on this file since 4664 was 4664, checked in by cameron, 4 years ago

Upgrade LLVM to 3.6.1

File size: 1.2 KB
Line 
1; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs< %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
2; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs< %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
3
4; FUNC-LABEL: {{^}}extract_vector_elt_v2i16:
5; SI: buffer_load_ushort
6; SI: buffer_load_ushort
7; SI: buffer_store_short
8; SI: buffer_store_short
9define void @extract_vector_elt_v2i16(i16 addrspace(1)* %out, <2 x i16> %foo) nounwind {
10  %p0 = extractelement <2 x i16> %foo, i32 0
11  %p1 = extractelement <2 x i16> %foo, i32 1
12  %out1 = getelementptr i16 addrspace(1)* %out, i32 1
13  store i16 %p1, i16 addrspace(1)* %out, align 2
14  store i16 %p0, i16 addrspace(1)* %out1, align 2
15  ret void
16}
17
18; FUNC-LABEL: {{^}}extract_vector_elt_v4i16:
19; SI: buffer_load_ushort
20; SI: buffer_load_ushort
21; SI: buffer_store_short
22; SI: buffer_store_short
23define void @extract_vector_elt_v4i16(i16 addrspace(1)* %out, <4 x i16> %foo) nounwind {
24  %p0 = extractelement <4 x i16> %foo, i32 0
25  %p1 = extractelement <4 x i16> %foo, i32 2
26  %out1 = getelementptr i16 addrspace(1)* %out, i32 1
27  store i16 %p1, i16 addrspace(1)* %out, align 2
28  store i16 %p0, i16 addrspace(1)* %out1, align 2
29  ret void
30}
Note: See TracBrowser for help on using the repository browser.