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 / ForwardValue.td
1 // Check that forward_value works.
2 // The dummy tool and graph are required to silence warnings.
3 // RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
4 // RUN: grep {vec.push_back\(AutoGeneratedParameter_a\)} %t
5 // RUN: grep {std::copy\(AutoGeneratedList_b.begin\(\)} %t
6
7 include "llvm/CompilerDriver/Common.td"
8
9 def OptList : OptionList<[(parameter_option "a", (extern)),
10                           (prefix_list_option "b", (extern))]>;
11
12 def dummy_tool : Tool<[
13 (cmd_line "dummy_cmd $INFILE"),
14 (in_language "dummy"),
15 (out_language "dummy"),
16 (actions (case
17          (not_empty "a"), (forward_value "a"),
18          (not_empty "b"), (forward_value "b")))
19 ]>;
20
21 def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;