Chris Lattner | 4d150c8 | 2009-04-30 06:18:40 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc %s -emit-llvm -o - -triple=x86_64-apple-darwin9 |
Chris Lattner | 2df9ced | 2009-04-30 02:43:43 +0000 | [diff] [blame] | 2 | |
3 | typedef unsigned long long uint64_t; | ||||
4 | extern uint64_t numer; | ||||
5 | extern uint64_t denom; | ||||
6 | |||||
7 | uint64_t | ||||
8 | f(uint64_t val) | ||||
9 | { | ||||
10 | __uint128_t tmp; | ||||
11 | |||||
12 | tmp = val; | ||||
13 | tmp *= numer; | ||||
14 | tmp /= denom; | ||||
15 | |||||
16 | return tmp; | ||||
17 | } | ||||
18 |