summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/R600/large-constant-initializer.ll
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-07-21 14:01:14 +0000
committerTom Stellard <thomas.stellard@amd.com>2014-07-21 14:01:14 +0000
commit067c81567bf35e04b2c9b3d360a6f15dedbfe8aa (patch)
tree1031a76ce68e6100ccade83f3b1ccc15cf2ecba5 /llvm/test/CodeGen/R600/large-constant-initializer.ll
parentb2114caf627f38eaa7905d3ad911971206b1caa9 (diff)
downloadbcm5719-llvm-067c81567bf35e04b2c9b3d360a6f15dedbfe8aa.tar.gz
bcm5719-llvm-067c81567bf35e04b2c9b3d360a6f15dedbfe8aa.zip
R600/SI: Store constant initializer data in constant memory
This implements a solution for constant initializers suggested by Vadim Girlin, where we store the data after the shader code and then use the S_GETPC instruction to compute its address. This saves use the trouble of creating a new buffer for constant data and then having to pass the pointer to the kernel via user SGPRs or the input buffer. llvm-svn: 213530
Diffstat (limited to 'llvm/test/CodeGen/R600/large-constant-initializer.ll')
-rw-r--r--llvm/test/CodeGen/R600/large-constant-initializer.ll3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/R600/large-constant-initializer.ll b/llvm/test/CodeGen/R600/large-constant-initializer.ll
index 552cd05e137..191b5c3de91 100644
--- a/llvm/test/CodeGen/R600/large-constant-initializer.ll
+++ b/llvm/test/CodeGen/R600/large-constant-initializer.ll
@@ -1,6 +1,5 @@
-; XFAIL: *
-; REQUIRES: asserts
; RUN: llc -march=r600 -mcpu=SI < %s
+; CHECK: S_ENDPGM
@gv = external unnamed_addr addrspace(2) constant [239 x i32], align 4
OpenPOWER on IntegriCloud