summaryrefslogtreecommitdiff
path: root/src/cuda-sim/opcodes.def
diff options
context:
space:
mode:
authorspeverel <[email protected]>2016-06-16 15:51:17 -0700
committerspeverel <[email protected]>2016-06-16 15:51:17 -0700
commit281798191f9bc37a75592d34a5e38cc5d6c41b6d (patch)
treefa75554da6e1f8f15c20a233d8ef1e56911ea374 /src/cuda-sim/opcodes.def
parent547ce656018a6439e658be3c283721a961b0217f (diff)
Added the ability to inject arbitrary PTX instructions. This will be used to add custom instructions in the future; the imaginary instructions 'spr' and 'ama' have been added as samples.
Diffstat (limited to 'src/cuda-sim/opcodes.def')
-rw-r--r--src/cuda-sim/opcodes.def2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cuda-sim/opcodes.def b/src/cuda-sim/opcodes.def
index 874acc7..33ee0ca 100644
--- a/src/cuda-sim/opcodes.def
+++ b/src/cuda-sim/opcodes.def
@@ -41,6 +41,7 @@ OP_DEF(ABS_OP,abs_impl,"abs",1,1)
OP_DEF(ADD_OP,add_impl,"add",1,1)
OP_DEF(ADDP_OP,addp_impl,"addp",1,1)
OP_DEF(ADDC_OP,addc_impl,"addc",1,1)
+OP_DEF(AMA_OP,ama_impl,"ama",1,2)
OP_DEF(AND_OP,and_impl,"and",1,1)
OP_DEF(ANDN_OP,andn_impl,"andn",1,1)
OP_DEF(ATOM_OP,atom_impl,"atom",1,3)
@@ -101,6 +102,7 @@ OP_DEF(SHL_OP,shl_impl,"shl",1,1)
OP_DEF(SHR_OP,shr_impl,"shr",1,1)
OP_DEF(SIN_OP,sin_impl,"sin",1,4)
OP_DEF(SLCT_OP,slct_impl,"slct",1,1)
+OP_DEF(SPR_OP,spr_impl,"spr",1,1)
OP_DEF(SQRT_OP,sqrt_impl,"sqrt",1,4)
OP_DEF(SSY_OP,ssy_impl,"ssy",0,3)
OP_DEF(ST_OP,st_impl,"st",0,5)