[llvm] r214035 - R600/SI: Fix broken test.

Matt Arsenault Matthew.Arsenault at amd.com
Sat Jul 26 14:21:42 PDT 2014


Author: arsenm
Date: Sat Jul 26 16:21:42 2014
New Revision: 214035

URL: http://llvm.org/viewvc/llvm-project?rev=214035&view=rev
Log:
R600/SI: Fix broken test.

There was no check prefix for the instruction lines.
Match what is emitted though, although I'm pretty sure it is
incorrect.

Modified:
    llvm/trunk/test/CodeGen/R600/unaligned-load-store.ll

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=214035&r1=214034&r2=214035&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/R600/unaligned-load-store.ll (original)
+++ llvm/trunk/test/CodeGen/R600/unaligned-load-store.ll Sat Jul 26 16:21:42 2014
@@ -1,7 +1,11 @@
 ; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs< %s | FileCheck -check-prefix=SI %s
 
+; FIXME: This is probably wrong. This probably needs to expand to 8-bit reads and writes.
 ; SI-LABEL: @unaligned_load_store_i32:
-; DS_READ_U32 {{v[0-9]+}}, 0, [[REG]]
+; SI: DS_READ_U16
+; SI: DS_READ_U16
+; SI: DS_WRITE_B32
+; SI: S_ENDPGM
 define void @unaligned_load_store_i32(i32 addrspace(3)* %p, i32 addrspace(3)* %r) nounwind {
   %v = load i32 addrspace(3)* %p, align 1
   store i32 %v, i32 addrspace(3)* %r, align 1
@@ -9,7 +13,19 @@ define void @unaligned_load_store_i32(i3
 }
 
 ; SI-LABEL: @unaligned_load_store_v4i32:
-; DS_READ_U32 {{v[0-9]+}}, 0, [[REG]]
+; SI: DS_READ_U16
+; SI: DS_READ_U16
+; SI: DS_READ_U16
+; SI: DS_READ_U16
+; SI: DS_READ_U16
+; SI: DS_READ_U16
+; SI: DS_READ_U16
+; SI: DS_READ_U16
+; SI: DS_WRITE_B32
+; SI: DS_WRITE_B32
+; SI: DS_WRITE_B32
+; SI: DS_WRITE_B32
+; SI: S_ENDPGM
 define void @unaligned_load_store_v4i32(<4 x i32> addrspace(3)* %p, <4 x i32> addrspace(3)* %r) nounwind {
   %v = load <4 x i32> addrspace(3)* %p, align 1
   store <4 x i32> %v, <4 x i32> addrspace(3)* %r, align 1





More information about the llvm-commits mailing list