[clang] 6795503 - Fix the ARM bots
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 5 10:17:58 PDT 2023
Author: Aaron Ballman
Date: 2023-10-05T13:17:47-04:00
New Revision: 67955033fde0518305d1291edc1ee1cfebb986d0
URL: https://github.com/llvm/llvm-project/commit/67955033fde0518305d1291edc1ee1cfebb986d0
DIFF: https://github.com/llvm/llvm-project/commit/67955033fde0518305d1291edc1ee1cfebb986d0.diff
LOG: Fix the ARM bots
This addresses the issues found by:
https://lab.llvm.org/buildbot/#/builders/245/builds/15010
as part of: 13ffc61a4224012ab1abb4e806d03fc149aec91f
Added:
Modified:
clang/test/CodeGen/auto.c
Removed:
################################################################################
diff --git a/clang/test/CodeGen/auto.c b/clang/test/CodeGen/auto.c
index c418844a9316fcf..e5bc1bf66138f5c 100644
--- a/clang/test/CodeGen/auto.c
+++ b/clang/test/CodeGen/auto.c
@@ -1,32 +1,32 @@
// RUN: %clang_cc1 -std=c2x -emit-llvm %s -o - | FileCheck %s
void basic_types(void) {
- auto nb = 4; // CHECK: %nb = alloca i32, align 4
- auto dbl = 4.3; // CHECK: %dbl = alloca double, align 8
- auto lng = 4UL; // CHECK: %lng = alloca i{{32|64}}, align {{4|8}}
- auto bl = true; // CHECK: %bl = alloca i8, align 1
- auto chr = 'A'; // CHECK: %chr = alloca i{{8|32}}, align {{1|4}}
- auto str = "Test"; // CHECK: %str = alloca ptr, align 8
- auto str2[] = "Test"; // CHECK: %str2 = alloca [5 x i8], align 1
- auto nptr = nullptr; // CHECK: %nptr = alloca ptr, align 8
+ auto nb = 4; // CHECK: alloca i32
+ auto dbl = 4.3; // CHECK: alloca double
+ auto lng = 4UL; // CHECK: alloca i{{32|64}}
+ auto bl = true; // CHECK: alloca i8
+ auto chr = 'A'; // CHECK: alloca i{{8|32}}
+ auto str = "Test"; // CHECK: alloca ptr
+ auto str2[] = "Test"; // CHECK: alloca [5 x i8]
+ auto nptr = nullptr; // CHECK: alloca ptr
}
void misc_declarations(void) {
// FIXME: this should end up being rejected when we implement underspecified
// declarations in N3006.
- auto strct_ptr = (struct { int a; } *)0; // CHECK: %strct_ptr = alloca ptr, align 8
- auto int_cl = (int){13}; // CHECK: %int_cl = alloca i32, align 4
- auto double_cl = (double){2.5}; // CHECK: %double_cl = alloca double, align 8
+ auto strct_ptr = (struct { int a; } *)0; // CHECK: alloca ptr
+ auto int_cl = (int){13}; // CHECK: alloca i32
+ auto double_cl = (double){2.5}; // CHECK: alloca double
- auto se = ({ // CHECK: %se = alloca i32, align 4
- auto snb = 12; // CHECK: %snb = alloca i32, align 4
+ auto se = ({ // CHECK: alloca i32
+ auto snb = 12; // CHECK: alloca i32
snb;
});
}
void loop(void) {
- auto j = 4; // CHECK: %j = alloca i32, align 4
- for (auto i = j; i < 2 * j; i++); // CHECK: %i = alloca i32, align 4
+ auto j = 4; // CHECK: alloca i32
+ for (auto i = j; i < 2 * j; i++); // CHECK: alloca i32
}
#define AUTO_MACRO(_NAME, ARG, ARG2, ARG3) auto _NAME = ARG + (ARG2 / ARG3);
@@ -34,8 +34,8 @@ void loop(void) {
#define AUTO_INT_MACRO(_NAME, ARG, ARG2, ARG3) auto _NAME = (ARG ^ ARG2) & ARG3;
int macros(int in_int) {
- auto a = in_int + 1; // CHECK: %a = alloca i32, align 4
- AUTO_MACRO(b, 1.3, 2.5f, 3); // CHECK: %b = alloca double, align 8
- AUTO_INT_MACRO(c, 64, 23, 0xff); // CHECK: %c = alloca i32, align 4
- return (a + (int)b) - c; // CHECK: ret i32 %sub
+ auto a = in_int + 1; // CHECK: alloca i32
+ AUTO_MACRO(b, 1.3, 2.5f, 3); // CHECK: alloca double
+ AUTO_INT_MACRO(c, 64, 23, 0xff); // CHECK: alloca i32
+ return (a + (int)b) - c; // CHECK: ret i32 %{{.*}}
}
More information about the cfe-commits
mailing list