// |reftest| skip-if(!this.hasOwnProperty("SIMD"))
var BUGNUMBER = 946042;
var float32x4 = SIMD.float32x4;
var int32x4 = SIMD.int32x4;

var summary = 'int32x4 bitsToFloat32x4';

function test() {
  print(BUGNUMBER + ": " + summary);

  // FIXME -- Bug 948379: Amend to check for correctness of border cases.

  var a = int32x4(100, 200, 300, 400);
  var c = SIMD.int32x4.bitsToFloat32x4(a);
  assertEq(c.x, 1.401298464324817e-43);
  assertEq(c.y, 2.802596928649634e-43);
  assertEq(c.z, 4.203895392974451e-43);
  assertEq(c.w, 5.605193857299268e-43);

  if (typeof reportCompare === "function")
    reportCompare(true, true);
}

test();

