Skip to content

Commit 0c61505

Browse files
committed
Autogenerate assertions
1 parent cb05b56 commit 0c61505

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

llvm/test/Transforms/SROA/atomic-vector.ll

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
; RUN: opt < %s -passes='sroa' -S 2>&1 | FileCheck %s --check-prefix=ERR
1+
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
22
; RUN: opt < %s -passes='sroa' -S | FileCheck %s
33

44
define float @atomic_vector() {
5-
; ERR-NOT: atomic load operand must have integer, pointer, or floating point type!
6-
; ERR-NOT: <1 x float> {{%.*}} = load atomic volatile <1 x float>, ptr {{%.*}} acquire, align 4
7-
; CHECK: %1 = alloca <1 x float>, align 4
8-
; CHECK-NEXT: store <1 x float> undef, ptr %1, align 4
9-
; CHECK-NEXT: %2 = load atomic volatile float, ptr %1 acquire, align 4
10-
; CHECK-NEXT: ret float %2
5+
; CHECK-LABEL: define float @atomic_vector() {
6+
; CHECK-NEXT: [[TMP1:%.*]] = alloca <1 x float>, align 4
7+
; CHECK-NEXT: store <1 x float> undef, ptr [[TMP1]], align 4
8+
; CHECK-NEXT: [[TMP2:%.*]] = load atomic volatile float, ptr [[TMP1]] acquire, align 4
9+
; CHECK-NEXT: ret float [[TMP2]]
10+
;
1111
%1 = alloca <1 x float>
1212
%2 = alloca <1 x float>
1313
%3 = alloca ptr

0 commit comments

Comments
 (0)