-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcptests.c
53 lines (44 loc) · 1.4 KB
/
cptests.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "compiler.h"
#define ALIGN 32
struct asdf {
char s[128];
};
struct asdf __aligned(ALIGN) src = {
.s = {
0x29, 0x99, 0x5f, 0x2f, 0x15, 0xcc, 0xd3, 0x3e,
0xa2, 0x39, 0xb6, 0x24, 0x98, 0x7b, 0x88, 0x7e,
0x96, 0x7b, 0xd6, 0xcb, 0xcf, 0x81, 0x23, 0x94,
0x68, 0x6e, 0xf9, 0xda, 0x6a, 0xc5, 0x85, 0xce,
0xf3, 0x2b, 0x3e, 0x27, 0x8f, 0x9e, 0x38, 0x60,
0x1d, 0xde, 0x02, 0x1e, 0x70, 0x61, 0x5a, 0x0c,
0xdd, 0xce, 0x3f, 0x97, 0xe9, 0x68, 0xe9, 0xef,
0xf0, 0xca, 0x28, 0x32, 0x43, 0x4c, 0xd1, 0x11,
0xb5, 0x0b, 0x4c, 0x9b, 0xe0, 0xa5, 0x49, 0x09,
0x84, 0x15, 0x61, 0xd3, 0x96, 0xc4, 0xaf, 0x3e,
0x78, 0xa2, 0x8d, 0xe3, 0x49, 0xbd, 0x3a, 0xdd,
0x13, 0x5f, 0xf5, 0xbe, 0x56, 0xd3, 0x84, 0xa2,
0xdb, 0xf6, 0xab, 0xbf, 0x11, 0x77, 0x8a, 0xd5,
0xe0, 0x25, 0x3b, 0x6a, 0x03, 0xa0, 0xa6, 0x85,
0x87, 0x8a, 0x3e, 0xae, 0xdd, 0x25, 0x43, 0x6b,
0x20, 0x9e, 0xa1, 0x89, 0x44, 0xa5, 0x37, 0x5b,
},
};
struct asdf __aligned(ALIGN) dest;
//__noinline
static __always_inline
void move_data(struct asdf *dest, struct asdf *src) {
struct asdf __aligned(ALIGN) *_dest = dest;
struct asdf __aligned(ALIGN) *_src = src;
*_dest = *_src;
}
int main(int argc, char **argv) {
//dest = src;
move_data(&dest, &src);
// struct asdf __aligned(ALIGN) *_dest = dest;
// struct asdf __aligned(ALIGN) *_src = src;
// *_dest = *_src;
return src.s[8];
}