diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-11-13 23:36:37 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-11-13 23:36:37 +0000 |
commit | b52bf6a3b31596a309f4b12884522e9b4a344654 (patch) | |
tree | 60294ecd3670543e55b24aca1a4507c391649203 /test/CodeGen/R600/lshl.ll | |
parent | eef8b8c35c585d941fb14c66df3cebc46b33f776 (diff) | |
download | external_llvm-b52bf6a3b31596a309f4b12884522e9b4a344654.zip external_llvm-b52bf6a3b31596a309f4b12884522e9b4a344654.tar.gz external_llvm-b52bf6a3b31596a309f4b12884522e9b4a344654.tar.bz2 |
R600/SI: Prefer SALU instructions for bit shift operations
All shift operations will be selected as SALU instructions and then
if necessary lowered to VALU instructions in the SIFixSGPRCopies pass.
This allows us to do more operations on the SALU which will improve
performance and is also required for implementing private memory
using indirect addressing, since the private memory pointers must stay
in the scalar registers.
This patch includes some fixes from Matt Arsenault.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194625 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/R600/lshl.ll')
-rw-r--r-- | test/CodeGen/R600/lshl.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/R600/lshl.ll b/test/CodeGen/R600/lshl.ll index 75ad580..2162839 100644 --- a/test/CodeGen/R600/lshl.ll +++ b/test/CodeGen/R600/lshl.ll @@ -1,6 +1,6 @@ ;RUN: llc < %s -march=r600 -mcpu=verde -verify-machineinstrs | FileCheck %s -;CHECK: V_LSHL_B32_e64 v{{[0-9]}}, s{{[0-9]}}, 1 +;CHECK: S_LSHL_B32 s{{[0-9]}}, s{{[0-9]}}, 1 define void @test(i32 %p) { %i = mul i32 %p, 2 |