Home
last modified time | relevance | path

Searched refs:pi (Results 1 – 25 of 202) sorted by relevance

123456789

/llvm-project-15.0.7/clang/test/CXX/over/over.built/
H A Dp16.cpp27 (void)(a == pi); in f()
28 (void)(a != pi); in f()
43 (void)(b < pi); in f()
44 (void)(b > pi); in f()
50 (void)(pi < b); in f()
62 (void)(pi == pi); in f()
63 (void)(pi != pi); in f()
64 (void)(pi < pi); in f()
65 (void)(pi > pi); in f()
66 (void)(pi <= pi); in f()
[all …]
H A Dp17.cpp27 (void)(a == pi); in f()
28 (void)(a != pi); in f()
34 (void)(pi == a); in f()
35 (void)(pi != a); in f()
41 (void)(b == pi); in f()
62 (void)(pi == pi); in f()
63 (void)(pi != pi); in f()
64 (void)(pi < pi); // expected-error {{invalid operands}} in f()
65 (void)(pi > pi); // expected-error {{invalid operands}} in f()
66 (void)(pi <= pi); // expected-error {{invalid operands}} in f()
[all …]
H A Dp18.cpp4 void f(int i, float f, bool b, int* pi, T* pt, T t) { in f() argument
8 (void)(pi % 3); // expected-error {{invalid operands}} in f()
14 (void)(3 % pi); // expected-error {{invalid operands}} in f()
21 (void)(pi & 3); // expected-error {{invalid operands}} in f()
27 (void)(3 & pi); // expected-error {{invalid operands}} in f()
34 (void)(pi ^ 3); // expected-error {{invalid operands}} in f()
40 (void)(3 ^ pi); // expected-error {{invalid operands}} in f()
47 (void)(pi | 3); // expected-error {{invalid operands}} in f()
53 (void)(3 | pi); // expected-error {{invalid operands}} in f()
60 (void)(pi << 3); // expected-error {{invalid operands}} in f()
[all …]
H A Dp22.cpp4 void f(int* pi, T* pt, T t) { in f() argument
5 pi += 3; in f()
6 pi += pi; // expected-error {{invalid operands}} in f()
8 pi += t; in f()
9 pi += pt; // FIXME in f()
10 pt += pi; //FIXME in f()
H A Dp21.cpp7 void f(int A::* pi, float A::* pf, int T::* pt, T A::* pu, T t) { in f() argument
8 pi = pi; in f()
9 pi = pf; // expected-error {{assigning to 'int A::*' from incompatible type 'float A::*'}} in f()
10 pi = pt; in f()
11 pi = pu; in f()
12 pi = t; in f()
H A Dp15.cpp4 void f(int* pi, float* pf, T* pt, U* pu, T t) { in f() argument
5 (void)(pi - pi); in f()
6 (void)(pi - pf); // expected-error {{not pointers to compatible types}} in f()
7 (void)(pi - pt); in f()
8 (void)(pu - pi); in f()
11 (void)(pi - t); in f()
H A Dp20.cpp4 void f(int* pi, float* pf, T* pt, U* pu, T t) { in f() argument
5 pi = pi; in f()
6 pi = pf; // expected-error {{incompatible pointer types}} in f()
7 pi = pt; in f()
8 pu = pi; in f()
10 pi = t; in f()
H A Dp23.cpp4 void f(int i, float f, bool b, int* pi, T* pt, T t) { in f() argument
8 pi %= 3; // expected-error {{invalid operands}} in f()
15 pi &= 3; // expected-error {{invalid operands}} in f()
22 pi ^= 3; // expected-error {{invalid operands}} in f()
29 pi |= 3; // expected-error {{invalid operands}} in f()
36 pi <<= 3; // expected-error {{invalid operands}} in f()
43 pi >>= 3; // expected-error {{invalid operands}} in f()
H A Dp14.cpp4 void f(int* pi, T* pt) { in f() argument
5 (void)(pi+3); in f()
6 (void)(3+pi); in f()
7 (void)(pi-3); in f()
8 (void)(pi[3]); in f()
9 (void)(3[pi]); in f()
H A Dp13.cpp4 void f(int i, float f, bool b, char c, int* pi, T* pt) { in f() argument
9 (void)(i*pi); // expected-error {{invalid operands to binary expression}} in f()
16 (void)(i/pi); // expected-error {{invalid operands to binary expression}} in f()
23 (void)(i-pi); // expected-error {{invalid operands to binary expression}} in f()
30 (void)(i<pi); // expected-error {{comparison between pointer and integer}} in f()
37 (void)(i==pi); // expected-error {{comparison between pointer and integer}} in f()
H A Dp6.cpp6 void f(int* pi, A* pa, T* pt) { in f() argument
7 (void)++pi; in f()
8 (void)pi++; in f()
9 (void)--pi; in f()
10 (void)pi--; in f()
/llvm-project-15.0.7/libcxx/test/std/numerics/complex.number/complex.value.ops/
H A Darg.pass.cpp31 const double pi = std::atan2(+0., -0.); in test_edges() local
46 is_about(r, -pi); in test_edges()
48 is_about(r, pi); in test_edges()
59 is_about(r, -pi/2); in test_edges()
61 is_about(r, pi/2); in test_edges()
68 is_about(r, -pi); in test_edges()
70 is_about(r, pi); in test_edges()
106 is_about(r, -pi); in test_edges()
108 is_about(r, pi); in test_edges()
119 is_about(r, -pi/2); in test_edges()
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.cast/
H A Dreinterpret_pointer_cast.pass.cpp32 std::shared_ptr<int> pi = std::reinterpret_pointer_cast<int>(pA); in main() local
33 std::shared_ptr<A> pA2 = std::reinterpret_pointer_cast<A>(pi); in main()
35 assert(!pi.owner_before(pA) && !pA.owner_before(pi)); in main()
39 std::shared_ptr<int> pi = std::reinterpret_pointer_cast<int>(pA); in main() local
40 std::shared_ptr<A> pA2 = std::reinterpret_pointer_cast<A>(pi); in main()
42 assert(!pi.owner_before(pA) && !pA.owner_before(pi)); in main()
46 std::shared_ptr<int> pi = std::reinterpret_pointer_cast<int>(pA); in main() local
48 assert(*pi == 42); in main()
67 std::shared_ptr<int[8]> pi = std::reinterpret_pointer_cast<int[8]>(pA); in main() local
68 std::shared_ptr<A[8]> pA2 = std::reinterpret_pointer_cast<A[8]>(pi); in main()
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/ARM/
H A Dunaligned_load_store_vector.ll10 %pi = getelementptr i8, i8* %in, i32 0
11 %vi = bitcast i8* %pi to <8 x i8>*
28 %pi = getelementptr i8, i8* %in, i32 0
29 %vi = bitcast i8* %pi to <4 x i16>*
47 %vi = bitcast i8* %pi to <2 x i32>*
65 %vi = bitcast i8* %pi to <2 x float>*
83 %vi = bitcast i8* %pi to <16 x i8>*
101 %vi = bitcast i8* %pi to <8 x i16>*
119 %vi = bitcast i8* %pi to <4 x i32>*
137 %vi = bitcast i8* %pi to <2 x i64>*
[all …]
/llvm-project-15.0.7/compiler-rt/test/profile/Windows/Inputs/
H A Dinstrprof-multiprocess.c10 void spawn_child(PROCESS_INFORMATION *pi, int child_num) { in spawn_child() argument
23 memset(pi, 0, sizeof(PROCESS_INFORMATION)); in spawn_child()
33 &si, pi)) { in spawn_child()
40 int wait_child(PROCESS_INFORMATION *pi) { in wait_child() argument
41 WaitForSingleObject(pi->hProcess, INFINITE); in wait_child()
44 if (!GetExitCodeProcess(pi->hProcess, &exit_code)) { in wait_child()
50 CloseHandle(pi->hProcess); in wait_child()
51 CloseHandle(pi->hThread); in wait_child()
/llvm-project-15.0.7/compiler-rt/test/asan/TestCases/
H A Dexitcode.cpp28 PROCESS_INFORMATION pi; in spawn_child() local
29 memset(&pi, 0, sizeof(pi)); in spawn_child()
39 &si, &pi)) { in spawn_child()
45 WaitForSingleObject(pi.hProcess, INFINITE); in spawn_child()
48 if (!GetExitCodeProcess(pi.hProcess, &exit_code)) { in spawn_child()
54 CloseHandle(pi.hProcess); in spawn_child()
55 CloseHandle(pi.hThread); in spawn_child()
/llvm-project-15.0.7/llvm/test/Analysis/BasicAA/
H A Dnoalias-geps.ll8 %pi = getelementptr i32, i32* %p, i32 0
9 %pi.next = getelementptr i32, i32* %p, i32 1
14 %f = getelementptr i32, i32* %pi, i32 1
15 %g = getelementptr i32, i32* %pi.next, i32 1
18 %f2 = getelementptr i32, i32* %pi, i32 1
19 %g2 = getelementptr i32, i32* %pi.next, i32 1
41 %pi = getelementptr [2 x i32], [2 x i32]* %p, i32 0
42 %pi.next = getelementptr [2 x i32], [2 x i32]* %p, i32 1
47 %f = getelementptr [2 x i32], [2 x i32]* %pi, i32 1
48 %g = getelementptr [2 x i32], [2 x i32]* %pi.next, i32 1
[all …]
H A Dgep-alias.ll80 %x = load i32, i32* %pi
81 store i32 42, i32* %pi.next
82 %y = load i32, i32* %pi
122 %x = load i32, i32* %pi
123 store i32 42, i32* %pi.next
124 %y = load i32, i32* %pi
136 %x = load i32, i32* %pi
137 store i32 42, i32* %pi.next
138 %y = load i32, i32* %pi
153 %x = load i32, i32* %pi
[all …]
/llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Windows/
H A Ddll_control_c.cpp72 PROCESS_INFORMATION pi; in run_parent() local
73 memset(&pi, 0, sizeof(pi)); in run_parent()
83 &si, &pi)) { in run_parent()
90 if (WaitForSingleObject(pi.hProcess, INFINITE) == WAIT_FAILED) { in run_parent()
98 if (!GetExitCodeProcess(pi.hProcess, &rc)) { in run_parent()
110 CloseHandle(pi.hProcess); in run_parent()
111 CloseHandle(pi.hThread); in run_parent()
/llvm-project-15.0.7/libcxx/test/std/numerics/complex.number/complex.transcendentals/
H A Dacosh.pass.cpp37 const double pi = std::atan2(+0., -0.); in test_edges() local
46 is_about(r.imag(), -pi/2); in test_edges()
48 is_about(r.imag(), pi/2); in test_edges()
62 is_about(r.imag(), -pi); in test_edges()
64 is_about(r.imag(), pi); in test_edges()
71 is_about(r.imag(), -pi/2); in test_edges()
73 is_about(r.imag(), pi/2); in test_edges()
85 is_about(r.imag(), -pi); in test_edges()
87 is_about(r.imag(), pi); in test_edges()
101 is_about(r.imag(), -0.75 * pi); in test_edges()
[all …]
H A Dlog.pass.cpp37 const double pi = std::atan2(+0., -0.); in test_edges() local
49 is_about(r.imag(), -pi); in test_edges()
51 is_about(r.imag(), pi); in test_edges()
66 is_about(r.imag(), pi/2); in test_edges()
68 is_about(r.imag(), -pi/2); in test_edges()
79 is_about(r.imag(), pi); in test_edges()
81 is_about(r.imag(), -pi); in test_edges()
97 is_about(r.imag(), pi/2); in test_edges()
103 is_about(r.imag(), -pi); in test_edges()
105 is_about(r.imag(), pi); in test_edges()
[all …]
/llvm-project-15.0.7/libclc/generic/lib/math/
H A Dacospi.cl32 // arguments arccos(x) = pi/2 to machine accuracy.
35 // arccos(x) = pi/2 - arcsin(x)
36 // = pi/2 - (x + x^3*R(x^2))
40 // arccos(x) = pi - 2*arcsin(sqrt(1-x)/2)
46 const float pi = 3.1415926535897933e+00f;
100 // arguments arccos(x) = pi/2 to machine accuracy.
103 // arccos(x) = pi/2 - arcsin(x)
104 // = pi/2 - (x + x^3*R(x^2))
108 // arccos(x) = pi - 2*arcsin(sqrt(1-x)/2)
112 const double pi = 0x1.921fb54442d18p+1;
[all …]
/llvm-project-15.0.7/llvm/test/Analysis/ScalarEvolution/
H A Dscev-aa.ll13 ; CHECK: NoAlias: double* %pi, double* %pi.next
25 %x = load double, double* %pi
28 store double %z, double* %pi
39 ; CHECK: NoAlias: double* %pi.j, double* %pi.next.j
40 ; CHECK: NoAlias: double* %pi.j, double* %pi.j.next
41 ; CHECK: NoAlias: double* %pi.j.next, double* %pi.next.j
64 %x = load double, double* %pi.j
67 store double %z, double* %pi.j
97 ; CHECK: NoAlias: double* %pi.j, double* %pi.next.j
98 ; CHECK: MayAlias: double* %pi.j, double* %pi.j.next
[all …]
/llvm-project-15.0.7/flang/test/Lower/
H A Dformat-statement.f905 real :: pi local
29 pi = 3.141592653589
30 write(*, label) " PI=", pi
35 if (flag2) write(*, label) "2PI=", 2*pi
46 write(*, label) "3PI=", 3*pi
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dstr-int-3.ll21 define void @fold_atoi_member(i32* %pi) {
35 %pia0a = getelementptr i32, i32* %pi, i32 0
41 %pia0b = getelementptr i32, i32* %pi, i32 1
47 %pia1a = getelementptr i32, i32* %pi, i32 2
53 %pia1b = getelementptr i32, i32* %pi, i32 3
91 define void @fold_atol_member(i64* %pi) {
109 %pia0a = getelementptr i64, i64* %pi, i32 0
115 %pia0b = getelementptr i64, i64* %pi, i32 1
121 %pia0c = getelementptr i64, i64* %pi, i32 2
127 %pia1a = getelementptr i64, i64* %pi, i32 3
[all …]

123456789