Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/AMDGPU/trunc-store.ll @ 95:afa8332a0e37 LLVM3.8
LLVM 3.8
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Oct 2015 17:48:58 +0900 |
parents | |
children | 1172e4bd9c6f |
comparison
equal
deleted
inserted
replaced
84:f3e34b893a5f | 95:afa8332a0e37 |
---|---|
1 ; RUN: llc -march=amdgcn -mcpu=verde -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: {{^}}truncstore_arg_v16i32_to_v16i8: | |
5 ; SI: buffer_store_byte | |
6 ; SI: buffer_store_byte | |
7 ; SI: buffer_store_byte | |
8 ; SI: buffer_store_byte | |
9 ; SI: buffer_store_byte | |
10 ; SI: buffer_store_byte | |
11 ; SI: buffer_store_byte | |
12 ; SI: buffer_store_byte | |
13 ; SI: buffer_store_byte | |
14 ; SI: buffer_store_byte | |
15 ; SI: buffer_store_byte | |
16 ; SI: buffer_store_byte | |
17 ; SI: buffer_store_byte | |
18 ; SI: buffer_store_byte | |
19 ; SI: buffer_store_byte | |
20 ; SI: buffer_store_byte | |
21 define void @truncstore_arg_v16i32_to_v16i8(<16 x i8> addrspace(1)* %out, <16 x i32> %in) { | |
22 %trunc = trunc <16 x i32> %in to <16 x i8> | |
23 store <16 x i8> %trunc, <16 x i8> addrspace(1)* %out | |
24 ret void | |
25 } | |
26 | |
27 ; FUNC-LABEL: {{^}}truncstore_arg_v16i64_to_v16i8: | |
28 ; SI: buffer_store_byte | |
29 ; SI: buffer_store_byte | |
30 ; SI: buffer_store_byte | |
31 ; SI: buffer_store_byte | |
32 ; SI: buffer_store_byte | |
33 ; SI: buffer_store_byte | |
34 ; SI: buffer_store_byte | |
35 ; SI: buffer_store_byte | |
36 ; SI: buffer_store_byte | |
37 ; SI: buffer_store_byte | |
38 ; SI: buffer_store_byte | |
39 ; SI: buffer_store_byte | |
40 ; SI: buffer_store_byte | |
41 ; SI: buffer_store_byte | |
42 ; SI: buffer_store_byte | |
43 ; SI: buffer_store_byte | |
44 define void @truncstore_arg_v16i64_to_v16i8(<16 x i8> addrspace(1)* %out, <16 x i64> %in) { | |
45 %trunc = trunc <16 x i64> %in to <16 x i8> | |
46 store <16 x i8> %trunc, <16 x i8> addrspace(1)* %out | |
47 ret void | |
48 } |