Lines Matching refs:addr
7 int test_ldrex(char *addr) { in test_ldrex() argument
9 sum += __builtin_arm_ldrex(addr); in test_ldrex()
10 sum += __builtin_arm_ldrex((short *)addr); in test_ldrex()
11 sum += __builtin_arm_ldrex((int *)addr); in test_ldrex()
12 sum += __builtin_arm_ldrex((long long *)addr); in test_ldrex()
13 sum += __builtin_arm_ldrex((float *)addr); in test_ldrex()
14 sum += __builtin_arm_ldrex((double *)addr); in test_ldrex()
15 sum += *__builtin_arm_ldrex((int **)addr); in test_ldrex()
16 sum += __builtin_arm_ldrex((struct Simple **)addr)->a; in test_ldrex()
17 sum += __builtin_arm_ldrex((volatile char *)addr); in test_ldrex()
18 sum += __builtin_arm_ldrex((const volatile char *)addr); in test_ldrex()
22 …sum += __builtin_arm_ldrex((struct Simple *)addr).a; // expected-error {{address argument to atomi… in test_ldrex()
24 …sum += __builtin_arm_ldrex((__int128 *)addr); // expected-error {{__int128 is not supported on thi… in test_ldrex()
31 int test_strex(char *addr) { in test_strex() argument
34 res |= __builtin_arm_strex(4, addr); in test_strex()
35 res |= __builtin_arm_strex(42, (short *)addr); in test_strex()
36 res |= __builtin_arm_strex(42, (int *)addr); in test_strex()
37 res |= __builtin_arm_strex(42, (long long *)addr); in test_strex()
38 res |= __builtin_arm_strex(2.71828f, (float *)addr); in test_strex()
39 res |= __builtin_arm_strex(3.14159, (double *)addr); in test_strex()
40 res |= __builtin_arm_strex(&var, (struct Simple **)addr); in test_strex()
42 res |= __builtin_arm_strex(42, (volatile char *)addr); in test_strex()
43 res |= __builtin_arm_strex(42, (char *const)addr); in test_strex()
44 …res |= __builtin_arm_strex(42, (const char *)addr); // expected-warning {{passing 'const char *' t… in test_strex()
47 …res |= __builtin_arm_strex(var, (struct Simple *)addr); // expected-error {{address argument to at… in test_strex()
48 …res |= __builtin_arm_strex(var, (struct Simple **)addr); // expected-error {{passing 'struct Simpl… in test_strex()
49 …res |= __builtin_arm_strex(&var, (struct Simple **)addr).a; // expected-error {{is not a structure… in test_strex()
51 …res |= __builtin_arm_strex(1, (__int128 *)addr); // expected-error {{__int128 is not supported on … in test_strex()
58 int test_ldaex(char *addr) { in test_ldaex() argument
60 sum += __builtin_arm_ldaex(addr); in test_ldaex()
61 sum += __builtin_arm_ldaex((short *)addr); in test_ldaex()
62 sum += __builtin_arm_ldaex((int *)addr); in test_ldaex()
63 sum += __builtin_arm_ldaex((long long *)addr); in test_ldaex()
64 sum += __builtin_arm_ldaex((float *)addr); in test_ldaex()
65 sum += __builtin_arm_ldaex((double *)addr); in test_ldaex()
66 sum += *__builtin_arm_ldaex((int **)addr); in test_ldaex()
67 sum += __builtin_arm_ldaex((struct Simple **)addr)->a; in test_ldaex()
68 sum += __builtin_arm_ldaex((volatile char *)addr); in test_ldaex()
69 sum += __builtin_arm_ldaex((const volatile char *)addr); in test_ldaex()
73 …sum += __builtin_arm_ldaex((struct Simple *)addr).a; // expected-error {{address argument to atomi… in test_ldaex()
75 …sum += __builtin_arm_ldaex((__int128 *)addr); // expected-error {{__int128 is not supported on thi… in test_ldaex()
82 int test_stlex(char *addr) { in test_stlex() argument
85 res |= __builtin_arm_stlex(4, addr); in test_stlex()
86 res |= __builtin_arm_stlex(42, (short *)addr); in test_stlex()
87 res |= __builtin_arm_stlex(42, (int *)addr); in test_stlex()
88 res |= __builtin_arm_stlex(42, (long long *)addr); in test_stlex()
89 res |= __builtin_arm_stlex(2.71828f, (float *)addr); in test_stlex()
90 res |= __builtin_arm_stlex(3.14159, (double *)addr); in test_stlex()
91 res |= __builtin_arm_stlex(&var, (struct Simple **)addr); in test_stlex()
93 res |= __builtin_arm_stlex(42, (volatile char *)addr); in test_stlex()
94 res |= __builtin_arm_stlex(42, (char *const)addr); in test_stlex()
95 …res |= __builtin_arm_stlex(42, (const char *)addr); // expected-warning {{passing 'const char *' t… in test_stlex()
98 …res |= __builtin_arm_stlex(var, (struct Simple *)addr); // expected-error {{address argument to at… in test_stlex()
99 …res |= __builtin_arm_stlex(var, (struct Simple **)addr); // expected-error {{passing 'struct Simpl… in test_stlex()
100 …res |= __builtin_arm_stlex(&var, (struct Simple **)addr).a; // expected-error {{is not a structure… in test_stlex()
102 …res |= __builtin_arm_stlex(1, (__int128 *)addr); // expected-error {{__int128 is not supported on … in test_stlex()