Beispiel #1
0
    def testZeroExt(self):
        ty = Type.int8()
        v = Value.all_ones(ty)

        self.assertEqual(255, v.get_zeroext_value())
Beispiel #2
0
    def testZeroExt(self):
        ty = Type.int8()
        v = Value.all_ones(ty)

        self.assertEqual(255, v.get_zeroext_value())
Beispiel #3
0
    def testAllOnesInt8(self):
        ty = Type.int8()
        v = Value.all_ones(ty)

        self.assertEqual(-1, v.get_signext_value())
Beispiel #4
0
    def testAllOnesInt8(self):
        ty = Type.int8()
        v = Value.all_ones(ty)

        self.assertEqual(-1, v.get_signext_value())