From 0df264a0fdc87533eabcd3fbd780b588e6a404d0 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 11 Aug 2014 22:18:05 +0000 Subject: [PATCH] R600/SI: Fix broken test git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215395 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/R600/smrd.ll | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/CodeGen/R600/smrd.ll b/test/CodeGen/R600/smrd.ll index dec61855b01..6f05d3e62b5 100644 --- a/test/CodeGen/R600/smrd.ll +++ b/test/CodeGen/R600/smrd.ll @@ -64,8 +64,8 @@ main_body: ret void } -; SMRD load using the load.const intrinsic with an offset greater largest possible -; immediate offset. +; SMRD load using the load.const intrinsic with the largest possible immediate +; offset. ; CHECK-LABEL: @smrd_load_const1 ; CHECK: S_BUFFER_LOAD_DWORD s{{[0-9]}}, s[{{[0-9]:[0-9]}}], 0xff ; encoding: [0xff define void @smrd_load_const1(<16 x i8> addrspace(2)* inreg, <16 x i8> addrspace(2)* inreg, <32 x i8> addrspace(2)* inreg, i32 inreg, <2 x i32>, <2 x i32>, <2 x i32>, <3 x i32>, <2 x i32>, <2 x i32>, <2 x i32>, float, float, float, float, float, float, float, float, float) #0 { @@ -76,9 +76,11 @@ main_body: call void @llvm.SI.export(i32 15, i32 1, i32 1, i32 0, i32 0, float %22, float %22, float %22, float %22) ret void } -; SMRD load using the load.const intrinsic with the largetst possible +; SMRD load using the load.const intrinsic with an offset greater than the +; largets possible immediate. ; immediate offset. ; CHECK-LABEL: @smrd_load_const2 +; CHECK: S_MOV_B32 s[[OFFSET:[0-9]]], 0x400 ; CHECK: S_BUFFER_LOAD_DWORD s{{[0-9]}}, s[{{[0-9]:[0-9]}}], s[[OFFSET]] ; encoding: [0x0[[OFFSET]] define void @smrd_load_const2(<16 x i8> addrspace(2)* inreg, <16 x i8> addrspace(2)* inreg, <32 x i8> addrspace(2)* inreg, i32 inreg, <2 x i32>, <2 x i32>, <2 x i32>, <3 x i32>, <2 x i32>, <2 x i32>, <2 x i32>, float, float, float, float, float, float, float, float, float) #0 { main_body: -- 2.11.0