Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / msp430-align.c
blob22e93a14c54da8654d5fd3ee9cdf2e29ad9b04f7
1 // RUN: %clang_cc1 -triple msp430-elf -emit-llvm %s -o - | FileCheck %s
3 // MSP430 target prefers chars to be aligned to 8 bit and other types to 16 bit.
5 // CHECK: @c ={{.*}}global i8 1, align 1
6 // CHECK: @s ={{.*}}global i16 266, align 2
7 // CHECK: @i ={{.*}}global i16 266, align 2
8 // CHECK: @l ={{.*}}global i32 16909060, align 2
9 // CHECK: @ll ={{.*}}global i64 283686952306183, align 2
10 // CHECK: @f ={{.*}}global float 1.000000e+00, align 2
11 // CHECK: @d ={{.*}}global double 1.000000e+00, align 2
12 // CHECK: @ld ={{.*}}global double 1.000000e+00, align 2
13 // CHECK: @p ={{.*}}global ptr @c, align 2
15 char c = 1;
16 short s = 266;
17 int i = 266;
18 long l = 16909060;
19 long long ll = 283686952306183;
20 float f = 1.0f;
21 double d = 1.0;
22 long double ld = 1.0;
23 char *p = &c;