Skip to content

Commit 3de55e6

Browse files
committed
Fix tests commited in 450a461
Remove alignment matching in tests to avoid ABI compatibility issues
1 parent 8c71229 commit 3de55e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/test/CodeGen/builtins-nondeterministic-value.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,19 @@ _Bool clang_nondet_b( _Bool x) {
4242

4343
void clang_nondet_fv( ) {
4444
// CHECK-LABEL: entry
45-
// CHECK: [[A:%.*]] = alloca <4 x float>, align 16
45+
// CHECK: [[A:%.*]] = alloca <4 x float>, align
4646
// CHECK: [[R:%.*]] = freeze <4 x float> poison
47-
// CHECK: store <4 x float> [[R]], ptr [[A]], align 16
47+
// CHECK: store <4 x float> [[R]], ptr [[A]], align
4848
// CHECK: ret void
4949
float4 x = __builtin_nondeterministic_value(x);
5050
}
5151

5252
void clang_nondet_bv( ) {
53-
// CHECK: [[A:%.*]] = alloca i8, align 1
53+
// CHECK: [[A:%.*]] = alloca i8, align
5454
// CHECK: [[V:%.*]] = freeze <4 x i1> poison
5555
// CHECK: [[SV:%.*]] = shufflevector <4 x i1> [[V]], <4 x i1> poison, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 undef, i32 undef, i32 undef, i32 undef>
5656
// CHECK: [[BC:%.*]] = bitcast <8 x i1> [[SV]] to i8
57-
// CHECK: store i8 [[BC]], ptr [[A]], align 1
57+
// CHECK: store i8 [[BC]], ptr [[A]], align
5858
// CHECK: ret void
5959
bool4 x = __builtin_nondeterministic_value(x);
6060
}

0 commit comments

Comments
 (0)