/llvm-project/llvm/test/Analysis/CostModel/RISCV/ |
H A D | rvv-select.ll | 7 define void @select() { 8 ; CHECK-LABEL: 'select' 9 ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %1 = select i1 undef, i1 undef, i1 undef 10 ; CHECK-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %2 = select i1 undef, <1 x i1> undef, <1 x i1> undef 11 ; CHECK-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %3 = select i1 undef, <2 x i1> undef, <2 x i1> undef 12 ; CHECK-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %4 = select i1 undef, <4 x i1> undef, <4 x i1> undef 13 ; CHECK-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %5 = select i1 undef, <8 x i1> undef, <8 x i1> undef 14 ; CHECK-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %6 = select i1 undef, <16 x i1> undef, <16 x i1> undef 15 ; CHECK-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %7 = select i1 undef, <32 x i1> undef, <32 x i1> undef 16 ; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %8 = select < [all...] |
/llvm-project/llvm/test/Transforms/Attributor/ |
H A D | nofpclass-select.ll | 8 ; Arithmetic fence is to workaround an attributor bug where select 17 ; CHECK-NEXT: [[SELECT:%.*]] = select nnan i1 [[COND]], float [[ARG0]], float [[ARG1]] 18 ; CHECK-NEXT: ret float [[SELECT]] 20 %select = select nnan i1 %cond, float %arg0, float %arg1 21 ret float %select 27 ; CHECK-NEXT: [[SELECT:%.*]] = select ninf i1 [[COND]], float [[ARG0]], float [[ARG1]] 28 ; CHECK-NEXT: ret float [[SELECT]] 30 %select = select ninf i1 %cond, float %arg0, float %arg1 31 ret float %select 37 ; CHECK-NEXT: [[SELECT:%.*]] = select nnan ninf i1 [[COND]], float [[ARG0]], float [[ARG1]] [all …]
|
H A D | nofpclass-implied-by-fcmp.ll | 17 ; CHECK-NEXT: [[SELECT:%.*]] = select i1 [[IS_OGT_1]], float 1.000000e+00, float [[ARG]] 18 ; CHECK-NEXT: ret float [[SELECT]] 21 %select = select i1 %is.ogt.1, float 1.0, float %arg 22 ret float %select 29 ; CHECK-NEXT: [[SELECT:%.*]] = select i1 [[IS_ULE_1]], float [[ARG]], float 1.000000e+00 30 ; CHECK-NEXT: ret float [[SELECT]] 33 %select = select i1 %is.ule.1, float %arg, float 1.0 34 ret float %select 42 ; CHECK-NEXT: [[SELECT:%.*]] = select i1 [[IS_UGT_1]], float 1.000000e+00, float [[ARG]] 43 ; CHECK-NEXT: ret float [[SELECT]] [all …]
|
/llvm-project/llvm/test/Transforms/InferAddressSpaces/AMDGPU/ |
H A D | select.ll | 3 ; Instcombine pulls the addrspacecast out of the select, make sure 8 ; CHECK-NEXT: [[SELECT:%.*]] = select i1 [[C]], ptr addrspace(3) [[GROUP_PTR_0]], ptr addrspace(… 9 ; CHECK-NEXT: [[TMP1:%.*]] = addrspacecast ptr addrspace(3) [[SELECT]] to ptr 14 %select = select i1 %c, ptr %cast0, ptr %cast1 15 ret ptr %select 19 ; CHECK: %select = select i1 %c, ptr addrspace(3) %group.ptr.0, ptr addrspace(3) %group.ptr.1 20 ; CHECK: store i32 -1, ptr addrspace(3) %select 24 %select = select i1 %c, ptr %cast0, ptr %cast1 25 store i32 -1, ptr %select 31 ; CHECK: %select = select i1 %c, ptr addrspace(3) %group.ptr.0, ptr addrspace(3) %group.ptr.1, !pro… [all …]
|
/llvm-project/clang/include/clang/Basic/ |
H A D | DiagnosticASTKinds.td | 14 "%select{reinterpret_cast|dynamic_cast|%select{this conversion|cast that" 17 "%select{| in C++ standards before C++20||}0">; 20 "%select{in C++ standards before C++2c|because the pointed object " 32 "%select{non-constexpr|undefined}0 %select{function|constructor}1 %2 cannot " 45 "%select{|||||virtual function called on|dynamic_cast applied to|" 49 "reference dynamic_cast failed: %select{" 60 "%select{pointer|reference}0 to %select{|subobjec [all...] |
/llvm-project/flang/test/Semantics/ |
H A D | case01.f90 | 2 ! Test SELECT CASE Constraints: C1145, C1146, C1147, C1148, C1149 22 select case (grade1) 27 end select 29 select case (grade2) 34 end select 36 select case (grade3) 39 end select 41 select case (name) 45 end select 48 !ERROR: SELECT CASE expression must be integer, logical, or character [all …]
|
H A D | selecttype01.f90 | 2 ! Test for checking select type constraints, 50 select type ( a ) 63 end select 72 select type (ax => a%x) 75 end select 83 select type(10) 84 end select 86 select type(const_var) 87 end select 89 select type (4.999) [all …]
|
H A D | select-rank.f90 | 3 !Tests for SELECT RANK Construct(R1148) 23 SELECT RANK(x) 28 END SELECT 34 boo: SELECT RANK(x) 38 END SELECT boo 47 SELECT RANK(y) 52 END SELECT 54 SELECT RANK(x) 57 END SELECT 63 SELECT RANK(x) [all …]
|
/llvm-project/llvm/test/Analysis/CostModel/ARM/ |
H A D | select.ll | 16 ; CHECK-MVE-RECIP-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v0 = select i1 … 17 ; CHECK-MVE-RECIP-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v1 = select i1 … 18 ; CHECK-MVE-RECIP-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2 = select i1 … 19 ; CHECK-MVE-RECIP-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v3 = select i1 … 20 ; CHECK-MVE-RECIP-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4 = select i1 … 21 ; CHECK-MVE-RECIP-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v5 = select i1 … 22 ; CHECK-MVE-RECIP-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v6 = select i1 … 23 ; CHECK-MVE-RECIP-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v7 = select <2 … 24 ; CHECK-MVE-RECIP-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8 = select <4 … 25 ; CHECK-MVE-RECIP-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v9 = select <8 … [all …]
|
/llvm-project/llvm/test/Transforms/InstCombine/ |
H A D | select-with-bitwise-ops.ll | 13 ; CHECK-NEXT: [[SELECT:%.*]] = or i32 [[Y:%.*]], [[TMP1]] 14 ; CHECK-NEXT: ret i32 [[SELECT]] 19 %select = select i1 %cmp, i32 %y, i32 %or 20 ret i32 %select 27 ; CHECK-NEXT: [[SELECT:%.*]] = or <2 x i32> [[Y:%.*]], [[TMP1]] 28 ; CHECK-NEXT: ret <2 x i32> [[SELECT]] 33 %select = select <2 x i1> %cmp, <2 x i32> %y, <2 x i32> %or 34 ret <2 x i32> %select [all...] |
H A D | select-gep.ll | 7 ; CHECK-NEXT: [[SELECT_V:%.*]] = select i1 [[CMP]], ptr [[P]], ptr [[Q]] 8 ; CHECK-NEXT: [[SELECT:%.*]] = getelementptr i8, ptr [[SELECT_V]], i64 16 9 ; CHECK-NEXT: ret ptr [[SELECT]] 14 %select = select i1 %cmp, ptr %gep1, ptr %gep2 15 ret ptr %select 21 ; CHECK-NEXT: [[SELECT_V:%.*]] = select i1 [[CMP]], ptr [[P]], ptr [[Q]] 22 ; CHECK-NEXT: [[SELECT:%.*]] = getelementptr i8, ptr [[SELECT_V]], i64 16 23 ; CHECK-NEXT: ret ptr [[SELECT]] 28 %select [all...] |
H A D | select-factorize.ll | 8 ; CHECK-NEXT: [[TMP1:%.*]] = select i1 [[A:%.*]], i1 true, i1 [[B:%.*]] 9 ; CHECK-NEXT: [[OR:%.*]] = select i1 [[C:%.*]], i1 [[TMP1]], i1 false 12 %ac = select i1 %c, i1 %a, i1 false 13 %bc = select i1 %c, i1 %b, i1 false 14 %or = select i1 %ac, i1 true, i1 %bc 20 ; CHECK-NEXT: [[TMP1:%.*]] = select i1 [[A:%.*]], i1 true, i1 [[B:%.*]] 21 ; CHECK-NEXT: [[OR:%.*]] = select i1 [[C:%.*]], i1 [[TMP1]], i1 false 24 %ac = select i1 %a, i1 %c, i1 false 25 %bc = select i1 %c, i1 %b, i1 false 26 %or = select i [all...] |
H A D | select-and-or.ll | 11 ; CHECK-NEXT: [[RES:%.*]] = select i1 [[A:%.*]], i1 [[B:%.*]], i1 false 14 %res = select i1 %a, i1 %b, i1 false 21 ; CHECK-NEXT: [[RES:%.*]] = select i1 [[A:%.*]], i1 true, i1 [[B:%.*]] 24 %res = select i1 %a, i1 true, i1 %b 31 ; CHECK-NEXT: [[RES:%.*]] = select i1 [[NOT_A]], i1 [[B:%.*]], i1 false 34 %res = select i1 %a, i1 false, i1 %b 42 ; CHECK-NEXT: [[RES:%.*]] = select i1 [[NOT_A]], i1 true, i1 [[B:%.*]] 45 %res = select i1 %a, i1 %b, i1 true 50 ; or false in one of the select arms. It should be canonicalized to the 55 ; CHECK-NEXT: [[RES:%.*]] = select i [all...] |
H A D | nested-select.ll | 11 ; CHECK-NEXT: [[INNER_SEL:%.*]] = select i1 [[ALT_COND:%.*]], i8 [[OUTER_SEL_TRUEVAL:%.*]], i8 [[INNER_SEL_TRUEVAL:%.*]] 12 ; CHECK-NEXT: [[OUTER_SEL:%.*]] = select i1 [[INNER_COND:%.*]], i8 [[INNER_SEL]], i8 [[INNER_SEL_FALSEVAL:%.*]] 15 %outer.cond = select i1 %inner.cond, i1 %alt.cond, i1 false ; and %inner.cond, %alt.cond 16 %inner.sel = select i1 %inner.cond, i8 %inner.sel.trueval, i8 %inner.sel.falseval 17 %outer.sel = select i1 %outer.cond, i8 %outer.sel.trueval, i8 %inner.sel 22 ; CHECK-NEXT: [[INNER_SEL:%.*]] = select i1 [[ALT_COND:%.*]], i8 [[INNER_SEL_FALSEVAL:%.*]], i8 [[OUTER_SEL_FALSEVAL:%.*]] 23 ; CHECK-NEXT: [[OUTER_SEL:%.*]] = select i1 [[INNER_COND:%.*]], i8 [[INNER_SEL_TRUEVAL:%.*]], i8 [[INNER_SEL]] 26 %outer.cond = select i1 %inner.cond, i1 true, i1 %alt.cond ; or %inner.cond, %alt.cond 27 %inner.sel = select i1 %inner.cond, i8 %inner.sel.trueval, i8 %inner.sel.falseval 28 %outer.sel = select i [all...] |
/llvm-project/llvm/test/CodeGen/AArch64/GlobalISel/ |
H A D | postlegalizer-lowering-adjust-icmp-imm.mir | 3 …alizer-lowering -stop-after=instruction-select -verify-machineinstrs %s -o - | FileCheck %s --chec… 29 ; SELECT-LABEL: name: slt_to_sle_s32 30 ; SELECT: liveins: $w0 31 ; SELECT-NEXT: {{ $}} 32 ; SELECT-NEXT: %reg:gpr32sp = COPY $w0 33 ; SELECT-NEXT: [[SUBSWri:%[0-9]+]]:gpr32 = SUBSWri %reg, 1, 12, implicit-def $nzcv 34 ; SELECT-NEXT: %cmp:gpr32 = CSINCWr $wzr, $wzr, 12, implicit $nzcv 35 ; SELECT-NEXT: $w0 = COPY %cmp 36 ; SELECT-NEXT: RET_ReallyLR implicit $w0 65 ; SELECT-LABEL: name: slt_to_sle_s64 [all …]
|
H A D | postlegalizer-lowering-swap-compare-operands.mir | 3 # RUN: llc -mtriple=aarch64 -global-isel -start-before=aarch64-postlegalizer-lowering -stop-after=instruction-select -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=SELECT 32 ; SELECT-LABEL: name: swap_sextinreg_lhs 33 ; SELECT: liveins: $x0, $x1 34 ; SELECT-NEXT: {{ $}} 35 ; SELECT-NEXT: %reg:gpr64all = COPY $x0 36 ; SELECT-NEXT: [[COPY:%[0-9]+]]:gpr32all = COPY %reg.sub_32 37 ; SELECT-NEXT: [[COPY1:%[0-9]+]]:gpr32 = COPY [[COPY]] 38 ; SELECT-NEXT: %cmp_rhs:gpr64sp = COPY $x1 39 ; SELECT [all...] |
/llvm-project/llvm/test/CodeGen/Thumb2/ |
H A D | csel.ll | 13 %spec.select = select i1 %cmp, i32 6, i32 5 14 ret i32 %spec.select 26 %spec.select = select i1 %cmp, i32 5, i32 6 27 ret i32 %spec.select 38 %spec.select = zext i1 %cmp to i32 39 ret i32 %spec.select 51 %spec.select = select i [all...] |
/llvm-project/llvm/test/CodeGen/AMDGPU/ |
H A D | select-fabs-fneg-extract.ll | 9 ; GCN: v_cndmask_b32_e32 [[SELECT:v[0-9]+]], [[Y]], [[X]], vcc 10 ; GCN: v_add_f32_e64 v{{[0-9]+}}, |[[SELECT]]|, [[Z]] 18 %select = select i1 %cmp, float %fabs.x, float %fabs.y 19 %add = fadd float %select, %z 30 ; GCN: v_cndmask_b32_e32 [[SELECT:v[0-9]+]], [[Y]], [[X]], vcc 31 ; GCN-DAG: v_add_f32_e64 v{{[0-9]+}}, |[[SELECT]]|, [[Z]] 41 %select = select i1 %cmp, float %fabs.x, float %fabs.y 42 %add0 = fadd float %select, %z 54 ; GCN-DAG: v_cndmask_b32_e32 [[SELECT:v[0-9]+]], [[Y]], [[X]], vcc 55 ; GCN-DAG: v_add_f32_e64 [[ADD:v[0-9]+]], |[[SELECT]]|, [[Z]] [all …]
|
/llvm-project/llvm/test/Analysis/CostModel/AArch64/ |
H A D | select.ll | 6 define void @select() { 8 ; CHECK-THROUGHPUT-LABEL: 'select' 9 ; CHECK-THROUGHPUT-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v1 = select i1… 10 ; CHECK-THROUGHPUT-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2 = select i1… 11 ; CHECK-THROUGHPUT-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v3 = select i1… 12 ; CHECK-THROUGHPUT-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4 = select i1… 13 ; CHECK-THROUGHPUT-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v5 = select i1… 14 ; CHECK-THROUGHPUT-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v6 = select i1… 15 ; CHECK-THROUGHPUT-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %v13b = select… 16 ; CHECK-THROUGHPUT-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v15b = select … [all …]
|
/llvm-project/llvm/test/Transforms/InstSimplify/ |
H A D | select-logical.ll | 9 %xory = select i1 %x, i1 true, i1 %y 10 %xorynot = select i1 %x, i1 true, i1 %ynot 11 %and = select i1 %xory, i1 %xorynot, i1 false 20 %xory = select <2 x i1> %y, <2 x i1> <i1 true, i1 true>, <2 x i1> %x 21 %xorynot = select <2 x i1> %x, <2 x i1> <i1 true, i1 true>, <2 x i1> %ynot 22 %and = select <2 x i1> %xory, <2 x i1> %xorynot, <2 x i1> zeroinitializer 31 %xory = select i1 %x, i1 true, i1 %y 32 %xorynot = select i1 %ynot, i1 true, i1 %x 33 %and = select i1 %xory, i1 %xorynot, i1 false 42 %xory = select i [all...] |
/llvm-project/llvm/test/Analysis/CostModel/X86/ |
H A D | select-sizelatency.ll | 13 ; Verify the cost of vector select instructions. 17 ; SSE2-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = select i1 undef, i64… 18 ; SSE2-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %V2I64 = select <2 x i1> un… 19 ; SSE2-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %V4I64 = select <4 x i1> un… 20 ; SSE2-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %V8I64 = select <8 x i1> u… 21 ; SSE2-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = select i1 undef, i32… 22 ; SSE2-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %V4I32 = select <4 x i1> un… 23 ; SSE2-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %V8I32 = select <8 x i1> un… 24 ; SSE2-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %V16I32 = select <16 x i1>… 25 ; SSE2-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = select i1 undef, i16… [all …]
|
H A D | select-codesize.ll | 13 ; Verify the cost of vector select instructions. 17 ; SSE2-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = select i1 undef, i64… 18 ; SSE2-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %V2I64 = select <2 x i1> un… 19 ; SSE2-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %V4I64 = select <4 x i1> un… 20 ; SSE2-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %V8I64 = select <8 x i1> u… 21 ; SSE2-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = select i1 undef, i32… 22 ; SSE2-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %V4I32 = select <4 x i1> un… 23 ; SSE2-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %V8I32 = select <8 x i1> un… 24 ; SSE2-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %V16I32 = select <16 x i1>… 25 ; SSE2-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = select i1 undef, i16… [all …]
|
H A D | select-latency.ll | 13 ; Verify the cost of vector select instructions. 17 ; SSE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = select i1 undef, i64 … 18 ; SSE-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %V2I64 = select <2 x i1> und… 19 ; SSE-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %V4I64 = select <4 x i1> und… 20 ; SSE-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %V8I64 = select <8 x i1> und… 21 ; SSE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = select i1 undef, i32 … 22 ; SSE-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %V4I32 = select <4 x i1> und… 23 ; SSE-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %V8I32 = select <8 x i1> und… 24 ; SSE-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %V16I32 = select <16 x i1> u… 25 ; SSE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = select i1 undef, i16 … [all …]
|
H A D | select.ll | 13 ; Verify the cost of vector select instructions. 17 ; SSE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = select i1 undef, i64 … 18 ; SSE-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %V2I64 = select <2 x i1> und… 19 ; SSE-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %V4I64 = select <4 x i1> und… 20 ; SSE-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %V8I64 = select <8 x i1> und… 21 ; SSE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = select i1 undef, i32 … 22 ; SSE-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %V4I32 = select <4 x i1> und… 23 ; SSE-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %V8I32 = select <8 x i1> und… 24 ; SSE-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %V16I32 = select <16 x i1> u… 25 ; SSE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = select i1 undef, i16 … [all …]
|
/llvm-project/lldb/test/API/commands/frame/select/ |
H A D | TestFrameSelect.py | 2 Test 'frame select' command. 20 self.expect("frame select -r 1", substrs=["nested2() at"]) 21 self.expect("frame select -r -1", substrs=["nested3() at"]) 24 "frame select -r -1", 29 "frame select -r -2147483647", 34 "frame select -r -2147483648", 39 "frame select -r -2147483649", 44 self.expect("frame select -r 1", substrs=["nested2() at"]) 45 self.expect("frame select -r -2", substrs=["nested3() at"]) 46 self.expect("frame select -r 1", substrs=["nested2() at"]) [all …]
|