Skip to content

Commit 36d5034

Browse files
committed
[clang][NFC] Drop alignment in builtin-nondeterministic-value test
Drop alignment to allow test to run in different platforms. Differential Revision: https://reviews.llvm.org/D152547
1 parent b6f3062 commit 36d5034

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,56 +5,56 @@ typedef _Bool bool4 __attribute__((ext_vector_type(4)));
55

66
int clang_nondet_i( int x ) {
77
// CHECK-LABEL: entry
8-
// CHECK: [[A:%.*]] = alloca i32, align 4
9-
// CHECK: store i32 [[X:%.*]], ptr [[A]], align 4
8+
// CHECK: [[A:%.*]] = alloca i32
9+
// CHECK: store i32 [[X:%.*]], ptr [[A]]
1010
// CHECK: [[R:%.*]] = freeze i32 poison
1111
// CHECK: ret i32 [[R]]
1212
return __builtin_nondeterministic_value(x);
1313
}
1414

1515
float clang_nondet_f( float x ) {
1616
// CHECK-LABEL: entry
17-
// CHECK: [[A:%.*]] = alloca float, align 4
18-
// CHECK: store float [[X:%.*]], ptr [[A]], align 4
17+
// CHECK: [[A:%.*]] = alloca float
18+
// CHECK: store float [[X:%.*]], ptr [[A]]
1919
// CHECK: [[R:%.*]] = freeze float poison
2020
// CHECK: ret float [[R]]
2121
return __builtin_nondeterministic_value(x);
2222
}
2323

2424
double clang_nondet_d( double x ) {
2525
// CHECK-LABEL: entry
26-
// CHECK: [[A:%.*]] = alloca double, align 8
27-
// CHECK: store double [[X:%.*]], ptr [[A]], align 8
26+
// CHECK: [[A:%.*]] = alloca double
27+
// CHECK: store double [[X:%.*]], ptr [[A]]
2828
// CHECK: [[R:%.*]] = freeze double poison
2929
// CHECK: ret double [[R]]
3030
return __builtin_nondeterministic_value(x);
3131
}
3232

3333
_Bool clang_nondet_b( _Bool x) {
3434
// CHECK-LABEL: entry
35-
// CHECK: [[A:%.*]] = alloca i8, align 1
35+
// CHECK: [[A:%.*]] = alloca i8
3636
// CHECK: [[B:%.*]] = zext i1 %x to i8
37-
// CHECK: store i8 [[B]], ptr [[A]], align 1
37+
// CHECK: store i8 [[B]], ptr [[A]]
3838
// CHECK: [[R:%.*]] = freeze i1 poison
3939
// CHECK: ret i1 [[R]]
4040
return __builtin_nondeterministic_value(x);
4141
}
4242

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

5252
void clang_nondet_bv( ) {
53-
// CHECK: [[A:%.*]] = alloca i8, align
53+
// CHECK: [[A:%.*]] = alloca i8
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 poison, i32 poison, i32 poison, i32 poison>
5656
// CHECK: [[BC:%.*]] = bitcast <8 x i1> [[SV]] to i8
57-
// CHECK: store i8 [[BC]], ptr [[A]], align
57+
// CHECK: store i8 [[BC]], ptr [[A]]
5858
// CHECK: ret void
5959
bool4 x = __builtin_nondeterministic_value(x);
6060
}

0 commit comments

Comments
 (0)