// RUN: %clang_cc1 -ffreestanding -emit-llvm-only -triple x86_64-windows-coff -fdump-record-layouts %s | FileCheck %s --check-prefix=CHECK-MS
// RUN: %clang_cc1 -ffreestanding -emit-llvm-only -triple x86_64-apple-darwin -fdump-record-layouts %s | FileCheck %s --check-prefix=CHECK-NOTMS
;
typedef struct s_m64 m64;
static int a1;
static int a1;
;
typedef struct s_m128 m128;
static int a1;
static int a1;
;
typedef struct s_m128i m128i;
static int a1;
static int a1;
;
typedef struct s_m128d m128d;
static int a1;
static int a1;
;
typedef struct s_m256 m256;
static int a1;
static int a1;
;
typedef struct s_m256i m256i;
static int a1;
static int a1;
;
typedef struct s_m256d m256d;
static int a1;
static int a1;
;
typedef struct s_m512 m512;
static int a1;
static int a1;
;
typedef struct s_m512i m512i;
static int a1;
static int a1;
;
typedef struct s_m512d m512d;
static int a1;
static int a1;
// CHECK-MS: *** Dumping AST Record Layout
// CHECK-MS: 0 | struct s_m64
// CHECK-MS: 0 | int a
// CHECK-MS: 8 | __m64 b
// CHECK-MS: | [sizeof=16, align=8]
// CHECK-MS: *** Dumping AST Record Layout
// CHECK-MS: 0 | struct s_m128
// CHECK-MS: 0 | int a
// CHECK-MS: 16 | __m128 b
// CHECK-MS: | [sizeof=32, align=16]
// CHECK-MS: *** Dumping AST Record Layout
// CHECK-MS: 0 | struct s_m128i
// CHECK-MS: 0 | int a
// CHECK-MS: 16 | __m128i b
// CHECK-MS: | [sizeof=32, align=16]
// CHECK-MS: *** Dumping AST Record Layout
// CHECK-MS: 0 | struct s_m128d
// CHECK-MS: 0 | int a
// CHECK-MS: 16 | __m128d b
// CHECK-MS: | [sizeof=32, align=16]
// CHECK-MS: *** Dumping AST Record Layout
// CHECK-MS: 0 | struct s_m256
// CHECK-MS: 0 | int a
// CHECK-MS: 32 | __m256 b
// CHECK-MS: | [sizeof=64, align=32]
// CHECK-MS: *** Dumping AST Record Layout
// CHECK-MS: 0 | struct s_m256i
// CHECK-MS: 0 | int a
// CHECK-MS: 32 | __m256i b
// CHECK-MS: | [sizeof=64, align=32]
// CHECK-MS: *** Dumping AST Record Layout
// CHECK-MS: 0 | struct s_m256d
// CHECK-MS: 0 | int a
// CHECK-MS: 32 | __m256d b
// CHECK-MS: | [sizeof=64, align=32]
// CHECK-MS: *** Dumping AST Record Layout
// CHECK-MS: 0 | struct s_m512
// CHECK-MS: 0 | int a
// CHECK-MS: 64 | __m512 b
// CHECK-MS: | [sizeof=128, align=64]
// CHECK-MS: *** Dumping AST Record Layout
// CHECK-MS: 0 | struct s_m512i
// CHECK-MS: 0 | int a
// CHECK-MS: 64 | __m512i b
// CHECK-MS: | [sizeof=128, align=64]
// CHECK-MS: *** Dumping AST Record Layout
// CHECK-MS: 0 | struct s_m512d
// CHECK-MS: 0 | int a
// CHECK-MS: 64 | __m512d b
// CHECK-MS: | [sizeof=128, align=64]
// CHECK-NOTMS: *** Dumping AST Record Layout
// CHECK-NOTMS: 0 | struct s_m64
// CHECK-NOTMS: 0 | int a
// CHECK-NOTMS: 4 | __m64 b
// CHECK-NOTMS: | [sizeof=12, align=1]
// CHECK-NOTMS: *** Dumping AST Record Layout
// CHECK-NOTMS: 0 | struct s_m128
// CHECK-NOTMS: 0 | int a
// CHECK-NOTMS: 4 | __m128 b
// CHECK-NOTMS: | [sizeof=20, align=1]
// CHECK-NOTMS: *** Dumping AST Record Layout
// CHECK-NOTMS: 0 | struct s_m128i
// CHECK-NOTMS: 0 | int a
// CHECK-NOTMS: 4 | __m128i b
// CHECK-NOTMS: | [sizeof=20, align=1]
// CHECK-NOTMS: *** Dumping AST Record Layout
// CHECK-NOTMS: 0 | struct s_m128d
// CHECK-NOTMS: 0 | int a
// CHECK-NOTMS: 4 | __m128d b
// CHECK-NOTMS: | [sizeof=20, align=1]
// CHECK-NOTMS: *** Dumping AST Record Layout
// CHECK-NOTMS: 0 | struct s_m256
// CHECK-NOTMS: 0 | int a
// CHECK-NOTMS: 4 | __m256 b
// CHECK-NOTMS: | [sizeof=36, align=1]
// CHECK-NOTMS: *** Dumping AST Record Layout
// CHECK-NOTMS: 0 | struct s_m256i
// CHECK-NOTMS: 0 | int a
// CHECK-NOTMS: 4 | __m256i b
// CHECK-NOTMS: | [sizeof=36, align=1]
// CHECK-NOTMS: *** Dumping AST Record Layout
// CHECK-NOTMS: 0 | struct s_m256d
// CHECK-NOTMS: 0 | int a
// CHECK-NOTMS: 4 | __m256d b
// CHECK-NOTMS: | [sizeof=36, align=1]
// CHECK-NOTMS: *** Dumping AST Record Layout
// CHECK-NOTMS: 0 | struct s_m512
// CHECK-NOTMS: 0 | int a
// CHECK-NOTMS: 4 | __m512 b
// CHECK-NOTMS: | [sizeof=68, align=1]
// CHECK-NOTMS: *** Dumping AST Record Layout
// CHECK-NOTMS: 0 | struct s_m512i
// CHECK-NOTMS: 0 | int a
// CHECK-NOTMS: 4 | __m512i b
// CHECK-NOTMS: | [sizeof=68, align=1]
// CHECK-NOTMS: *** Dumping AST Record Layout
// CHECK-NOTMS: 0 | struct s_m512d
// CHECK-NOTMS: 0 | int a
// CHECK-NOTMS: 4 | __m512d b
// CHECK-NOTMS: | [sizeof=68, align=1]