summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2011-01-06 08:27:10 +0000
committerRoman Divacky <rdivacky@freebsd.org>2011-01-06 08:27:10 +0000
commit965b0b72b1365f6ebc55ecb3d54623036187bf6a (patch)
tree12dd37a8cf7b6d43d262efc071529d5ae4a8de8e /clang/test
parent7998b1d6fe08c1b3010f790cc96d75137a404bf7 (diff)
downloadbcm5719-llvm-965b0b72b1365f6ebc55ecb3d54623036187bf6a.tar.gz
bcm5719-llvm-965b0b72b1365f6ebc55ecb3d54623036187bf6a.zip
PowerPC fixes.
Fix the width and align of bool type on Darwin to be 32bits while keeping it 8 everywhere else. Change the definition of va_list to default to SV4 ABI one and let darwin subtarget override this. Both changes submitted by Nathan Whitehorn and reviewed by Rafael Espindola. llvm-svn: 122956
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CodeGen/bool_test_darwin.c5
-rw-r--r--clang/test/CodeGen/va_list_test_svr4.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CodeGen/bool_test_darwin.c b/clang/test/CodeGen/bool_test_darwin.c
new file mode 100644
index 00000000000..f755b584547
--- /dev/null
+++ b/clang/test/CodeGen/bool_test_darwin.c
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 -triple powerpc-apple-darwin -emit-llvm -o - %s| FileCheck %s
+
+int boolsize = sizeof(_Bool);
+//CHECK: boolsize = global i32 4, align 4
+
diff --git a/clang/test/CodeGen/va_list_test_svr4.c b/clang/test/CodeGen/va_list_test_svr4.c
new file mode 100644
index 00000000000..33a12d6e28d
--- /dev/null
+++ b/clang/test/CodeGen/va_list_test_svr4.c
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -triple powerpc-unknown-freebsd -emit-llvm -o - %s| FileCheck %s
+
+#include <stdarg.h>
+
+int va_list_size = sizeof(va_list);
+// CHECK: va_list_size = global i32 12, align 4
OpenPOWER on IntegriCloud