mirror of
https://github.com/RRZE-HPC/OSACA.git
synced 2026-01-06 11:10:06 +01:00
FIX #46 untangled semantic and non-semantic operand info
This commit is contained in:
@@ -73,18 +73,18 @@ class TestSemanticTools(unittest.TestCase):
|
||||
def test_src_dst_assignment_x86(self):
|
||||
for instruction_form in self.kernel_x86:
|
||||
with self.subTest(instruction_form=instruction_form):
|
||||
if instruction_form['operands'] is not None:
|
||||
self.assertTrue('source' in instruction_form['operands'])
|
||||
self.assertTrue('destination' in instruction_form['operands'])
|
||||
self.assertTrue('src_dst' in instruction_form['operands'])
|
||||
if instruction_form['semantic_operands'] is not None:
|
||||
self.assertTrue('source' in instruction_form['semantic_operands'])
|
||||
self.assertTrue('destination' in instruction_form['semantic_operands'])
|
||||
self.assertTrue('src_dst' in instruction_form['semantic_operands'])
|
||||
|
||||
def test_src_dst_assignment_AArch64(self):
|
||||
for instruction_form in self.kernel_AArch64:
|
||||
with self.subTest(instruction_form=instruction_form):
|
||||
if instruction_form['operands'] is not None:
|
||||
self.assertTrue('source' in instruction_form['operands'])
|
||||
self.assertTrue('destination' in instruction_form['operands'])
|
||||
self.assertTrue('src_dst' in instruction_form['operands'])
|
||||
if instruction_form['semantic_operands'] is not None:
|
||||
self.assertTrue('source' in instruction_form['semantic_operands'])
|
||||
self.assertTrue('destination' in instruction_form['semantic_operands'])
|
||||
self.assertTrue('src_dst' in instruction_form['semantic_operands'])
|
||||
|
||||
def test_tp_lt_assignment_x86(self):
|
||||
self.assertTrue('ports' in self.machine_model_csx)
|
||||
|
||||
Reference in New Issue
Block a user