mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-20 03:55:48 -04:00

This patch removes uses of the Darwin ABI for PowerPC related test cases. This is the first step in removing Darwin support from the POWER backend. clang/test/CodeGen/darwin-ppc-varargs.c was deleted because it was a darwin/ppc specific test case. All other tests were updated to remove the darwin/ppc specific invocation. Phabricator Review: https://reviews.llvm.org/D50989. llvm-svn: 340770
19 lines
523 B
C
19 lines
523 B
C
// REQUIRES: powerpc-registered-target
|
|
// RUN: %clang_cc1 -triple powerpc-unknown-linux-gnu -emit-llvm -o - %s -O2 -disable-llvm-passes | FileCheck %s
|
|
|
|
int boolsize = sizeof(_Bool);
|
|
// CHECK: boolsize = global i32 1, align 4
|
|
|
|
void f(_Bool *x, _Bool *y) {
|
|
*x = *y;
|
|
}
|
|
|
|
// CHECK-LABEL: define void @f(
|
|
// CHECK: [[FROMMEM:%.*]] = load i8, i8* %
|
|
// CHECK: [[BOOLVAL:%.*]] = trunc i8 [[FROMMEM]] to i1
|
|
// CHECK: [[TOMEM:%.*]] = zext i1 [[BOOLVAL]] to i8
|
|
// CHECK: store i8 [[TOMEM]]
|
|
// CHECK: ret void
|
|
|
|
// CHECK: i8 0, i8 2}
|