summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/x86_32-arguments.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-05-08 21:30:11 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-05-08 21:30:11 +0000
commit4752783057b179fe9b9823875d7347ae68823418 (patch)
tree6188d28ec785878a7fbc2a213c2f795585e5f6fc /clang/test/CodeGen/x86_32-arguments.c
parent8881780832d09683135905a692f349bd84a5023b (diff)
downloadbcm5719-llvm-4752783057b179fe9b9823875d7347ae68823418.tar.gz
bcm5719-llvm-4752783057b179fe9b9823875d7347ae68823418.zip
Darwin x86_32: When coercing a "single element" structure, make sure
to use a wide enough type. This might be wider than the "single element"'s type in the presence of padding bit-fields. - Darwin x86_32 now passes the first 1k ABI tests with bit-field generation enabled. llvm-svn: 71270
Diffstat (limited to 'clang/test/CodeGen/x86_32-arguments.c')
-rw-r--r--clang/test/CodeGen/x86_32-arguments.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/x86_32-arguments.c b/clang/test/CodeGen/x86_32-arguments.c
index c75734e5a12..0690639ab17 100644
--- a/clang/test/CodeGen/x86_32-arguments.c
+++ b/clang/test/CodeGen/x86_32-arguments.c
@@ -133,4 +133,10 @@ struct s30 { char a; char b : 4; } f30(void) {}
// RUN: grep 'define float @f31()' %t &&
struct s31 { char : 0; float b; char : 0} f31(void) {}
+// RUN: grep 'define i32 @f32()' %t &&
+struct s32 { char a; unsigned : 0; } f32(void) {}
+
+// RUN: grep 'define float @f33()' %t &&
+struct s33 { float a; long long : 0; } f33(void) {}
+
// RUN: true
OpenPOWER on IntegriCloud