Reduce the 128-bit arithmetic compiler bug test case even further

This commit is contained in:
Frank Denis 2013-09-08 02:25:48 -07:00
parent 7544cba1fa
commit 5cfce7ef82

View File

@ -326,10 +326,8 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#endif #endif
#include <stdint.h> #include <stdint.h>
typedef unsigned uint128_t __attribute__((mode(TI))); typedef unsigned uint128_t __attribute__((mode(TI)));
void fcontract(uint8_t *output) { void fcontract(uint128_t *t) {
uint128_t t[5]; *t += 0x8000000000000 - 1;
t[2] += 0x8000000000000 - 1;
*((uint64_t *)(output+16)) = (t[2] >> 26) | (t[3] << 25);
} }
]], [[ ]], [[
(void) fcontract; (void) fcontract;