Commit a02223dd authored by Michael Beck's avatar Michael Beck
Browse files

added eor test

[r15802]
parent c81c7260
......@@ -115,6 +115,10 @@ int demorgan2(int a, int b) {
return (~a) | (~b);
}
int eor1(int a, int b) {
return a & (a ^ b);
}
int main(void)
{
#define TU(func,x,expect) \
......@@ -150,4 +154,5 @@ int main(void)
TU(shrs1, -3, -1);
TB(demorgan1, 42, 17, ~(42|17));
TB(demorgan2, 42, 17, ~(42&17));
TB(eor1, 42, 17, 42&~17);
}
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