2012-11-06 03:13:42 +08:00
|
|
|
// REQUIRES: ppc64-registered-target
|
2013-09-04 12:12:25 +08:00
|
|
|
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s
|
2012-11-06 03:13:42 +08:00
|
|
|
|
|
|
|
void f1(int x) { return; }
|
2013-02-27 07:08:48 +08:00
|
|
|
// CHECK: define void @f1(i32 signext %x) [[NUW:#[0-9]+]]
|
2012-11-06 03:13:42 +08:00
|
|
|
|
|
|
|
void f2(unsigned int x) { return; }
|
2013-02-27 07:08:48 +08:00
|
|
|
// CHECK: define void @f2(i32 zeroext %x) [[NUW]]
|
2012-11-06 03:13:42 +08:00
|
|
|
|
|
|
|
int f3(void) { return 0; }
|
2013-02-27 07:08:48 +08:00
|
|
|
// CHECK: define signext i32 @f3() [[NUW]]
|
2012-11-06 03:13:42 +08:00
|
|
|
|
|
|
|
unsigned int f4(void) { return 0; }
|
2013-02-27 07:08:48 +08:00
|
|
|
// CHECK: define zeroext i32 @f4() [[NUW]]
|
2012-11-06 03:13:42 +08:00
|
|
|
|
2013-02-27 07:08:48 +08:00
|
|
|
// CHECK: attributes [[NUW]] = { nounwind{{.*}} }
|