blob: 26df79ff841a57b16a5b7afc362e0864679288df [file] [log] [blame]
Elliott Hughesa0664b92017-04-18 17:46:52 -07001//file: _insn_test_v2packuc_X0.c
2//op=307
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] = { 0xe14980afe3a8dcf2, 0x14a9d2cae102f39d };
17
18int main(void) {
19 unsigned long a[4] = { 0, 0 };
20 asm __volatile__ (
21 "moveli r48, -14873\n"
22 "shl16insli r48, r48, 20437\n"
23 "shl16insli r48, r48, 1647\n"
24 "shl16insli r48, r48, -19288\n"
25 "moveli r2, 30869\n"
26 "shl16insli r2, r2, -5643\n"
27 "shl16insli r2, r2, 25290\n"
28 "shl16insli r2, r2, -10746\n"
29 "moveli r10, -14292\n"
30 "shl16insli r10, r10, -10131\n"
31 "shl16insli r10, r10, -22412\n"
32 "shl16insli r10, r10, -22005\n"
33 "{ v2packuc r48, r2, r10 ; fnop }\n"
34 "move %0, r48\n"
35 "move %1, r2\n"
36 "move %2, r10\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}