f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
26 lines
314 B
C
26 lines
314 B
C
// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
|
|
|
|
|
|
struct DWstruct {
|
|
char high, low;
|
|
};
|
|
|
|
typedef union {
|
|
struct DWstruct s;
|
|
short ll;
|
|
} DWunion;
|
|
|
|
short __udivmodhi4 (char n1, char bm) {
|
|
DWunion rr;
|
|
|
|
if (bm == 0)
|
|
{
|
|
rr.s.high = n1;
|
|
}
|
|
else
|
|
{
|
|
rr.s.high = bm;
|
|
}
|
|
|
|
return rr.ll;
|
|
}
|