summaryrefslogtreecommitdiffstats
path: root/tests/test-int128.c
Commit message (Collapse)AuthorAgeFilesLines
* tests/test-int128: Don't use __noclone__ attribute on clangPeter Maydell2014-03-021-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>
* int128: optimize and add test casesPaolo Bonzini2013-07-021-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>
OpenPOWER on IntegriCloud