1 // RUN: %clang_cc1 %s -emit-llvm -o - -triple=x86_64-apple-darwin9
2 // RUN: %clang_cc1 %s -emit-llvm -o - -triple=powerpc64-ibm-aix-xcoff
3 
4 typedef unsigned long long uint64_t;
5 extern uint64_t numer;
6 extern uint64_t denom;
7 
8 uint64_t
9 f(uint64_t val)
10 {
11     __uint128_t tmp;
12 
13     tmp = val;
14     tmp *= numer;
15     tmp /= denom;
16 
17     return tmp;
18 }
19 
20