PPC::B and PPC::BCC's target operand may be an immediate.
[llvm/msp430.git] / test / FrontendC / 2007-02-04-WITH_SIZE_EXPR.c
blobf02a44b157336a9e3e27ef784e5b8052cf0381b6
1 // RUN: %llvmgcc %s -O3 -S -o - -emit-llvm
2 // PR1174
4 void zzz (char *s1, char *s2, int len, int *q)
6 int z = 5;
7 unsigned int i, b;
8 struct { char a[z]; } x;
10 for (i = 0; i < len; i++)
11 s1[i] = s2[i];
13 b = z & 0x3;
15 len += (b == 0 ? 0 : 1) + z;
17 *q = len;
19 foo (x, x);