annotate gcc/testsuite/gcc.dg/tree-ssa/vrp72.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 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
kono
parents:
diff changeset
16 static inline void cvmx_write_csr(uint64_t csr_addr, uint64_t val)
kono
parents:
diff changeset
17 {
kono
parents:
diff changeset
18 cvmx_write64_uint64 (csr_addr, val);
kono
parents:
diff changeset
19 if ((csr_addr >> 40) != 0x800118)
kono
parents:
diff changeset
20 linker_error ();
kono
parents:
diff changeset
21 }
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 int uart;
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 | (0x0001180000000808ull+((uart&0xff)*1024))),
kono
parents:
diff changeset
30 0xfff);
kono
parents:
diff changeset
31 return 0;
kono
parents:
diff changeset
32 }