From a4d6731ac208ccb98aeac4e0fe9073abd99dc892 Mon Sep 17 00:00:00 2001 From: Wilson Fung Date: Thu, 23 Aug 2012 06:19:53 -0800 Subject: 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] --- src/cuda-sim/ptx.y | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cuda-sim/ptx.y') 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); } -- cgit v1.3