blob: b3bf7279623f81524e22d57126b2b371ab3442ea [file] [log] [blame]
Chris Lattner4d150c82009-04-30 06:18:40 +00001// RUN: clang-cc %s -emit-llvm -o - -triple=x86_64-apple-darwin9
Chris Lattner2df9ced2009-04-30 02:43:43 +00002
3typedef unsigned long long uint64_t;
4extern uint64_t numer;
5extern uint64_t denom;
6
7uint64_t
8f(uint64_t val)
9{
10 __uint128_t tmp;
11
12 tmp = val;
13 tmp *= numer;
14 tmp /= denom;
15
16 return tmp;
17}
18