Index: test-suite/trunk/Bitcode/Regression/vector_widen/driver.cpp =================================================================== --- test-suite/trunk/Bitcode/Regression/vector_widen/driver.cpp +++ test-suite/trunk/Bitcode/Regression/vector_widen/driver.cpp @@ -2,7 +2,7 @@ template T rand_value() { - return (T)(rand() * 0.125) - 100; + return (T)((T)rand() / 8) - 100; } template Index: test-suite/trunk/Bitcode/simd_ops/simd_ops.cpp =================================================================== --- test-suite/trunk/Bitcode/simd_ops/simd_ops.cpp +++ test-suite/trunk/Bitcode/simd_ops/simd_ops.cpp @@ -24,7 +24,7 @@ template T rand_value() { - return (T)(rand() * 0.125) - 100; + return (T)((T)rand() / 8) - 100; } // Even on android, we want errors to stdout