Home
last modified time | relevance | path

Searched full:arg (Results 1 – 25 of 4365) sorted by relevance

12345678910>>...175

/llvm-project/llvm/test/Transforms/InstSimplify/
H A Dassume-fcmp-constant-implies-class.ll15 define i1 @assume_olt_neg1__oeq_0(float %arg) {
17 ; CHECK-SAME: float [[ARG:%.*]]) {
18 ; CHECK-NEXT: [[OLT_NEG1:%.*]] = fcmp olt float [[ARG]], -1.000000e+00
22 %olt.neg1 = fcmp olt float %arg, -1.0
24 %cmp = fcmp oeq float %arg, 0.0
28 define i1 @assume_olt_neg1__ogt_0(float %arg) {
30 ; CHECK-SAME: float [[ARG:%.*]]) {
31 ; CHECK-NEXT: [[OLT_NEG1:%.*]] = fcmp olt float [[ARG]], -1.000000e+00
35 %olt.neg1 = fcmp olt float %arg, -1.0
37 %cmp = fcmp ogt float %arg, 0.0
[all …]
/llvm-project/llvm/test/Transforms/Attributor/
H A Dnofpclass-implied-by-fcmp.ll13 define float @clamp_is_ogt_1_to_1(float %arg) {
15 ; CHECK-SAME: float [[ARG:%.*]]) #[[ATTR2:[0-9]+]] {
16 ; CHECK-NEXT: [[IS_OGT_1:%.*]] = fcmp ogt float [[ARG]], 1.000000e+00
17 ; CHECK-NEXT: [[SELECT:%.*]] = select i1 [[IS_OGT_1]], float 1.000000e+00, float [[ARG]]
20 %is.ogt.1 = fcmp ogt float %arg, 1.0
21 %select = select i1 %is.ogt.1, float 1.0, float %arg
25 define float @clamp_is_ogt_1_to_1_commute(float %arg) {
27 ; CHECK-SAME: float [[ARG:%.*]]) #[[ATTR2]] {
28 ; CHECK-NEXT: [[IS_ULE_1:%.*]] = fcmp ule float [[ARG]], 1.000000e+00
29 ; CHECK-NEXT: [[SELECT:%.*]] = select i1 [[IS_ULE_1]], float [[ARG]], float 1.000000e+00
[all …]
H A Dnofpclass-select.ll67 define float @ret_select_clamp_nan_to_zero_uno(float %arg) {
69 ; CHECK-SAME: (float [[ARG:%.*]]) #[[ATTR1]] {
70 ; CHECK-NEXT: [[IS_NAN:%.*]] = fcmp uno float [[ARG]], 0.000000e+00
71 ; CHECK-NEXT: [[SELECT:%.*]] = select i1 [[IS_NAN]], float 0.000000e+00, float [[ARG]]
74 %is.nan = fcmp uno float %arg, 0.0
75 %select = select i1 %is.nan, float 0.0, float %arg
79 define float @ret_select_clamp_nan_to_zero_ord(float %arg) {
81 ; CHECK-SAME: (float [[ARG:%.*]]) #[[ATTR1]] {
82 ; CHECK-NEXT: [[NOT_NAN:%.*]] = fcmp ord float [[ARG]], 0.000000e+00
83 ; CHECK-NEXT: [[SELECT:%.*]] = select i1 [[NOT_NAN]], float [[ARG]], float 0.000000e+00
[all …]
H A Dnofpclass-log.ll13 define float @ret_log(float %arg) #0 {
15 ; CHECK-SAME: (float [[ARG:%.*]]) #[[ATTR2:[0-9]+]] {
16 ; CHECK-NEXT: [[CALL:%.*]] = call float @llvm.log.f32(float [[ARG]]) #[[ATTR10:[0-9]+]]
19 %call = call float @llvm.log.f32(float %arg)
23 define float @ret_log_noinf(float nofpclass(inf) %arg) #0 {
25 ; CHECK-SAME: (float nofpclass(inf) [[ARG:%.*]]) #[[ATTR2]] {
26 ; CHECK-NEXT: [[CALL:%.*]] = call nofpclass(pinf) float @llvm.log.f32(float nofpclass(inf) [[ARG
29 %call = call float @llvm.log.f32(float %arg)
33 define float @ret_log_noneg(float nofpclass(ninf nsub nnorm) %arg) #0 {
35 ; CHECK-SAME: (float nofpclass(ninf nsub nnorm) [[ARG:%.*]]) #[[ATTR2]] {
[all …]
/llvm-project/llvm/unittests/Analysis/
H A DCaptureTrackingTest.cpp26 ; %arg has 5 uses in TEST()
27 define void @test_few_uses(i8* %arg) { in TEST()
28 call void @doesnt_capture(i8* %arg, i8* %arg, i8* %arg, i8* %arg, i8* %arg) in TEST()
32 ; %arg has 50 uses in TEST()
33 define void @test_many_uses(i8* %arg) { in TEST()
34 call void @doesnt_capture(i8* %arg, i8* %arg, i8* %arg, i8* %arg, i8* %arg) in TEST()
35 call void @doesnt_capture(i8* %arg, i8* %arg, i8* %arg, i8* %arg, i8* %arg) in TEST()
36 call void @doesnt_capture(i8* %arg, i8* %arg, i8* %arg, i8* %arg, i8* %arg) in TEST()
37 call void @doesnt_capture(i8* %arg, i8* %arg, i8* %arg, i8* %arg, i8* %arg) in TEST()
38 call void @doesnt_capture(i8* %arg, i8* %arg, i8* %arg, i8* %arg, i8* %arg) in TEST()
[all …]
/llvm-project/llvm/test/CodeGen/PowerPC/
H A Dfp-int-conversions-direct-moves.ll8 define zeroext i8 @_Z6testcff(float %arg) {
16 %arg.addr = alloca float, align 4
17 store float %arg, ptr %arg.addr, align 4
18 %0 = load float, ptr %arg.addr, align 4
24 define float @_Z6testfcc(i8 zeroext %arg) {
32 %arg.addr = alloca i8, align 1
33 store i8 %arg, ptr %arg.addr, align 1
34 %0 = load i8, ptr %arg.addr, align 1
40 define zeroext i8 @_Z6testcdd(double %arg) {
48 %arg.addr = alloca double, align 8
[all …]
/llvm-project/libcxx/test/std/time/time.syn/
H A Dformatter_tests.h75 const T& arg) { in check_invalid_type()
83 std::basic_string_view<CharT>{fmt}, std::make_format_args<format_context<CharT>>(arg)); in check_invalid_type()
93 check_exception(what, std::basic_string_view<CharT>{fmt}, arg); in check_invalid_type()
98 void check_invalid_types(const std::set<std::basic_string_view<CharT>>& valid_types, const T& arg) { in check_invalid_types()
99 check_invalid_type(valid_types, "The supplied date time doesn't contain a weekday", STR("a"), arg); in check_invalid_types()
100 check_invalid_type(valid_types, "The supplied date time doesn't contain a weekday", STR("A"), arg); in check_invalid_types()
101 check_invalid_type(valid_types, "The supplied date time doesn't contain a month", STR("b"), arg); in check_invalid_types()
102 check_invalid_type(valid_types, "The supplied date time doesn't contain a month", STR("B"), arg); in check_invalid_types()
103 check_invalid_type(valid_types, "The supplied date time doesn't contain a date and time", STR("c"), arg); in check_invalid_types()
104 check_invalid_type(valid_types, "The supplied date time doesn't contain a year", STR("C"), arg); in check_invalid_types()
74 check_invalid_type(const std::set<std::basic_string_view<CharT>> & valid_types,std::string_view what,std::basic_string<CharT> type,const T & arg) check_invalid_type() argument
97 check_invalid_types(const std::set<std::basic_string_view<CharT>> & valid_types,const T & arg) check_invalid_types() argument
[all...]
/llvm-project/llvm/test/CodeGen/AMDGPU/
H A Damdgpu-simplify-libcall-exp2.ll27 define float @test_exp2_f32(float %arg) {
29 ; CHECK-SAME: (float [[ARG:%.*]]) {
30 ; CHECK-NEXT: [[EXP2:%.*]] = tail call float @_Z4exp2f(float [[ARG]]), !fpmath !0
33 %exp2 = tail call float @_Z4exp2f(float %arg), !fpmath !0
37 define <2 x float> @test_exp2_v2f32(<2 x float> %arg) {
39 ; CHECK-SAME: (<2 x float> [[ARG:%.*]]) {
40 ; CHECK-NEXT: [[EXP2:%.*]] = tail call <2 x float> @_Z4exp2Dv2_f(<2 x float> [[ARG]]), !fpmath !0
43 %exp2 = tail call <2 x float> @_Z4exp2Dv2_f(<2 x float> %arg), !fpmath !0
47 define <3 x float> @test_exp2_v3f32(<3 x float> %arg) {
49 ; CHECK-SAME: (<3 x float> [[ARG:%.*]]) {
[all …]
H A Damdgpu-simplify-libcall-log10.ll27 define float @test_log10_f32(float %arg) {
29 ; CHECK-SAME: (float [[ARG:%.*]]) {
30 ; CHECK-NEXT: [[LOG10:%.*]] = tail call float @_Z5log10f(float [[ARG]]), !fpmath !0
33 %log10 = tail call float @_Z5log10f(float %arg), !fpmath !0
37 define <2 x float> @test_log10_v2f32(<2 x float> %arg) {
39 ; CHECK-SAME: (<2 x float> [[ARG:%.*]]) {
40 ; CHECK-NEXT: [[LOG10:%.*]] = tail call <2 x float> @_Z5log10Dv2_f(<2 x float> [[ARG]]), !fpmath…
43 %log10 = tail call <2 x float> @_Z5log10Dv2_f(<2 x float> %arg), !fpmath !0
47 define <3 x float> @test_log10_v3f32(<3 x float> %arg) {
49 ; CHECK-SAME: (<3 x float> [[ARG:%.*]]) {
[all …]
H A Damdgpu-simplify-libcall-log.ll27 define float @test_log_f32(float %arg) {
29 ; CHECK-SAME: (float [[ARG:%.*]]) {
30 ; CHECK-NEXT: [[LOG:%.*]] = tail call float @_Z3logf(float [[ARG]]), !fpmath !0
33 %log = tail call float @_Z3logf(float %arg), !fpmath !0
37 define <2 x float> @test_log_v2f32(<2 x float> %arg) {
39 ; CHECK-SAME: (<2 x float> [[ARG:%.*]]) {
40 ; CHECK-NEXT: [[LOG:%.*]] = tail call <2 x float> @_Z3logDv2_f(<2 x float> [[ARG]]), !fpmath !0
43 %log = tail call <2 x float> @_Z3logDv2_f(<2 x float> %arg), !fpmath !0
47 define <3 x float> @test_log_v3f32(<3 x float> %arg) {
49 ; CHECK-SAME: (<3 x float> [[ARG:%.*]]) {
[all …]
H A Damdgpu-simplify-libcall-exp.ll27 define float @test_exp_f32(float %arg) {
29 ; CHECK-SAME: (float [[ARG:%.*]]) {
30 ; CHECK-NEXT: [[EXP:%.*]] = tail call float @_Z3expf(float [[ARG]]), !fpmath !0
33 %exp = tail call float @_Z3expf(float %arg), !fpmath !0
37 define <2 x float> @test_exp_v2f32(<2 x float> %arg) {
39 ; CHECK-SAME: (<2 x float> [[ARG:%.*]]) {
40 ; CHECK-NEXT: [[EXP:%.*]] = tail call <2 x float> @_Z3expDv2_f(<2 x float> [[ARG]]), !fpmath !0
43 %exp = tail call <2 x float> @_Z3expDv2_f(<2 x float> %arg), !fpmath !0
47 define <3 x float> @test_exp_v3f32(<3 x float> %arg) {
49 ; CHECK-SAME: (<3 x float> [[ARG:%.*]]) {
[all …]
H A Damdgpu-simplify-libcall-log2.ll27 define float @test_log2_f32(float %arg) {
29 ; CHECK-SAME: (float [[ARG:%.*]]) {
30 ; CHECK-NEXT: [[LOG2:%.*]] = tail call float @_Z4log2f(float [[ARG]]), !fpmath !0
33 %log2 = tail call float @_Z4log2f(float %arg), !fpmath !0
37 define <2 x float> @test_log2_v2f32(<2 x float> %arg) {
39 ; CHECK-SAME: (<2 x float> [[ARG:%.*]]) {
40 ; CHECK-NEXT: [[LOG2:%.*]] = tail call <2 x float> @_Z4log2Dv2_f(<2 x float> [[ARG]]), !fpmath !0
43 %log2 = tail call <2 x float> @_Z4log2Dv2_f(<2 x float> %arg), !fpmath !0
47 define <3 x float> @test_log2_v3f32(<3 x float> %arg) {
49 ; CHECK-SAME: (<3 x float> [[ARG:%.*]]) {
[all …]
H A Damdgpu-simplify-libcall-sqrt.ll27 define float @test_sqrt_f32(float %arg) {
29 ; CHECK-SAME: (float [[ARG:%.*]]) {
30 ; CHECK-NEXT: [[SQRT:%.*]] = tail call float @llvm.sqrt.f32(float [[ARG]]), !fpmath [[META0:![0-…
33 %sqrt = tail call float @_Z4sqrtf(float %arg), !fpmath !0
37 define <2 x float> @test_sqrt_v2f32(<2 x float> %arg) {
39 ; CHECK-SAME: (<2 x float> [[ARG:%.*]]) {
40 ; CHECK-NEXT: [[SQRT:%.*]] = tail call <2 x float> @llvm.sqrt.v2f32(<2 x float> [[ARG]]), !fpmat…
43 %sqrt = tail call <2 x float> @_Z4sqrtDv2_f(<2 x float> %arg), !fpmath !0
47 define <3 x float> @test_sqrt_v3f32(<3 x float> %arg) {
49 ; CHECK-SAME: (<3 x float> [[ARG:%.*]]) {
[all …]
H A Damdgpu-simplify-libcall-ceil.ll27 define float @test_ceil_f32(float %arg) {
29 ; CHECK-SAME: (float [[ARG:%.*]]) {
30 ; CHECK-NEXT: [[CEIL:%.*]] = tail call float @llvm.ceil.f32(float [[ARG]])
33 %ceil = tail call float @_Z4ceilf(float %arg)
37 define <2 x float> @test_ceil_v2f32(<2 x float> %arg) {
39 ; CHECK-SAME: (<2 x float> [[ARG:%.*]]) {
40 ; CHECK-NEXT: [[CEIL:%.*]] = tail call <2 x float> @llvm.ceil.v2f32(<2 x float> [[ARG]])
43 %ceil = tail call <2 x float> @_Z4ceilDv2_f(<2 x float> %arg)
47 define <3 x float> @test_ceil_v3f32(<3 x float> %arg) {
49 ; CHECK-SAME: (<3 x float> [[ARG:%.*]]) {
[all …]
H A Damdgpu-simplify-libcall-fabs.ll27 define float @test_fabs_f32(float %arg) {
29 ; CHECK-SAME: (float [[ARG:%.*]]) {
30 ; CHECK-NEXT: [[FABS:%.*]] = tail call float @llvm.fabs.f32(float [[ARG]])
33 %fabs = tail call float @_Z4fabsf(float %arg)
37 define <2 x float> @test_fabs_v2f32(<2 x float> %arg) {
39 ; CHECK-SAME: (<2 x float> [[ARG:%.*]]) {
40 ; CHECK-NEXT: [[FABS:%.*]] = tail call <2 x float> @llvm.fabs.v2f32(<2 x float> [[ARG]])
43 %fabs = tail call <2 x float> @_Z4fabsDv2_f(<2 x float> %arg)
47 define <3 x float> @test_fabs_v3f32(<3 x float> %arg) {
49 ; CHECK-SAME: (<3 x float> [[ARG:%.*]]) {
[all …]
H A Damdgpu-simplify-libcall-trunc.ll27 define float @test_rint_f32(float %arg) {
29 ; CHECK-SAME: (float [[ARG:%.*]]) {
30 ; CHECK-NEXT: [[RINT:%.*]] = tail call float @llvm.trunc.f32(float [[ARG]])
33 %rint = tail call float @_Z5truncf(float %arg)
37 define <2 x float> @test_rint_v2f32(<2 x float> %arg) {
39 ; CHECK-SAME: (<2 x float> [[ARG:%.*]]) {
40 ; CHECK-NEXT: [[RINT:%.*]] = tail call <2 x float> @llvm.trunc.v2f32(<2 x float> [[ARG]])
43 %rint = tail call <2 x float> @_Z5truncDv2_f(<2 x float> %arg)
47 define <3 x float> @test_rint_v3f32(<3 x float> %arg) {
49 ; CHECK-SAME: (<3 x float> [[ARG:%.*]]) {
[all …]
H A Damdgpu-simplify-libcall-round.ll27 define float @test_rint_f32(float %arg) {
29 ; CHECK-SAME: (float [[ARG:%.*]]) {
30 ; CHECK-NEXT: [[RINT:%.*]] = tail call float @llvm.round.f32(float [[ARG]])
33 %rint = tail call float @_Z5roundf(float %arg)
37 define <2 x float> @test_rint_v2f32(<2 x float> %arg) {
39 ; CHECK-SAME: (<2 x float> [[ARG:%.*]]) {
40 ; CHECK-NEXT: [[RINT:%.*]] = tail call <2 x float> @llvm.round.v2f32(<2 x float> [[ARG]])
43 %rint = tail call <2 x float> @_Z5roundDv2_f(<2 x float> %arg)
47 define <3 x float> @test_rint_v3f32(<3 x float> %arg) {
49 ; CHECK-SAME: (<3 x float> [[ARG:%.*]]) {
[all …]
H A Damdgpu-simplify-libcall-floor.ll27 define float @test_rint_f32(float %arg) {
29 ; CHECK-SAME: (float [[ARG:%.*]]) {
30 ; CHECK-NEXT: [[RINT:%.*]] = tail call float @llvm.floor.f32(float [[ARG]])
33 %rint = tail call float @_Z5floorf(float %arg)
37 define <2 x float> @test_rint_v2f32(<2 x float> %arg) {
39 ; CHECK-SAME: (<2 x float> [[ARG:%.*]]) {
40 ; CHECK-NEXT: [[RINT:%.*]] = tail call <2 x float> @llvm.floor.v2f32(<2 x float> [[ARG]])
43 %rint = tail call <2 x float> @_Z5floorDv2_f(<2 x float> %arg)
47 define <3 x float> @test_rint_v3f32(<3 x float> %arg) {
49 ; CHECK-SAME: (<3 x float> [[ARG:%.*]]) {
[all …]
H A Damdgpu-simplify-libcall-rint.ll27 define float @test_rint_f32(float %arg) {
29 ; CHECK-SAME: (float [[ARG:%.*]]) {
30 ; CHECK-NEXT: [[RINT:%.*]] = tail call float @llvm.rint.f32(float [[ARG]])
33 %rint = tail call float @_Z4rintf(float %arg)
37 define <2 x float> @test_rint_v2f32(<2 x float> %arg) {
39 ; CHECK-SAME: (<2 x float> [[ARG:%.*]]) {
40 ; CHECK-NEXT: [[RINT:%.*]] = tail call <2 x float> @llvm.rint.v2f32(<2 x float> [[ARG]])
43 %rint = tail call <2 x float> @_Z4rintDv2_f(<2 x float> %arg)
47 define <3 x float> @test_rint_v3f32(<3 x float> %arg) {
49 ; CHECK-SAME: (<3 x float> [[ARG:%.*]]) {
[all …]
/llvm-project/libcxx/benchmarks/algorithms/
H A Dminmax.bench.cpp
H A Dmin.bench.cpp
/llvm-project/llvm/test/Transforms/InstCombine/
H A Dicmp-abs.ll6 define i1 @icmp_sge_abs(i4 %arg) {
10 %abs = call i4 @llvm.abs.i4(i4 %arg, i1 true)
11 %cmp = icmp sge i4 %abs, %arg
15 define i1 @icmp_sge_abs_false(i4 %arg) {
19 %abs = call i4 @llvm.abs.i4(i4 %arg, i1 false)
20 %cmp = icmp sge i4 %abs, %arg
24 define i1 @icmp_eq_abs(i4 %arg) {
26 ; CHECK-NEXT: [[CMP:%.*]] = icmp sgt i4 [[ARG:%.*]], -1
29 %abs = call i4 @llvm.abs.i4(i4 %arg, i1 true)
30 %cmp = icmp eq i4 %abs, %arg
[all …]
H A Dsigned-truncation-check.ll8 ; are uniform, i.e. %arg & 4294967168 can be either 4294967168 or 0
10 ; %t = add i32 %arg, 128
13 ; %t0 = shl i32 %arg, 24
15 ; %r = icmp eq i32 %t1, %arg
17 ; %t0 = trunc i32 %arg to i8
19 ; %r = icmp eq i32 %t1, %arg
24 ; %r = icmp sgt i32 %arg, -1
26 ; %t = and i32 %arg, 2147483648
33 ; %r = icmp ult i32 %arg, 128
39 define i1 @positive_with_signbit(i32 %arg) {
[all...]
/llvm-project/llvm/test/Transforms/Reassociate/
H A Dpointer-collision-non-determinism.ll28 define float @test(float %arg) {
31 ; CHECK-NEXT: [[TMP:%.*]] = fmul fast float [[ARG:%.*]], 0x3FE99999A0000000
33 ; CHECK-NEXT: [[TMP2:%.*]] = fmul fast float [[ARG]], 0x3FE99999A0000000
35 ; CHECK-NEXT: [[REASS_MUL160:%.*]] = fmul fast float [[TMP110]], [[ARG]]
37 ; CHECK-NEXT: [[TMP5:%.*]] = fadd fast float [[TMP4]], [[ARG]]
38 ; CHECK-NEXT: [[TMP6:%.*]] = fmul fast float [[TMP5]], [[ARG]]
39 ; CHECK-NEXT: [[TMP7:%.*]] = fadd fast float [[TMP6]], [[ARG]]
40 ; CHECK-NEXT: [[TMP8:%.*]] = fmul fast float [[TMP7]], [[ARG]]
41 ; CHECK-NEXT: [[TMP9:%.*]] = fadd fast float [[TMP8]], [[ARG]]
42 ; CHECK-NEXT: [[TMP10:%.*]] = fmul fast float [[TMP9]], [[ARG]]
[all …]
/llvm-project/llvm/test/Transforms/RewriteStatepointsForGC/
H A Dstrip-invalid-attributes.ll9 define ptr addrspace(1) @deref_arg(ptr addrspace(1) dereferenceable(16) %arg) gc "statepoint-exampl…
10 ; CHECK: define ptr addrspace(1) @deref_arg(ptr addrspace(1) %arg)
12 ret ptr addrspace(1) %arg
15 define dereferenceable(16) ptr addrspace(1) @deref_ret(ptr addrspace(1) %arg) gc "statepoint-exampl…
16 ; CHECK: define ptr addrspace(1) @deref_ret(ptr addrspace(1) %arg)
18 ret ptr addrspace(1) %arg
21 define ptr addrspace(1) @deref_or_null_arg(ptr addrspace(1) dereferenceable_or_null(16) %arg) gc "s…
22 ; CHECK: define ptr addrspace(1) @deref_or_null_arg(ptr addrspace(1) %arg)
24 ret ptr addrspace(1) %arg
27 define dereferenceable_or_null(16) ptr addrspace(1) @deref_or_null_ret(ptr addrspace(1) %arg) gc "s…
[all …]

12345678910>>...175