PPC::B and PPC::BCC's target operand may be an immediate.
[llvm/msp430.git] / test / FrontendC / 2002-09-18-UnionProblem.c
blob56ec6cec8ed09d863bda409a31fc320e6e841843
1 // RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
4 struct DWstruct {
5 char high, low;
6 };
8 typedef union {
9 struct DWstruct s;
10 short ll;
11 } DWunion;
13 short __udivmodhi4 (char n1, char bm) {
14 DWunion rr;
16 if (bm == 0)
18 rr.s.high = n1;
20 else
22 rr.s.high = bm;
25 return rr.ll;