Esempio n. 1
0
    def test_iadd_cin(self):
        # type: () -> None
        x = XForm(
            Rtl(self.v0 << iadd_cin(self.v1, self.v2, self.v3)),
            Rtl(self.v4 << iadd(self.v1, self.v2), self.v5 << bint(self.v3),
                self.v0 << iadd(self.v4, self.v5)))
        itype = TypeVar("t", "", ints=True, simd=(1, 1))

        check_typing(x.ti, ({
            self.v0: itype,
            self.v1: itype,
            self.v2: itype,
            self.v3: self.b1,
            self.v4: itype,
            self.v5: itype,
        }, []), x.symtab)
Esempio n. 2
0
    def test_iadd_cin(self):
        # type: () -> None
        x = XForm(Rtl(self.v0 << iadd_cin(self.v1, self.v2, self.v3)),
                  Rtl(
                      self.v4 << iadd(self.v1, self.v2),
                      self.v5 << bint(self.v3),
                      self.v0 << iadd(self.v4, self.v5)
                  ))
        itype = TypeVar("t", "", ints=True, simd=(1, 1))

        check_typing(x.ti, ({
            self.v0:    itype,
            self.v1:    itype,
            self.v2:    itype,
            self.v3:    self.b1,
            self.v4:    itype,
            self.v5:    itype,
        }, []), x.symtab)