Home
last modified time | relevance | path

Searched refs:switch (Results 1 – 25 of 2894) sorted by relevance

12345678910>>...116

/external/llvm-project/llvm/test/Transforms/SCCP/
Dswitch.ll4 ; Make sure we always consider the default edge executable for a switch
9 ; CHECK-NEXT: switch i32 undef, label [[D:%.*]] [
15 switch i32 undef, label %d []
25 ; CHECK: switch:
27 ; CHECK: switch.default:
33 br i1 %c, label %switch, label %end
35 switch:
36 switch i32 -1, label %switch.default [
41 switch.default:
45 %phi = phi i32 [ %x, %entry ], [ 1, %switch ], [ 1, %switch ]
[all …]
/external/skia/resources/sksl/errors/
DSwitchTypes.sksl8 void switch_test_uniorm_int_var() { switch (ui) { case 1: break; } }
9 void switch_test_const_int_var() { switch (ci) { case 1: break; } }
10 void switch_case_const_int_var() { switch (1) { case ci: break; } }
13 void switch_test_float2() { switch (float2(1)) { case 1: break; } }
14 void switch_case_float2() { switch (1) { case float2(1): break; } }
15 void switch_test_const_float_var() { switch (cf) { case 1: break; } }
16 void switch_case_float() { switch (1) { case 0.5: break; } }
17 void switch_case_integral_float() { switch (1) { case 1.0: break; } }
18 void switch_case_uniform_float() { switch (1) { case uf: break; } }
19 void switch_case_uniform_int() { switch (1) { case ui: break; } }
[all …]
DCanExitWithoutReturningValue.sksl33 switch (variable) {}
37 switch (variable) {
44 switch (variable) {
52 for (;;) switch (variable) {
60 switch (variable) {
68 switch (variable) {
76 for (;;) switch (variable) {
84 switch (variable) {
91 switch (variable) {
/external/llvm/test/Transforms/SimplifyCFG/X86/
Dswitch_to_lookup_table.ll7 ; CHECK: @switch.table = private unnamed_addr constant [7 x i32] [i32 55, i32 123, i32 0, i32 -1, i…
10 ; CHECK: @switch.table.1 = private unnamed_addr constant [4 x float] [float 0x40091EB860000000, flo…
13 ; CHECK: @switch.table.2 = private unnamed_addr constant [4 x i8*] [i8* getelementptr inbounds ([4 …
16 ; CHECK: @switch.table.3 = private unnamed_addr constant [4 x i32] [i32 42, i32 9, i32 88, i32 5]
19 ; CHECK: @switch.table.4 = private unnamed_addr constant [199 x i32] [i32 1, i32 4, i32 9,
22 ; CHECK: @switch.table.5 = private unnamed_addr constant [7 x i32] [i32 5, i32 42, i32 126, i32 -45…
25 ; CHECK: @switch.table.6 = private unnamed_addr constant [9 x i32] [i32 0, i32 0, i32 0, i32 2, i32…
27 ; A simple int-to-int selection switch.
34 switch i32 %c, label %sw.default [
57 ; CHECK-NEXT: %switch.tableidx = sub i32 %c, 42
[all …]
/external/deqp-deps/glslang/Test/
Dswitch.frag11 switch(f) { // ERROR
14 switch(a) { // ERROR
17 switch(c)
21 switch(c) // WARNING, not enough stuff after last label
26 switch(c)
34 switch (c) {
47 switch (c) {
52 switch (d) {
71 switch (c) { // a no-error normal switch
76 switch (d) {
[all …]
Dspv.switch.frag10 switch (i1)
26 switch (i1)
47 switch(++local)
51 switch (c) {
62 switch (c) {
72 switch (c) {
81 switch (c) {
86 switch (d) {
100 switch (c) {
121 switch (c) {
[all …]
Dhlsl.switch.frag3 switch(c)
7 switch(c)
12 switch (c) {
21 [branch] switch (c) {
26 switch (d) {
39 switch (c) {
43 switch (c) {
/external/deqp/data/gles3/shaders/
Dswitch.test12 switch ()
34 switch (c)
56 switch (c)
78 switch (c)
102 switch (c)
124 switch (c)
147 switch (c)
170 switch (c)
191 switch (1)
213 switch (1)
[all …]
/external/deqp/external/openglcts/data/gles3/
Dswitch.test12 switch ()
34 switch (c)
56 switch (c)
78 switch (c)
102 switch (c)
124 switch (c)
147 switch (c)
170 switch (c)
191 switch (1)
213 switch (1)
[all …]
/external/deqp/external/openglcts/data/gl33/
Dswitch.test12 switch ()
34 switch (c)
56 switch (c)
78 switch (c)
102 switch (c)
124 switch (c)
147 switch (c)
170 switch (c)
191 switch (1)
213 switch (1)
[all …]
/external/llvm-project/llvm/test/CodeGen/Hexagon/
Dswitch-lut-multiple-functions.ll11 @switch.table = private unnamed_addr constant [9 x i32] [i32 9, i32 20, i32 14, i32 22, i32 12, i32…
17 br i1 %0, label %switch.lookup, label %return
19 switch.lookup: ; preds = %entry
20 %switch.gep = getelementptr inbounds [9 x i32], [9 x i32]* @switch.table, i32 0, i32 %x
21 %switch.load = load i32, i32* %switch.gep, align 4
22 ret i32 %switch.load
31 br i1 %0, label %switch.lookup, label %return
33 switch.lookup: ; preds = %entry
34 %switch.gep = getelementptr inbounds [9 x i32], [9 x i32]* @switch.table, i32 0, i32 %x
35 %switch.load = load i32, i32* %switch.gep, align 4
[all …]
Dswitch-lut-function-section.ll13 @switch.table = private unnamed_addr constant [9 x i32] [i32 9, i32 20, i32 14, i32 22, i32 12, i32…
19 br i1 %0, label %switch.lookup, label %return
21 switch.lookup: ; preds = %entry
22 %switch.gep = getelementptr inbounds [9 x i32], [9 x i32]* @switch.table, i32 0, i32 %x
23 %switch.load = load i32, i32* %switch.gep, align 4
24 ret i32 %switch.load
Dswitch-lut-text-section.ll10 @switch.table = private unnamed_addr constant [9 x i32] [i32 9, i32 20, i32 14, i32 22, i32 12, i32…
16 br i1 %0, label %switch.lookup, label %return
18 switch.lookup: ; preds = %entry
19 %switch.gep = getelementptr inbounds [9 x i32], [9 x i32]* @switch.table, i32 0, i32 %x
20 %switch.load = load i32, i32* %switch.gep, align 4
21 ret i32 %switch.load
Dswitch-lut-explicit-section.ll15 @switch.table = private unnamed_addr constant [9 x i32] [i32 9, i32 20, i32 14, i32 22, i32 12, i32…
21 br i1 %0, label %switch.lookup, label %return
23 switch.lookup: ; preds = %entry
24 %switch.gep = getelementptr inbounds [9 x i32], [9 x i32]* @switch.table, i32 0, i32 %x
25 %switch.load = load i32, i32* %switch.gep, align 4
26 ret i32 %switch.load
/external/llvm-project/llvm/test/Transforms/SampleProfile/
Dinline-act.ll7 ; switch(value) {
28 %switch.tableidx = sub i32 %0, 0
29 %2 = icmp ult i32 %switch.tableidx, 4
30 br i1 %2, label %switch.lookup, label %3
32 switch.lookup: ; preds = %1
33 %switch.cast = trunc i32 %switch.tableidx to i4
34 %switch.shiftamt = mul i4 %switch.cast, 1
35 %switch.downshift = lshr i4 -5, %switch.shiftamt
36 %switch.masked = trunc i4 %switch.downshift to i1
37 ret i1 %switch.masked
/external/llvm/test/Transforms/SampleProfile/
Dinline-act.ll7 ; switch(value) {
28 %switch.tableidx = sub i32 %0, 0
29 %2 = icmp ult i32 %switch.tableidx, 4
30 br i1 %2, label %switch.lookup, label %3
32 switch.lookup: ; preds = %1
33 %switch.cast = trunc i32 %switch.tableidx to i4
34 %switch.shiftamt = mul i4 %switch.cast, 1
35 %switch.downshift = lshr i4 -5, %switch.shiftamt
36 %switch.masked = trunc i4 %switch.downshift to i1
37 ret i1 %switch.masked
/external/llvm/test/Transforms/SimplifyCFG/
Dswitch-to-select-two-case.ll4 ; switch(a) {
15 ; CHECK: %switch.selectcmp = icmp eq i32 %a, 20
16 ; CHECK-NEXT: %switch.select = select i1 %switch.selectcmp, i32 2, i32 4
17 ; CHECK-NEXT: %switch.selectcmp1 = icmp eq i32 %a, 10
18 ; CHECK-NEXT: %switch.select2 = select i1 %switch.selectcmp1, i32 10, i32 %switch.select
20 switch i32 %a, label %sw.epilog [
Dswitch-range-to-icmp.ll8 ; CHECK: %switch = icmp ult i32 %x.off, 3
9 ; CHECK: br i1 %switch, label %a, label %default
12 switch i32 %x, label %default [
29 ; CHECK: %switch = icmp ult i32 %x.off, 3
30 ; CHECK: br i1 %switch, label %a, label %b
33 switch i32 %x, label %unreachable [
56 ; CHECK: %switch = icmp ult i32 %x.off, 3
57 ; CHECK: br i1 %switch, label %a, label %b
61 ; would prevent switch-to-icmp here.
62 switch i32 %x, label %unreachable [
/external/llvm-project/llvm/test/CodeGen/Thumb/
Dpr42760.ll14 ; CHECK-NEXT: .LBB0_2: @ %switch
26 ; CHECK-NEXT: .LBB0_4: @ %switch
35 br label %switch
37 switch: ; preds = %bb2, %entry
38 switch i32 undef, label %dead2 [
45 dead: ; preds = %bb2, %bb, %switch, %switch
48 dead2: ; preds = %switch
51 bb: ; preds = %switch
54 bb2: ; preds = %bb, %switch
55 br i1 undef, label %dead, label %switch
/external/llvm-project/llvm/test/Transforms/ADCE/
D2017-08-21-DomTree-deletions.ll6 br label %switch
7 switch: ; preds = %entry
8 switch i32 undef, label %default [
13 four: ; preds = %switch
15 five: ; preds = %switch
17 two: ; preds = %switch
19 default: ; preds = %switch
/external/deqp/framework/egl/
DegluStrUtil.inl9 switch (value)
19 switch (value)
30 switch (value)
41 switch (value)
64 switch (value)
76 switch (value)
114 switch (value)
138 switch (value)
154 switch (value)
165 switch (value)
[all …]
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/
Dhicpp-multiway-paths-covered.rst7 It furthermore suggests using ``if`` instead of ``switch`` if the code will be more clear.
9 and `rule 6.1.4 <http://www.codingstandard.com/rule/6-1-4-ensure-that-a-switch-statement-has-at-lea…
31 Similar arguments hold for ``switch`` statements which do not cover all possible code paths.
38 switch (i) {
50 switch (c) {
60 The `rule 6.1.4 <http://www.codingstandard.com/rule/6-1-4-ensure-that-a-switch-statement-has-at-lea…
61 requires every ``switch`` statement to have at least two ``case`` labels other than a `default` lab…
62 Otherwise, the ``switch`` could be better expressed with an ``if`` statement.
63 Degenerated ``switch`` statements without any labels are caught as well.
67 // Degenerated switch that could be better written as `if`
[all …]
/external/python/cpython2/Lib/distutils/
Dextension.py189 switch = word[0:2] ; value = word[2:]
196 elif switch == "-I":
198 elif switch == "-D":
205 elif switch == "-U":
207 elif switch == "-C": # only here 'cause makesetup has it!
209 elif switch == "-l":
211 elif switch == "-L":
213 elif switch == "-R":
221 elif switch == "-u":
227 elif switch == "-u":
/external/deqp/doc/testspecs/GLES3/
Dfunctional.shaders.switch.txt19 GLSL switch statement tests
22 + dEQP-GLES3.functional.shaders.switch.*
25 + Constant, uniform and dynamic switch expressions
30 + Nested switch, conditional and loop statements
31 + Negative syntax tests for switch statements
33 + Negative semantic tests for switch statements
35 - Non-integer switch expressions
37 - No statement between a label and end of switch statement
/external/python/cpython3/Lib/distutils/
Dextension.py191 switch = word[0:2] ; value = word[2:]
198 elif switch == "-I":
200 elif switch == "-D":
207 elif switch == "-U":
209 elif switch == "-C": # only here 'cause makesetup has it!
211 elif switch == "-l":
213 elif switch == "-L":
215 elif switch == "-R":
223 elif switch == "-u":

12345678910>>...116