mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-24 05:55:43 -04:00

The patch in r350643 incorrectly sets the COFF emission based on bits instead of bytes. This patch converts the 32 via CharUnits to bits to compare the correct values. Change-Id: Icf38a16470ad5ae3531374969c033557ddb0d323 llvm-svn: 353411
12 lines
542 B
C
12 lines
542 B
C
// RUN: %clang_cc1 -triple x86_64-windows-msvc -emit-llvm -o - %s | FileCheck %s
|
|
typedef float TooLargeAlignment __attribute__((__vector_size__(64)));
|
|
typedef float NormalAlignment __attribute__((__vector_size__(4)));
|
|
|
|
TooLargeAlignment TooBig;
|
|
// CHECK: @TooBig = dso_local global <16 x float> zeroinitializer, align 64
|
|
NormalAlignment JustRight;
|
|
// CHECK: @JustRight = common dso_local global <1 x float> zeroinitializer, align 4
|
|
|
|
TooLargeAlignment *IsAPointer;
|
|
// CHECK: @IsAPointer = common dso_local global <16 x float>* null, align 8
|