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((__int128 *)addr); in test_ldrex()
14 sum += __builtin_arm_ldrex((float *)addr); in test_ldrex()
15 sum += __builtin_arm_ldrex((double *)addr); in test_ldrex()
16 sum += *__builtin_arm_ldrex((int **)addr); in test_ldrex()
17 sum += __builtin_arm_ldrex((struct Simple **)addr)->a; in test_ldrex()
18 sum += __builtin_arm_ldrex((volatile char *)addr); in test_ldrex()
19 sum += __builtin_arm_ldrex((const volatile char *)addr); in test_ldrex()
23 …sum += __builtin_arm_ldrex((struct Simple *)addr).a; // expected-error {{address argument to atomi… in test_ldrex()
30 int test_strex(char *addr) { in test_strex() argument
33 res |= __builtin_arm_strex(4, addr); in test_strex()
34 res |= __builtin_arm_strex(42, (short *)addr); in test_strex()
35 res |= __builtin_arm_strex(42, (int *)addr); in test_strex()
36 res |= __builtin_arm_strex(42, (long long *)addr); in test_strex()
37 res |= __builtin_arm_strex(42, (__int128 *)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()
56 int test_ldaex(char *addr) { in test_ldaex() argument
58 sum += __builtin_arm_ldaex(addr); in test_ldaex()
59 sum += __builtin_arm_ldaex((short *)addr); in test_ldaex()
60 sum += __builtin_arm_ldaex((int *)addr); in test_ldaex()
61 sum += __builtin_arm_ldaex((long long *)addr); in test_ldaex()
62 sum += __builtin_arm_ldaex((__int128 *)addr); in test_ldaex()
63 sum += __builtin_arm_ldaex((float *)addr); in test_ldaex()
64 sum += __builtin_arm_ldaex((double *)addr); in test_ldaex()
65 sum += *__builtin_arm_ldaex((int **)addr); in test_ldaex()
66 sum += __builtin_arm_ldaex((struct Simple **)addr)->a; in test_ldaex()
67 sum += __builtin_arm_ldaex((volatile char *)addr); in test_ldaex()
68 sum += __builtin_arm_ldaex((const volatile char *)addr); in test_ldaex()
72 …sum += __builtin_arm_ldaex((struct Simple *)addr).a; // expected-error {{address argument to atomi… in test_ldaex()
79 int test_stlex(char *addr) { in test_stlex() argument
82 res |= __builtin_arm_stlex(4, addr); in test_stlex()
83 res |= __builtin_arm_stlex(42, (short *)addr); in test_stlex()
84 res |= __builtin_arm_stlex(42, (int *)addr); in test_stlex()
85 res |= __builtin_arm_stlex(42, (long long *)addr); in test_stlex()
86 res |= __builtin_arm_stlex(42, (__int128 *)addr); in test_stlex()
87 res |= __builtin_arm_stlex(2.71828f, (float *)addr); in test_stlex()
88 res |= __builtin_arm_stlex(3.14159, (double *)addr); in test_stlex()
89 res |= __builtin_arm_stlex(&var, (struct Simple **)addr); in test_stlex()
91 res |= __builtin_arm_stlex(42, (volatile char *)addr); in test_stlex()
92 res |= __builtin_arm_stlex(42, (char *const)addr); in test_stlex()
93 …res |= __builtin_arm_stlex(42, (const char *)addr); // expected-warning {{passing 'const char *' t… in test_stlex()
96 …res |= __builtin_arm_stlex(var, (struct Simple *)addr); // expected-error {{address argument to at… in test_stlex()
97 …res |= __builtin_arm_stlex(var, (struct Simple **)addr); // expected-error {{passing 'struct Simpl… in test_stlex()
98 …res |= __builtin_arm_stlex(&var, (struct Simple **)addr).a; // expected-error {{is not a structure… in test_stlex()