summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2015-02-02 18:02:23 +0000
committerTom Stellard <thomas.stellard@amd.com>2015-02-02 18:02:23 +0000
commit4cd6dcd6c431edf48358277ff79c51fbb14c6a93 (patch)
tree5942582aab5a557f36610741dcddc5c8121c72a7
parentdff57a61432da0c27869759581c1009d09f40e49 (diff)
downloadbcm5719-llvm-4cd6dcd6c431edf48358277ff79c51fbb14c6a93.tar.gz
bcm5719-llvm-4cd6dcd6c431edf48358277ff79c51fbb14c6a93.zip
R600/SI: Merge two test files
llvm-svn: 227821
-rw-r--r--llvm/test/CodeGen/R600/misaligned-load.ll18
-rw-r--r--llvm/test/CodeGen/R600/unaligned-load-store.ll21
2 files changed, 15 insertions, 24 deletions
diff --git a/llvm/test/CodeGen/R600/misaligned-load.ll b/llvm/test/CodeGen/R600/misaligned-load.ll
deleted file mode 100644
index 6290ca09d50..00000000000
--- a/llvm/test/CodeGen/R600/misaligned-load.ll
+++ /dev/null
@@ -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
-}
diff --git a/llvm/test/CodeGen/R600/unaligned-load-store.ll b/llvm/test/CodeGen/R600/unaligned-load-store.ll
index 2c4e02f912d..ed7cf520e20 100644
--- a/llvm/test/CodeGen/R600/unaligned-load-store.ll
+++ b/llvm/test/CodeGen/R600/unaligned-load-store.ll
@@ -76,12 +76,21 @@ define void @load_lds_i64_align_4_with_split_offset(i64 addrspace(1)* nocapture
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
OpenPOWER on IntegriCloud