File tree 2 files changed +9
-2
lines changed 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -672,6 +672,7 @@ class LLVM_LIBRARY_VISIBILITY MCUX86_32TargetInfo : public X86_32TargetInfo {
672
672
MCUX86_32TargetInfo (const llvm::Triple &Triple, const TargetOptions &Opts)
673
673
: X86_32TargetInfo(Triple, Opts) {
674
674
LongDoubleWidth = 64 ;
675
+ DefaultAlignForAttributeAligned = 32 ;
675
676
LongDoubleFormat = &llvm::APFloat::IEEEdouble ();
676
677
resetDataLayout (" e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:32-"
677
678
" f64:32-f128:32-n8:16:32-a:0:32-S32" );
Original file line number Diff line number Diff line change 1
1
// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fsyntax-only -verify %s
2
+ // RUN: %clang_cc1 -triple i586-intel-elfiamcu -fsyntax-only -verify %s
2
3
3
4
int x __attribute__((aligned (3 ))); // expected-error {{requested alignment is not a power of 2}}
4
5
int y __attribute__((aligned (1ull << 33 ))); // expected-error {{requested alignment must be 4294967296 bytes or smaller}}
5
6
int y __attribute__((aligned (1ull << 32 )));
6
- // GH50534
7
- int z __attribute__((aligned ((__int128_t )0x1234567890abcde0ULL << 64 ))); // expected-error {{requested alignment must be 4294967296 bytes or smaller}}
8
7
9
8
// PR26444
10
9
int y __attribute__((aligned (1 << 29 )));
11
10
int y __attribute__((aligned (1 << 28 )));
12
11
13
12
// PR3254
14
13
short g0 [3 ] __attribute__((aligned ));
14
+ #ifdef __iamcu
15
+ short g0_chk [__alignof__(g0 ) == 4 ? 1 : -1 ];
16
+ #else
15
17
short g0_chk [__alignof__(g0 ) == 16 ? 1 : -1 ];
16
18
19
+ // GH50534
20
+ int z __attribute__((aligned ((__int128_t )0x1234567890abcde0ULL << 64 ))); // expected-error {{requested alignment must be 4294967296 bytes or smaller}}
21
+ #endif
22
+
17
23
typedef char ueber_aligned_char __attribute__((aligned (8 )));
18
24
19
25
struct struct_with_ueber_char {
You can’t perform that action at this time.
0 commit comments