brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 20c03cd Raw
35 lines · c
1// REQUIRES: powerpc-registered-target2// RUN: %clang_cc1 -triple powerpc-unknown-aix \3// RUN:   -emit-llvm -o - %s | FileCheck %s --check-prefixes=AIX,AIX324// RUN: %clang_cc1 -triple powerpc64-unknown-aix \5// RUN:   -emit-llvm -o - %s | FileCheck %s --check-prefixes=AIX,AIX646 7// AIX-LABEL: define void @retVoid()8void retVoid(void) {}9 10// AIX-LABEL: define signext i8 @retChar(i8 noundef signext %x)11char retChar(char x) { return x; }12 13// AIX-LABEL: define signext i16 @retShort(i16 noundef signext %x)14short retShort(short x) { return x; }15 16// AIX32-LABEL: define i32 @retInt(i32 noundef %x)17// AIX64-LABEL: define signext i32 @retInt(i32 noundef signext %x)18int retInt(int x) { return 1; }19 20// AIX-LABEL: define i64 @retLongLong(i64 noundef %x)21long long retLongLong(long long x) { return x; }22 23// AIX-LABEL: define signext i8 @retEnumChar(i8 noundef signext %x)24enum EnumChar : char { IsChar };25enum EnumChar retEnumChar(enum EnumChar x) {26  return x;27}28 29// AIX32-LABEL: define i32 @retEnumInt(i32 noundef %x)30// AIX64-LABEL: define signext i32 @retEnumInt(i32 noundef signext %x)31enum EnumInt : int { IsInt };32enum EnumInt retEnumInt(enum EnumInt x) {33  return x;34}35