forked from OSchip/llvm-project
Fix arm build broken by D74361 by dropping align from filecheck pattern
This commit is contained in:
parent
31b7f0ed6a
commit
1d19b15395
|
@ -1,14 +1,14 @@
|
||||||
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
|
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
|
||||||
|
|
||||||
// CHECK: @tentative_attr_first = global i32 undef, align 4
|
// CHECK: @tentative_attr_first = global i32 undef
|
||||||
int tentative_attr_first __attribute__((loader_uninitialized));
|
int tentative_attr_first __attribute__((loader_uninitialized));
|
||||||
int tentative_attr_first;
|
int tentative_attr_first;
|
||||||
|
|
||||||
// CHECK: @tentative_attr_second = global i32 undef, align 4
|
// CHECK: @tentative_attr_second = global i32 undef
|
||||||
int tentative_attr_second;
|
int tentative_attr_second;
|
||||||
int tentative_attr_second __attribute__((loader_uninitialized));
|
int tentative_attr_second __attribute__((loader_uninitialized));
|
||||||
|
|
||||||
// CHECK: @array = global [16 x float] undef, align 16
|
// CHECK: @array = global [16 x float] undef
|
||||||
float array[16] __attribute__((loader_uninitialized));
|
float array[16] __attribute__((loader_uninitialized));
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
@ -17,8 +17,8 @@ typedef struct
|
||||||
float y;
|
float y;
|
||||||
} s;
|
} s;
|
||||||
|
|
||||||
// CHECK: @i = global %struct.s undef, align 4
|
// CHECK: @i = global %struct.s undef
|
||||||
s i __attribute__((loader_uninitialized));
|
s i __attribute__((loader_uninitialized));
|
||||||
|
|
||||||
// CHECK: @private_extern_ok = hidden global i32 undef, align 4
|
// CHECK: @private_extern_ok = hidden global i32 undef
|
||||||
__private_extern__ int private_extern_ok __attribute__((loader_uninitialized));
|
__private_extern__ int private_extern_ok __attribute__((loader_uninitialized));
|
||||||
|
|
|
@ -21,9 +21,9 @@ class trivial
|
||||||
// CHECK: @ut = global %class.trivial undef
|
// CHECK: @ut = global %class.trivial undef
|
||||||
trivial ut [[clang::loader_uninitialized]];
|
trivial ut [[clang::loader_uninitialized]];
|
||||||
|
|
||||||
// CHECK: @arr = global [32 x double] undef, align 16
|
// CHECK: @arr = global [32 x double] undef
|
||||||
double arr[32] __attribute__((loader_uninitialized));
|
double arr[32] __attribute__((loader_uninitialized));
|
||||||
|
|
||||||
// Defining as arr2[] [[clang..]] raises the error: attribute cannot be applied to types
|
// Defining as arr2[] [[clang..]] raises the error: attribute cannot be applied to types
|
||||||
// CHECK: @arr2 = global [4 x double] undef, align 16
|
// CHECK: @arr2 = global [4 x double] undef
|
||||||
double arr2 [[clang::loader_uninitialized]] [4];
|
double arr2 [[clang::loader_uninitialized]] [4];
|
||||||
|
|
Loading…
Reference in New Issue