Commit a2c2cb1a authored by Andreas Zwinkau's avatar Andreas Zwinkau
Browse files

Adding some test cases used for building the PBQP code selection

[r20729]
parent b8a5aa74
int a = 42;
int array[32];
int b = 990100;
int main(void)
{
int c = a+b;
array[0] = c + 1;
array[1] = c + 2;
array[2] = c + 3;
array[3] = c + 4;
array[4] = c + 5;
array[5] = c + 6;
array[6] = c + 7;
array[7] = c + 8;
array[8] = c + 9;
array[9] = c + 10;
array[10] = c + 11;
array[11] = c + 12;
array[12] = c + 13;
array[13] = c + 14;
array[14] = c + 15;
array[15] = c + 16;
array[16] = c + 17;
array[17] = c + 18;
array[18] = c + 19;
array[29] = c + 20;
array[20] = c + 21;
array[21] = c + 22;
array[22] = c + 23;
array[23] = c + 24;
array[24] = c + 25;
array[25] = c + 26;
array[26] = c + 27;
array[27] = c + 28;
array[28] = c + 29;
array[29] = c + 30;
array[30] = c + 31;
array[31] = c + 32;
return array[10];
}
int a, b, c, d, e;
int main(void) {
c = a & b;
d = c | a;
e = b ^ d;
return 0;
}
int test(float x, double y) {
return x + y;
}
int main() {
printf("%d (expected 15)\n", test(7.753f, 8.222));
return 0;
}
int main(void) {
float fy=3;
int c = 7 * fy;
printf("21 == %d \n", c);
return 0;
}
int a,b,c,d;
int main(void) {
b = -a;
c = !a;
d = ~a;
return 0;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment