On 09/25/2015 02:30 PM, Bernd Schmidt wrote:
(gdb) p result
$1 = <truth_or_expr 0x7ffff0875910>
(gdb) pge
warning: Expression is not an assignment (and might have no effect)
2 == 4 || 2 == 5
I'm not really sure about the logic, but are the results maybe switched
(returning false on the device and true on the host)?
Eh, no, the testcase seems to want to know if it's running on the host,
so that appears OK. But AFAICS it's doing the right thing. Stepping into
libgomp:
182 else if (acc_device_type (acc_dev->type) == acc_device_host)
(gdb) p acc_dev->type
$1 = OFFLOAD_TARGET_TYPE_HOST
(gdb) next
184 fn (hostaddrs);
It's not running the offloaded version, so the testcase I think should fail.
Bernd