1*0a6a1f1dSLionel Sambuc // REQUIRES: powerpc-registered-target
2f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s
3f4a2713aSLionel Sambuc 
f1(int x)4f4a2713aSLionel Sambuc void f1(int x) { return; }
5f4a2713aSLionel Sambuc // CHECK: define void @f1(i32 signext %x) [[NUW:#[0-9]+]]
6f4a2713aSLionel Sambuc 
f2(unsigned int x)7f4a2713aSLionel Sambuc void f2(unsigned int x) { return; }
8f4a2713aSLionel Sambuc // CHECK: define void @f2(i32 zeroext %x) [[NUW]]
9f4a2713aSLionel Sambuc 
f3(void)10f4a2713aSLionel Sambuc int f3(void) { return 0; }
11f4a2713aSLionel Sambuc // CHECK: define signext i32 @f3() [[NUW]]
12f4a2713aSLionel Sambuc 
f4(void)13f4a2713aSLionel Sambuc unsigned int f4(void) { return 0; }
14f4a2713aSLionel Sambuc // CHECK: define zeroext i32 @f4() [[NUW]]
15f4a2713aSLionel Sambuc 
16f4a2713aSLionel Sambuc // CHECK: attributes [[NUW]] = { nounwind{{.*}} }
17