示例#1
0
 def test_xmm_on_x86(self):
     """Check xmm on 32 bits arch."""
     setArchitecture(ARCH.X86)
     xmm = Register(REG.XMM1, 0x112233445566778899aabbccddeeff00)
     self.assertEqual(xmm.getBitSize(), 128)
     self.assertEqual(xmm.getConcreteValue(),
                      0x112233445566778899aabbccddeeff00)
示例#2
0
 def test_xmm_on_x86(self):
     """Check xmm on 32 bits arch."""
     setArchitecture(ARCH.X86)
     xmm = Register(REG.XMM1, 0x112233445566778899aabbccddeeff00)
     self.assertEqual(xmm.getBitSize(), 128)
     self.assertEqual(xmm.getConcreteValue(),
                      0x112233445566778899aabbccddeeff00)
示例#3
0
 def test_ymm(self):
     """Check ymm on 64 bits arch."""
     ymm = Register(REG.YMM1, 0x112233445566778899aabbccddeeff00)
     self.assertEqual(ymm.getBitSize(), 256)
     ymm.setConcreteValue(
         0x112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00)
     self.assertEqual(
         ymm.getConcreteValue(),
         0x112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00)
示例#4
0
 def test_zmm(self):
     """Check zmm on 64 bits arch."""
     zmm = Register(REG.ZMM2, 0)
     self.assertEqual(zmm.getBitSize(), 512)
     zmm.setConcreteValue(
         0x112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00
     )
     self.assertEqual(
         zmm.getConcreteValue(),
         0x112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00
     )
示例#5
0
 def test_zmm(self):
     """Check zmm on 64 bits arch."""
     zmm = Register(REG.ZMM2, 0)
     self.assertEqual(zmm.getBitSize(), 512)
     zmm.setConcreteValue(0x112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00)
     self.assertEqual(zmm.getConcreteValue(), 0x112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00)
示例#6
0
 def test_ymm(self):
     """Check ymm on 64 bits arch."""
     ymm = Register(REG.YMM1, 0x112233445566778899aabbccddeeff00)
     self.assertEqual(ymm.getBitSize(), 256)
     ymm.setConcreteValue(0x112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00)
     self.assertEqual(ymm.getConcreteValue(), 0x112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00)