aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/R600/lshr.ll
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-11-12 02:35:51 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-11-12 02:35:51 +0000
commit86245071b52f1da99ac65157c38bfa5577a80714 (patch)
tree4bd0a466a4ba45e90f29e208c4d716cc0ab8fdaa /test/CodeGen/R600/lshr.ll
parentc6d4d667a8a56b341fac949153ec5939857445df (diff)
downloadexternal_llvm-86245071b52f1da99ac65157c38bfa5577a80714.zip
external_llvm-86245071b52f1da99ac65157c38bfa5577a80714.tar.gz
external_llvm-86245071b52f1da99ac65157c38bfa5577a80714.tar.bz2
R600/SI: Change formatting of printed registers.
Print the range of registers used with a single letter prefix. This better matches what the shader compiler produces and is overall less obnoxious than concatenating all of the subregister names together. Instead of SGPR0, it will print s0. Instead of SGPR0_SGPR1, it will print s[0:1] and so on. There doesn't appear to be a straightforward way to get the actual register info in the InstPrinter, so this parses the generated name to print with the new syntax. The required test changes are pretty nasty, and register matching regexes are now worse. Since there isn't a way to add to a variable in FileCheck, some of the tests now don't check the exact number of registers used, but I don't think that will be a real problem. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194443 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/R600/lshr.ll')
-rw-r--r--test/CodeGen/R600/lshr.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/R600/lshr.ll b/test/CodeGen/R600/lshr.ll
index 5b1620b..7a0a526 100644
--- a/test/CodeGen/R600/lshr.ll
+++ b/test/CodeGen/R600/lshr.ll
@@ -1,6 +1,6 @@
;RUN: llc < %s -march=r600 -mcpu=verde -verify-machineinstrs | FileCheck %s
-;CHECK: V_LSHR_B32_e64 {{VGPR[0-9]}}, SGPR{{[0-9]}}, 1
+;CHECK: V_LSHR_B32_e64 {{v[0-9]}}, s{{[0-9]}}, 1
define void @test(i32 %p) {
%i = udiv i32 %p, 2