diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-06-24 06:58:01 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-06-24 06:58:01 +0000 |
| commit | 0534f4aa79edeff44f0f34125f3cf7d3820753b8 (patch) | |
| tree | 3d35c6d72f03c956d4125ac2db7576140c7635c8 /llvm/test/CodeGen/AMDGPU/no-shrink-extloads.ll | |
| parent | 00f607eef06dec993c34bb5f6d60554a6c22a8fa (diff) | |
| download | bcm5719-llvm-0534f4aa79edeff44f0f34125f3cf7d3820753b8.tar.gz bcm5719-llvm-0534f4aa79edeff44f0f34125f3cf7d3820753b8.zip | |
AMDGPU: Un-xfail and add tests
Un XFAIL a few tests plus a few more I had lying around
in my tree, which seem to all work now but I don't see tests
that quite test the same things.
llvm-svn: 273655
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/no-shrink-extloads.ll')
| -rw-r--r-- | llvm/test/CodeGen/AMDGPU/no-shrink-extloads.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/no-shrink-extloads.ll b/llvm/test/CodeGen/AMDGPU/no-shrink-extloads.ll index 01f174da862..fd66b0b5d1f 100644 --- a/llvm/test/CodeGen/AMDGPU/no-shrink-extloads.ll +++ b/llvm/test/CodeGen/AMDGPU/no-shrink-extloads.ll @@ -201,3 +201,15 @@ entry: store i32 %mask, i32 addrspace(1)* %out ret void } + +; FUNC-LABEL: {{^}}extract_hi_i64_bitcast_v2i32: +; SI: buffer_load_dword v +; SI: buffer_store_dword v +define void @extract_hi_i64_bitcast_v2i32(i32 addrspace(1)* %out, <2 x i32> addrspace(1)* %in) nounwind { + %ld = load <2 x i32>, <2 x i32> addrspace(1)* %in + %bc = bitcast <2 x i32> %ld to i64 + %hi = lshr i64 %bc, 32 + %trunc = trunc i64 %hi to i32 + store i32 %trunc, i32 addrspace(1)* %out + ret void +} |

