Files
qemu-reims-vgpu/tests
Eric Farman f69f5f7963 tests/tcg/ppc64: Run float_conv* against power8
There is an oddity that turns up with the float_convd and float_convs
tests, when running from different toolchains. As one example, the
expectation at the start of tests/tcg/ppc64/float_conv*.ref is:

  ### Rounding to nearest
  from double: f64(nan:0x007ff4000000000000)
    to single: f32(nan:0x7fe00000) (INVALID)
     to int32: -2147483648 (INVALID)
     to int64: -9223372036854775808 (INVALID)
    to uint32: 0 (INVALID)
    to uint64: -9223372036854775808 (INVALID)

But, other hosts offer a different response, e.g., this debian guest
on my laptop:

  ### Rounding to nearest
  from double: f64(nan:0x007ff4000000000000)
    to single: f32(nan:0x7fe00000) (INVALID)
     to int32: -2147483648 (INVALID)
     to int64: -9223372036854775808 (INVALID)
    to uint32: 0 (INVALID)
    to uint64: 0 (INVALID)

The explanation seems to be a behavior change when compiling to different
versions of power hardware. When building the arguments from the multiarch
directory, let's ensure these float tests offer a deterministic response
to these NaN tests by explicitly binding them to a CPU architecture.

Chose power8 for no real reason. This behavior change appears between
power6 and power7, but other tests that rely on a specific architecture
today pick either power8 or power10.

Signed-off-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Link: https://lore.kernel.org/qemu-devel/20261019185600.2031729-3-farman@linux.ibm.com
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
2026-10-22 20:32:00 +00:00
..
…
…
2026-09-23 15:19:11 +02:00
2026-09-04 15:06:02 +01:00