Use sbb x, x to materialize carry bit in a GPR. The result is all one's or all zero's.
[oota-llvm.git] / test / LLVMC / ExternOptions.td
index d38675c55e03c65b1ce91f344d24f845c44eb218..5c69af7d8054d0ed21dcb246c6ab74024e6cd917 100644 (file)
@@ -1,14 +1,16 @@
 // Check that extern options work.
 // The dummy tool and graph are required to silence warnings.
-// RUN: tblgen -I $srcroot/include --gen-llvmc %s | grep extern
+// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
+// RUN: grep {extern .* AutoGeneratedSwitch_Wall} %t
 
 include "llvm/CompilerDriver/Common.td"
 
-def OptList : OptionList<[(extern_switch "Wall"),
-    (extern_parameter "std"), (extern_list "L")]>;
+def OptList : OptionList<[(switch_option "Wall", (extern)),
+                          (parameter_option "std", (extern)),
+                          (prefix_list_option "L", (extern))]>;
 
 def dummy_tool : Tool<[
-(cmd_line "dummy_cmd"),
+(cmd_line "dummy_cmd $INFILE"),
 (in_language "dummy"),
 (out_language "dummy"),
 (actions (case