diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/pr26833.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr26833.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr26833.c b/gcc/testsuite/gcc.c-torture/compile/pr26833.c new file mode 100644 index 000000000..76c201c6e --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr26833.c @@ -0,0 +1,19 @@ +void yasm_lc3b__parse_insn( int num_info, int *num_operands + , int *operands, int op) +{ + int found = 0; + int i; + for (; num_info>0 && !found; num_info--) + { + int mismatch = 0; + for(i = 0;op && (i<*num_operands)&& !mismatch; i++) + { + if (!(int)(operands[i] & 0x1)) + mismatch = 1; + if (mismatch) + break; + } + if (!mismatch) + found = 1; + } +} |