annotate gcc/testsuite/gcc.dg/tree-ssa/vrp75.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-options "-O2" } */
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 __extension__ typedef __INTPTR_TYPE__ intptr_t;
kono
parents:
diff changeset
4 typedef unsigned long long uint64_t;
kono
parents:
diff changeset
5 extern void linker_error (void);
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 static inline void cvmx_write64_uint64(uint64_t addr, uint64_t val)
kono
parents:
diff changeset
8 {
kono
parents:
diff changeset
9 *(volatile uint64_t *)(intptr_t)addr = val;
kono
parents:
diff changeset
10 };
kono
parents:
diff changeset
11 static inline uint64_t cvmx_read64_uint64(uint64_t addr)
kono
parents:
diff changeset
12 {
kono
parents:
diff changeset
13 return *(volatile uint64_t *)(intptr_t)addr;
kono
parents:
diff changeset
14 };
kono
parents:
diff changeset
15 static inline void cvmx_write_csr(uint64_t csr_addr, uint64_t val)
kono
parents:
diff changeset
16 {
kono
parents:
diff changeset
17 cvmx_write64_uint64 (csr_addr, val);
kono
parents:
diff changeset
18 if ((csr_addr >> 40) != 0x800118)
kono
parents:
diff changeset
19 linker_error ();
kono
parents:
diff changeset
20 }
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 int interface;
kono
parents:
diff changeset
23 int idx;
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 int
kono
parents:
diff changeset
26 main ()
kono
parents:
diff changeset
27 {
kono
parents:
diff changeset
28 cvmx_write_csr((((((uint64_t) 2LL) << 62)
kono
parents:
diff changeset
29 | ((0x0001180008000208ull
kono
parents:
diff changeset
30 + (((idx)&3)*2048)
kono
parents:
diff changeset
31 + (((interface)&1)*0x8000000ull))))), 1);
kono
parents:
diff changeset
32 return 0;
kono
parents:
diff changeset
33 }