2 * Copyright (C) 2015 Anshuman Khandual, IBM Corporation.
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
19 #define FPR_1_REP 0x3f50624de0000000
20 #define FPR_2_REP 0x3f60624de0000000
21 #define FPR_3_REP 0x3f689374c0000000
22 #define FPR_4_REP 0x3f70624de0000000
24 /* Buffer must have 18 elements */
25 int validate_gpr(unsigned long *gpr
, unsigned long val
)
29 for (i
= 0; i
< 18; i
++) {
31 printf("GPR[%d]: %lx Expected: %lx\n",
42 /* Buffer must have 32 elements */
43 int validate_fpr(unsigned long *fpr
, unsigned long val
)
47 for (i
= 0; i
< 32; i
++) {
49 printf("FPR[%d]: %lx Expected: %lx\n", i
, fpr
[i
], val
);
59 /* Buffer must have 32 elements */
60 int validate_fpr_float(float *fpr
, float val
)
64 for (i
= 0; i
< 32; i
++) {
66 printf("FPR[%d]: %f Expected: %f\n", i
, fpr
[i
], val
);