aboutsummaryrefslogtreecommitdiff
path: root/tests/check_isa-2_06_cap
blob: b8ec37f31a7fce3d7e9eb9c79522a1b12474f0ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# We use this script to check whether or not the processor supports Power ISA 2.06 or later.
DIR="$( cd "$( dirname "$0" )" && pwd )"
LD_SHOW_AUXV=1 $DIR/true | grep  arch_2_06 > /dev/null 2>&1

if [ "$?" -ne "0" ]; then
	exit 1
else
	exit 0
fi