summaryrefslogtreecommitdiff
path: root/tests/test-int128.c
AgeCommit message (Collapse)AuthorFilesLines
2014-03-02tests/test-int128: Don't use __noclone__ attribute on clangPeter Maydell1-1/+14
clang doesn't support the __noclone__ attribute and emits a warning about it. Fortunately clang also implements a mechanism for asking if a particular attribute is implemented; use it. We assume that if the compiler doesn't support __has_attribute() then it must be GCC and must support __noclone__. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2013-07-02int128: optimize and add test casesPaolo Bonzini1-0/+212
For add, the carry only requires checking one of the arguments. For sub and neg, we can similarly optimize computation of the carry. For ge, we can just do lexicographic order. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>