-# Copyright 2009, 2010 Free Software Foundation, Inc.
+# Copyright 2009-2012 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Test UNsigned extension of the 32-bit inferior address on a 64-bit host.
# On native 32-bit host the test always PASSed.
-if {![istarget "x86_64-*-*"] && ![istarget "i?86-*-*"]} then {
+if { (![istarget "x86_64-*-*"] && ![istarget "i?86-*-*"]) || ![is_lp64_target]
+ || [istarget "*-*-openbsd*"] } then {
verbose "Skipping amd64->i386 adress test."
return
}