summaryrefslogtreecommitdiff
path: root/src/cuda-sim/ptx_ir.cc
diff options
context:
space:
mode:
authorCesar Avalos <[email protected]>2024-08-09 18:42:11 -0400
committerGitHub <[email protected]>2024-08-09 22:42:11 +0000
commit081da0abacbc3595b090094b1a66fc37d35bd82a (patch)
treea2ab682cfce38aaf2fb08afd6974baf755dfc80e /src/cuda-sim/ptx_ir.cc
parente1afc53b51d24afcfd8b8aab15e4ba5d99b4a772 (diff)
Add support for SHF ptx instruction (#70)
Diffstat (limited to 'src/cuda-sim/ptx_ir.cc')
-rw-r--r--src/cuda-sim/ptx_ir.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cuda-sim/ptx_ir.cc b/src/cuda-sim/ptx_ir.cc
index d309542..1399209 100644
--- a/src/cuda-sim/ptx_ir.cc
+++ b/src/cuda-sim/ptx_ir.cc
@@ -1227,6 +1227,8 @@ ptx_instruction::ptx_instruction(
m_rounding_mode = RN_OPTION;
m_compare_op = -1;
m_saturation_mode = 0;
+ m_clamp_mode = 0;
+ m_left_mode = 0;
m_geom_spec = 0;
m_vector_spec = 0;
m_atomic_spec = 0;
@@ -1293,6 +1295,18 @@ ptx_instruction::ptx_instruction(
case SAT_OPTION:
m_saturation_mode = 1;
break;
+ case WRAP_OPTION:
+ m_clamp_mode = 0;
+ break;
+ case CLAMP_OPTION:
+ m_clamp_mode = 1;
+ break;
+ case LEFT_OPTION:
+ m_left_mode = 1;
+ break;
+ case RIGHT_OPTION:
+ m_left_mode = 0;
+ break;
case RNI_OPTION:
case RZI_OPTION:
case RMI_OPTION: