From dc45f0ec4b16144c248fb86acc905fbb5b627300 Mon Sep 17 00:00:00 2001 From: "Andrew M. B. Boktor" Date: Tue, 10 Jul 2012 23:00:30 -0800 Subject: Fix for bug #154-internal and #8-external Adding support for double destination to mad instruction Fixing broken madp instruction Adding a patch to cuobjdump_to_ptxplus to work around the C3 problem (Documented in bug #154 internal). [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13349] --- src/cuda-sim/ptx_parser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cuda-sim/ptx_parser.cc') diff --git a/src/cuda-sim/ptx_parser.cc b/src/cuda-sim/ptx_parser.cc index 308405a..257da1a 100644 --- a/src/cuda-sim/ptx_parser.cc +++ b/src/cuda-sim/ptx_parser.cc @@ -732,7 +732,7 @@ void change_double_operand_type( int operand_type ) else g_operands.back().set_double_operand_type(-2); } else if( operand_type == -3 ) { - if(g_opcode == SET_OP) + if(g_opcode == SET_OP || g_opcode == MAD_OP) g_operands.back().set_double_operand_type(operand_type); else parse_assert(0, "Error: Unsupported use of double destination operand."); -- cgit v1.3