===================================================================
@@ -8135,6 +8135,26 @@
``not'' @var{flag}, or inverted versions of those above
@end table
+This example uses the @code{bt} instruction (which sets the carry flag) to
+see if bit 0 of an integer is set. To see the improvement in the generated
+output, make sure optimizations are enabled.
+
+@example
+void TestEven (int value)
+@{
+ char CarryIsSet;
+
+ asm ("bt $0, %[value]"
+ : "=@@ccc" (CarryIsSet)
+ : [value] "rm" (value));
+
+ if (CarryIsSet)
+ printf ("odd\n");
+ else
+ printf ("even\n");
+@}
+@end example
+
@end table
@anchor{InputOperands}