Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/moveor_imm.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 /* { dg-final { check-function-bodies "**" "" } } */
4
5 /*
6 ** f1:
7 ** ...
8 ** mov x0, -6148914691236517206
9 ** eor x0, x0, -9223372036854775807
10 ** ...
11 */
12
13 long f1 (void)
14 {
15 return 0x2aaaaaaaaaaaaaab;
16 }
17
18 /*
19 ** f2:
20 ** ...
21 ** mov x0, -1085102592571150096
22 ** eor x0, x0, -2305843009213693951
23 ** ...
24 */
25
26 long f2 (void)
27 {
28 return 0x10f0f0f0f0f0f0f1;
29 }
30
31 /*
32 ** f3:
33 ** ...
34 ** mov x0, -3689348814741910324
35 ** eor x0, x0, -4611686018427387903
36 ** ...
37 */
38
39 long f3 (void)
40 {
41 return 0xccccccccccccccd;
42 }
43
44 /*
45 ** f4:
46 ** ...
47 ** mov x0, -7378697629483820647
48 ** eor x0, x0, -9223372036854775807
49 ** ...
50 */
51
52 long f4 (void)
53 {
54 return 0x1999999999999998;
55 }
56
57 /*
58 ** f5:
59 ** ...
60 ** mov x0, 3689348814741910323
61 ** eor x0, x0, 864691128656461824
62 ** ...
63 */
64
65 long f5 (void)
66 {
67 return 0x3f3333333f333333;
68 }