forked from OSchip/llvm-project
[OPENMP] Fix for failed tests for 'omp atomic write' construct.
llvm-svn: 235576
This commit is contained in:
parent
9595b7da1a
commit
112a7bf961
|
@ -22,9 +22,9 @@ void parallel_atomic_ewc() {
|
|||
// CHECK: invoke void @_ZN2StD1Ev(%struct.St* [[TEMP_ST_ADDR]])
|
||||
#pragma omp atomic read
|
||||
b = St().get();
|
||||
// CHECK: invoke void @_ZN2StC1Ev(%struct.St* [[TEMP_ST_ADDR:%.+]])
|
||||
// CHECK: [[SCALAR_ADDR:%.+]] = invoke dereferenceable(4) i32* @_ZN2St3getEv(%struct.St* [[TEMP_ST_ADDR]])
|
||||
// CHECK: [[B_VAL:%.+]] = load i32, i32* @b
|
||||
// CHECK-DAG: invoke void @_ZN2StC1Ev(%struct.St* [[TEMP_ST_ADDR:%.+]])
|
||||
// CHECK-DAG: [[SCALAR_ADDR:%.+]] = invoke dereferenceable(4) i32* @_ZN2St3getEv(%struct.St* [[TEMP_ST_ADDR]])
|
||||
// CHECK-DAG: [[B_VAL:%.+]] = load i32, i32* @b
|
||||
// CHECK: store atomic i32 [[B_VAL]], i32* [[SCALAR_ADDR]] monotonic
|
||||
// CHECK: invoke void @_ZN2StD1Ev(%struct.St* [[TEMP_ST_ADDR]])
|
||||
#pragma omp atomic write
|
||||
|
|
|
@ -261,9 +261,9 @@ int main() {
|
|||
// CHECK: store atomic i64
|
||||
#pragma omp atomic write
|
||||
llx = cdv;
|
||||
// CHECK: [[IDX:%.+]] = load i16, i16* @{{.+}}
|
||||
// CHECK: load i8, i8*
|
||||
// CHECK: [[VEC_ITEM_VAL:%.+]] = zext i1 %{{.+}} to i32
|
||||
// CHECK-DAG: [[IDX:%.+]] = load i16, i16* @{{.+}}
|
||||
// CHECK-DAG: load i8, i8*
|
||||
// CHECK-DAG: [[VEC_ITEM_VAL:%.+]] = zext i1 %{{.+}} to i32
|
||||
// CHECK: [[I128VAL:%.+]] = load atomic i128, i128* bitcast (<4 x i32>* [[DEST:@.+]] to i128*) monotonic
|
||||
// CHECK: [[LD:%.+]] = bitcast i128 [[I128VAL]] to <4 x i32>
|
||||
// CHECK: br label %[[CONT:.+]]
|
||||
|
|
Loading…
Reference in New Issue