Skip to content

Commit 41bb5b2

Browse files
Reset some tests back to their old states
1 parent 343f7ec commit 41bb5b2

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

flang/test/Driver/tco-emit-final-mlir.fir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// CHECK: llvm.return
1414
// CHECK-NOT: func.func
1515

16-
func.func @_QPfoo() -> !fir.ref<i32> {
16+
func.func @_QPfoo() {
1717
%1 = fir.alloca i32
18-
return %1 : !fir.ref<i32>
18+
return
1919
}

flang/test/Fir/alloc.fir

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,13 +366,11 @@ func.func @allocmem_array_with_holes_dynchar(%arg0: index, %arg1: index) -> !fir
366366
// CHECK: %[[VAL_0:.*]] = alloca { ptr, i64, i32, i8, i8, i8, i8, ptr, [1 x i64] }, i64 1
367367
// CHECK: %[[VAL_3:.*]] = alloca { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]], ptr, [1 x i64] }, i64 1
368368
// CHECK: %[[VAL_2:.*]] = alloca { ptr, i64, i32, i8, i8, i8, i8, ptr, [1 x i64] }, i64 1
369-
func.func private @foo(%0: !fir.ref<!fir.class<none>>, %1: !fir.ref<!fir.class<!fir.array<?xnone>>>, %2: !fir.ref<!fir.box<none>>, %3: !fir.ref<!fir.box<!fir.array<?xnone>>>)
370369
func.func @alloca_unlimited_polymorphic_box() {
371370
%0 = fir.alloca !fir.class<none>
372371
%1 = fir.alloca !fir.class<!fir.array<?xnone>>
373372
%2 = fir.alloca !fir.box<none>
374373
%3 = fir.alloca !fir.box<!fir.array<?xnone>>
375-
fir.call @foo(%0, %1, %2, %3) : (!fir.ref<!fir.class<none>>, !fir.ref<!fir.class<!fir.array<?xnone>>>, !fir.ref<!fir.box<none>>, !fir.ref<!fir.box<!fir.array<?xnone>>>) -> ()
376374
return
377375
}
378376
// Note: allocmem of fir.box are not possible (fir::HeapType::verify does not

flang/test/Fir/omp-reduction-embox-codegen.fir

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ omp.declare_reduction @test_reduction : !fir.ref<!fir.box<i32>> init {
2323
omp.yield(%0 : !fir.ref<!fir.box<i32>>)
2424
}
2525

26-
func.func @_QQmain() -> !fir.ref<!fir.box<i32>> attributes {fir.bindc_name = "reduce"} {
26+
func.func @_QQmain() attributes {fir.bindc_name = "reduce"} {
2727
%4 = fir.alloca !fir.box<i32>
2828
omp.parallel reduction(byref @test_reduction %4 -> %arg0 : !fir.ref<!fir.box<i32>>) {
2929
omp.terminator
3030
}
31-
return %4: !fir.ref<!fir.box<i32>>
31+
return
3232
}
3333

3434
// basically we are testing that there isn't a crash
35-
// CHECK-LABEL: define ptr @_QQmain
35+
// CHECK-LABEL: define void @_QQmain
3636
// CHECK-NEXT: alloca { ptr, i64, i32, i8, i8, i8, i8 }, i64 1, align 8

flang/test/Fir/pdt.fir

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@ func.func @_QTt1P.f2.offset(%0 : i32, %1 : i32) -> i32 {
9696

9797
func.func private @bar(!fir.ref<!fir.char<1,?>>)
9898

99-
// CHECK-LABEL: define ptr @_QPfoo(i32 %0, i32 %1)
100-
func.func @_QPfoo(%arg0 : i32, %arg1 : i32) -> !fir.ref<!fir.type<_QTt1>> {
99+
// CHECK-LABEL: define void @_QPfoo(i32 %0, i32 %1)
100+
func.func @_QPfoo(%arg0 : i32, %arg1 : i32) {
101101
// CHECK: %[[size:.*]] = call i64 @_QTt1P.mem.size(i32 %0, i32 %1)
102102
// CHECK: %[[alloc:.*]] = alloca i8, i64 %[[size]]
103103
%0 = fir.alloca !fir.type<_QTt1(p1:i32,p2:i32){f1:!fir.char<1,?>,f2:!fir.char<1,?>}>(%arg0, %arg1 : i32, i32)
104104
//%2 = fir.coordinate_of %0, f2 : (!fir.ref<!fir.type<_QTt1>>) -> !fir.ref<!fir.char<1,?>>
105105
%2 = fir.zero_bits !fir.ref<!fir.char<1,?>>
106106
fir.call @bar(%2) : (!fir.ref<!fir.char<1,?>>) -> ()
107-
return %0 : !fir.ref<!fir.type<_QTt1>>
107+
return
108108
}

flang/test/Fir/select.fir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ func.func @h(%a : i32) -> i32 {
6464
return %1 : i32
6565
^bb6:
6666
%x = arith.addi %b4, %b3 : i32
67-
// CHECK-DAG: ret i32
67+
// CHECK: ret i32
6868
return %x : i32
6969
}

0 commit comments

Comments
 (0)