2021-07-29 04:34:17 +08:00
|
|
|
// REQUIRES: powerpc-registered-target
|
2021-09-29 19:14:12 +08:00
|
|
|
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -target-cpu pwr9 \
|
2021-07-29 04:34:17 +08:00
|
|
|
// RUN: -verify %s
|
|
|
|
|
|
|
|
extern unsigned long long ull;
|
|
|
|
extern long long ll;
|
|
|
|
|
|
|
|
void test_builtin_ppc_addex() {
|
|
|
|
long long res = __builtin_ppc_addex(ll, ll, 1); // expected-warning {{argument value 1 will result in undefined behaviour}}
|
|
|
|
unsigned long long res2 = __builtin_ppc_addex(ull, ull, 3); // expected-warning {{argument value 3 will result in undefined behaviour}}
|
|
|
|
}
|