--- /dev/null
+#!/bin/bash
+
+echo "SCRIPT IS STILL WIP, DO NOT RUN"
+
+CHROOT=/opt/chroot/gentoo-sffs
+CHROOT=/mnt/mntpoint2
+BINDIRS=($CHROOT/bin $CHROOT/sbin $CHROOT/usr/libexec)
+
+failed=false
+
+for dir in $BINDIRS
+do
+ for bin in $(ls -1 $dir)
+ do
+ if $(fgrep -qof VSX_INSNS.txt $dir/$bin | sort | uniq -c | awk '{print $2 " " $1}'); then
+ echo "VSX instructions found in $bin"
+ failed=true
+ fi
+ done
+done
+
+
+
+if $failed; then
+ echo "Test failed"
+else
+ echo "Test succeeded!"
+fi