summaryrefslogtreecommitdiff
path: root/src/cuda-sim/ptx_parser.cc
diff options
context:
space:
mode:
authorWilson Fung <[email protected]>2012-08-23 06:19:53 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:48:54 -0700
commita4d6731ac208ccb98aeac4e0fe9073abd99dc892 (patch)
tree7e9651cfa9c76742ab252717c9c0d377cbe95321 /src/cuda-sim/ptx_parser.cc
parentbb601822351584a4e81dbb2301a01b03b623f09e (diff)
Adding single element vector operands to support tex.1d instructions in CUDA 4.1 and later. KMN-FT should pass with this changelist.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13833]
Diffstat (limited to 'src/cuda-sim/ptx_parser.cc')
-rw-r--r--src/cuda-sim/ptx_parser.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cuda-sim/ptx_parser.cc b/src/cuda-sim/ptx_parser.cc
index 76d9a9c..ddc67c1 100644
--- a/src/cuda-sim/ptx_parser.cc
+++ b/src/cuda-sim/ptx_parser.cc
@@ -602,6 +602,15 @@ void add_double_operand( const char *d1, const char *d2 )
g_operands.push_back( operand_info(s1,s2) );
}
+void add_1vector_operand( const char *d1 )
+{
+ // handles the single element vector operand ({%v1}) found in tex.1d instructions
+ DPRINTF("add_1vector_operand");
+ const symbol *s1 = g_current_symbol_table->lookup(d1);
+ parse_assert( s1 != NULL, "component(s) missing declarations.");
+ g_operands.push_back( operand_info(s1,NULL,NULL,NULL) );
+}
+
void add_2vector_operand( const char *d1, const char *d2 )
{
DPRINTF("add_2vector_operand");