83
|
1 ; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s --check-prefix=R600
|
121
|
2 ; RUN: llc < %s -march=amdgcn -verify-machineinstrs | FileCheck %s --check-prefix=SI
|
|
3 ; RUN: llc < %s -march=amdgcn -mcpu=tonga -mattr=-flat-for-global -verify-machineinstrs | FileCheck %s --check-prefix=SI
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
4
|
83
|
5 ; R600: {{^}}build_vector2:
|
|
6 ; R600: MOV
|
|
7 ; R600: MOV
|
|
8 ; R600-NOT: MOV
|
|
9 ; SI: {{^}}build_vector2:
|
|
10 ; SI-DAG: v_mov_b32_e32 v[[X:[0-9]]], 5
|
|
11 ; SI-DAG: v_mov_b32_e32 v[[Y:[0-9]]], 6
|
|
12 ; SI: buffer_store_dwordx2 v{{\[}}[[X]]:[[Y]]{{\]}}
|
121
|
13 define amdgpu_kernel void @build_vector2 (<2 x i32> addrspace(1)* %out) {
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
14 entry:
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
15 store <2 x i32> <i32 5, i32 6>, <2 x i32> addrspace(1)* %out
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
16 ret void
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
17 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
18
|
83
|
19 ; R600: {{^}}build_vector4:
|
|
20 ; R600: MOV
|
|
21 ; R600: MOV
|
|
22 ; R600: MOV
|
|
23 ; R600: MOV
|
|
24 ; R600-NOT: MOV
|
|
25 ; SI: {{^}}build_vector4:
|
|
26 ; SI-DAG: v_mov_b32_e32 v[[X:[0-9]]], 5
|
|
27 ; SI-DAG: v_mov_b32_e32 v[[Y:[0-9]]], 6
|
|
28 ; SI-DAG: v_mov_b32_e32 v[[Z:[0-9]]], 7
|
|
29 ; SI-DAG: v_mov_b32_e32 v[[W:[0-9]]], 8
|
|
30 ; SI: buffer_store_dwordx4 v{{\[}}[[X]]:[[W]]{{\]}}
|
121
|
31 define amdgpu_kernel void @build_vector4 (<4 x i32> addrspace(1)* %out) {
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
32 entry:
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
33 store <4 x i32> <i32 5, i32 6, i32 7, i32 8>, <4 x i32> addrspace(1)* %out
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
34 ret void
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
35 }
|