SPV: Add a switch for favoring non-NaN operands in min, max, and clamp.
diff --git a/Test/runtests b/Test/runtests
index cc34306..c50f148 100755
--- a/Test/runtests
+++ b/Test/runtests
@@ -240,6 +240,13 @@
diff -b $BASEDIR/hlsl.pp.expand.frag.err $TARGETDIR/hlsl.pp.expand.frag.err || HASERROR=1
#
+# Test --nan-clamp
+#
+echo "Testing nan-clamp"
+$EXE --nan-clamp -H --aml --amb spv.400.frag > $TARGETDIR/spv.400.frag.nanclamp.out
+diff -b $BASEDIR/spv.400.frag.nanclamp.out $TARGETDIR/spv.400.frag.nanclamp.out || HASERROR=1
+
+#
# Final checking
#
if [ $HASERROR -eq 0 ]