File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
llvm/test/Transforms/SROA Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 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
2
2
; RUN: opt < %s -passes='sroa' -S | FileCheck %s
3
3
4
4
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
+ ;
11
11
%1 = alloca <1 x float >
12
12
%2 = alloca <1 x float >
13
13
%3 = alloca ptr
You can’t perform that action at this time.
0 commit comments