PPC::B and PPC::BCC's target operand may be an immediate.
[llvm/msp430.git] / test / FrontendC / 2009-02-17-BitField-dbg.c
blob456b0a64a7918461a315405cc6d50b779bd42d8a
1 // Check bitfields.
2 // RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | \
3 // RUN: llc --disable-fp-elim -o 2009-02-17-BitField-dbg.s -f
4 // RUN: %compile_c 2009-02-17-BitField-dbg.s -o 2009-02-17-BitField-dbg.o
5 // RUN: echo {ptype mystruct} > %t2
6 // RUN: gdb -q -batch -n -x %t2 2009-02-17-BitField-dbg.o | \
7 // RUN: tee 2009-02-17-BitField-dbg.out | grep "int a : 4"
9 struct {
10 int a:4;
11 int b:2;
12 } mystruct;