Ulrich Weigand | 71c0dcc | 2012-11-05 19:13:42 +0000 | [diff] [blame^] | 1 | // REQUIRES: ppc64-registered-target |
| 2 | // RUN: %clang_cc1 -O0 -triple powerpc64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s |
| 3 | |
| 4 | void f1(int x) { return; } |
| 5 | // CHECK: define void @f1(i32 signext %x) nounwind |
| 6 | |
| 7 | void f2(unsigned int x) { return; } |
| 8 | // CHECK: define void @f2(i32 zeroext %x) nounwind |
| 9 | |
| 10 | int f3(void) { return 0; } |
| 11 | // CHECK: define signext i32 @f3() nounwind |
| 12 | |
| 13 | unsigned int f4(void) { return 0; } |
| 14 | // CHECK: define zeroext i32 @f4() nounwind |
| 15 | |