summaryrefslogtreecommitdiff
path: root/src/cuda-sim/ptx.y
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.y
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.y')
-rw-r--r--src/cuda-sim/ptx.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cuda-sim/ptx.y b/src/cuda-sim/ptx.y
index 5b69975..751d398 100644
--- a/src/cuda-sim/ptx.y
+++ b/src/cuda-sim/ptx.y
@@ -493,11 +493,13 @@ operand: IDENTIFIER { add_scalar_operand( $1 ); }
vector_operand: LEFT_BRACE IDENTIFIER COMMA IDENTIFIER RIGHT_BRACE { add_2vector_operand($2,$4); }
| LEFT_BRACE IDENTIFIER COMMA IDENTIFIER COMMA IDENTIFIER RIGHT_BRACE { add_3vector_operand($2,$4,$6); }
| LEFT_BRACE IDENTIFIER COMMA IDENTIFIER COMMA IDENTIFIER COMMA IDENTIFIER RIGHT_BRACE { add_4vector_operand($2,$4,$6,$8); }
+ | LEFT_BRACE IDENTIFIER RIGHT_BRACE { add_1vector_operand($2); }
;
tex_operand: LEFT_SQUARE_BRACKET IDENTIFIER COMMA { add_scalar_operand($2); }
vector_operand
RIGHT_SQUARE_BRACKET
+ ;
builtin_operand: SPECIAL_REGISTER DIMENSION_MODIFIER { add_builtin_operand($1,$2); }
| SPECIAL_REGISTER { add_builtin_operand($1,-1); }