Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / uint128_t.c
blob4a11eca9d5e4208acd3884f82c13f9d1e47b8e96
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
4 typedef unsigned long long uint64_t;
5 extern uint64_t numer;
6 extern uint64_t denom;
8 uint64_t
9 f(uint64_t val)
11 __uint128_t tmp;
13 tmp = val;
14 tmp *= numer;
15 tmp /= denom;
17 return tmp;