blob: 16f74c81645d309d2f8344bcfdc346a7df157455 [file] [log] [blame]
Elliott Hughesa0664b92017-04-18 17:46:52 -07001//file: _insn_test_cmpeq_Y1.c
2//op=53
3#include <stdio.h>
4#include <stdlib.h>
5
6void func_exit(void) {
7 printf("%s\n", __func__);
8 exit(0);
9}
10
11void func_call(void) {
12 printf("%s\n", __func__);
13 exit(0);
14}
15
16unsigned long mem[2] = { 0x5fced320ec74ecd8, 0x28e0d2889b96db6d };
17
18int main(void) {
19 unsigned long a[4] = { 0, 0 };
20 asm __volatile__ (
21 "moveli r0, -26485\n"
22 "shl16insli r0, r0, 5854\n"
23 "shl16insli r0, r0, 20645\n"
24 "shl16insli r0, r0, 14858\n"
25 "moveli r9, 12048\n"
26 "shl16insli r9, r9, -17261\n"
27 "shl16insli r9, r9, -23773\n"
28 "shl16insli r9, r9, -13811\n"
29 "moveli r7, -30106\n"
30 "shl16insli r7, r7, 24510\n"
31 "shl16insli r7, r7, -6618\n"
32 "shl16insli r7, r7, 11033\n"
33 "{ fnop ; cmpeq r0, r9, r7 ; ld r63, r54 }\n"
34 "move %0, r0\n"
35 "move %1, r9\n"
36 "move %2, r7\n"
37 :"=r"(a[0]),"=r"(a[1]),"=r"(a[2]));
38 printf("%016lx\n", a[0]);
39 printf("%016lx\n", a[1]);
40 printf("%016lx\n", a[2]);
41 return 0;
42}