[llvm] r227821 - R600/SI: Merge two test files
Tom Stellard
thomas.stellard at amd.com
Mon Feb 2 10:02:23 PST 2015
Author: tstellar
Date: Mon Feb 2 12:02:23 2015
New Revision: 227821
URL: http://llvm.org/viewvc/llvm-project?rev=227821&view=rev
Log:
R600/SI: Merge two test files
Removed:
llvm/trunk/test/CodeGen/R600/misaligned-load.ll
Modified:
llvm/trunk/test/CodeGen/R600/unaligned-load-store.ll
Removed: llvm/trunk/test/CodeGen/R600/misaligned-load.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/misaligned-load.ll?rev=227820&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/R600/misaligned-load.ll (original)
+++ llvm/trunk/test/CodeGen/R600/misaligned-load.ll (removed)
@@ -1,18 +0,0 @@
-; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
-
-; SI: @byte_aligned_load64
-; SI: ds_read_u8
-; SI: ds_read_u8
-; SI: ds_read_u8
-; SI: ds_read_u8
-; SI: ds_read_u8
-; SI: ds_read_u8
-; SI: ds_read_u8
-; SI: ds_read_u8
-; SI: s_endpgm
-define void @byte_aligned_load64(i64 addrspace(1)* %out, i64 addrspace(3)* %in) {
-entry:
- %0 = load i64 addrspace(3)* %in, align 1
- store i64 %0, i64 addrspace(1)* %out
- ret void
-}
Modified: llvm/trunk/test/CodeGen/R600/unaligned-load-store.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/unaligned-load-store.ll?rev=227821&r1=227820&r2=227821&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/R600/unaligned-load-store.ll (original)
+++ llvm/trunk/test/CodeGen/R600/unaligned-load-store.ll Mon Feb 2 12:02:23 2015
@@ -76,12 +76,21 @@ define void @load_lds_i64_align_4_with_s
ret void
}
-; FIXME: Need to fix this case.
-; define void @load_lds_i64_align_1(i64 addrspace(1)* nocapture %out, i64 addrspace(3)* %in) #0 {
-; %val = load i64 addrspace(3)* %in, align 1
-; store i64 %val, i64 addrspace(1)* %out, align 8
-; ret void
-; }
+; SI: {{^}}load_lds_i64_align_1
+; SI: ds_read_u8
+; SI: ds_read_u8
+; SI: ds_read_u8
+; SI: ds_read_u8
+; SI: ds_read_u8
+; SI: ds_read_u8
+; SI: ds_read_u8
+; SI: ds_read_u8
+; SI: s_endpgm
+define void @load_lds_i64_align_1(i64 addrspace(1)* nocapture %out, i64 addrspace(3)* %in) #0 {
+ %val = load i64 addrspace(3)* %in, align 1
+ store i64 %val, i64 addrspace(1)* %out, align 8
+ ret void
+}
; SI-LABEL: {{^}}store_lds_i64_align_4:
; SI: ds_write2_b32
More information about the llvm-commits
mailing list