summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-03-21 15:51:57 +0000
committerTom Stellard <thomas.stellard@amd.com>2014-03-21 15:51:57 +0000
commita1d28f6dd713d31269b612ac4aba0d408a7e9990 (patch)
tree4030087868af8ea7dc2fd9026f91151604e86f60 /test
parent1f1c0495d05fae15e71f62ac380e873460770d82 (diff)
downloadllvm-a1d28f6dd713d31269b612ac4aba0d408a7e9990.tar.gz
llvm-a1d28f6dd713d31269b612ac4aba0d408a7e9990.tar.bz2
llvm-a1d28f6dd713d31269b612ac4aba0d408a7e9990.tar.xz
R600/SI: Handle MUBUF instructions in SIInstrInfo::moveToVALU()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204476 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/R600/salu-to-valu.ll8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/CodeGen/R600/salu-to-valu.ll b/test/CodeGen/R600/salu-to-valu.ll
index c989c9d672..e461bf9ace 100644
--- a/test/CodeGen/R600/salu-to-valu.ll
+++ b/test/CodeGen/R600/salu-to-valu.ll
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=r600 -mcpu=SI | FileCheck %s
+; RUN: llc < %s -march=r600 -mcpu=SI -verify-machineinstrs | FileCheck %s
; In this test both the pointer and the offset operands to the
; BUFFER_LOAD instructions end up being stored in vgprs. This
@@ -8,8 +8,14 @@
; (low 64-bits of srsrc).
; CHECK-LABEL: @mubuf
+
; Make sure we aren't using VGPRs for the source operand of S_MOV_B64
; CHECK-NOT: S_MOV_B64 s[{{[0-9]+:[0-9]+}}], v
+
+; Make sure we aren't using VGPR's for the srsrc operand of BUFFER_LOAD_*
+; instructions
+; CHECK: BUFFER_LOAD_UBYTE v{{[0-9]+}}, s[{{[0-9]+:[0-9]+}}]
+; CHECK: BUFFER_LOAD_UBYTE v{{[0-9]+}}, s[{{[0-9]+:[0-9]+}}]
define void @mubuf(i32 addrspace(1)* %out, i8 addrspace(1)* %in) {
entry:
%0 = call i32 @llvm.r600.read.tidig.x() #1