Skip to content

Commit

Permalink
Fix arm build broken by D74361 by dropping align from filecheck pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
JonChesterfield committed Mar 17, 2020
1 parent 31b7f0e commit 1d19b15
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions clang/test/CodeGen/attr-loader-uninitialized.c
@@ -1,14 +1,14 @@
// 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;

// CHECK: @tentative_attr_second = global i32 undef, align 4
// CHECK: @tentative_attr_second = global i32 undef
int tentative_attr_second;
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));

typedef struct
Expand All @@ -17,8 +17,8 @@ typedef struct
float y;
} s;

// CHECK: @i = global %struct.s undef, align 4
// CHECK: @i = global %struct.s undef
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));
4 changes: 2 additions & 2 deletions clang/test/CodeGenCXX/attr-loader-uninitialized.cpp
Expand Up @@ -21,9 +21,9 @@ class trivial
// CHECK: @ut = global %class.trivial undef
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));

// 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];

0 comments on commit 1d19b15

Please sign in to comment.