forked from OSchip/llvm-project
[flang][nfc] Remove trailing whitespaces from tests
This commit is contained in:
parent
22d332a0a2
commit
b2ad420a78
|
@ -60,9 +60,9 @@ func @bar_select_type(%arg : !fir.box<!fir.type<derived3{f:f32}>>) -> i32 {
|
|||
%2 = arith.constant 3 : i32
|
||||
|
||||
// expected-error@+1{{failed to legalize operation 'fir.select_type'}}
|
||||
fir.select_type %arg : !fir.box<!fir.type<derived3{f:f32}>> [
|
||||
#fir.instance<!fir.int<4>>,^bb1(%0:i32),
|
||||
#fir.instance<!fir.int<8>>,^bb2(%2:i32),
|
||||
fir.select_type %arg : !fir.box<!fir.type<derived3{f:f32}>> [
|
||||
#fir.instance<!fir.int<4>>,^bb1(%0:i32),
|
||||
#fir.instance<!fir.int<8>>,^bb2(%2:i32),
|
||||
unit,^bb5 ]
|
||||
^bb1(%a : i32) :
|
||||
return %a : i32
|
||||
|
|
|
@ -397,7 +397,7 @@ func @fir_complex_add(%a: !fir.complex<16>, %b: !fir.complex<16>) -> !fir.comple
|
|||
}
|
||||
|
||||
// CHECK-LABEL: llvm.func @fir_complex_add(
|
||||
// CHECK-SAME: %[[ARG0:.*]]: !llvm.struct<(f128, f128)>,
|
||||
// CHECK-SAME: %[[ARG0:.*]]: !llvm.struct<(f128, f128)>,
|
||||
// CHECK-SAME: %[[ARG1:.*]]: !llvm.struct<(f128, f128)>) -> !llvm.struct<(f128, f128)> {
|
||||
// CHECK: %[[X0:.*]] = llvm.extractvalue %[[ARG0]][0 : i32] : !llvm.struct<(f128, f128)>
|
||||
// CHECK: %[[Y0:.*]] = llvm.extractvalue %[[ARG0]][1 : i32] : !llvm.struct<(f128, f128)>
|
||||
|
@ -422,7 +422,7 @@ func @fir_complex_sub(%a: !fir.complex<16>, %b: !fir.complex<16>) -> !fir.comple
|
|||
}
|
||||
|
||||
// CHECK-LABEL: llvm.func @fir_complex_sub(
|
||||
// CHECK-SAME: %[[ARG0:.*]]: !llvm.struct<(f128, f128)>,
|
||||
// CHECK-SAME: %[[ARG0:.*]]: !llvm.struct<(f128, f128)>,
|
||||
// CHECK-SAME: %[[ARG1:.*]]: !llvm.struct<(f128, f128)>) -> !llvm.struct<(f128, f128)> {
|
||||
// CHECK: %[[X0:.*]] = llvm.extractvalue %[[ARG0]][0 : i32] : !llvm.struct<(f128, f128)>
|
||||
// CHECK: %[[Y0:.*]] = llvm.extractvalue %[[ARG0]][1 : i32] : !llvm.struct<(f128, f128)>
|
||||
|
@ -447,7 +447,7 @@ func @fir_complex_mul(%a: !fir.complex<16>, %b: !fir.complex<16>) -> !fir.comple
|
|||
}
|
||||
|
||||
// CHECK-LABEL: llvm.func @fir_complex_mul(
|
||||
// CHECK-SAME: %[[ARG0:.*]]: !llvm.struct<(f128, f128)>,
|
||||
// CHECK-SAME: %[[ARG0:.*]]: !llvm.struct<(f128, f128)>,
|
||||
// CHECK-SAME: %[[ARG1:.*]]: !llvm.struct<(f128, f128)>) -> !llvm.struct<(f128, f128)> {
|
||||
// CHECK: %[[X0:.*]] = llvm.extractvalue %[[ARG0]][0 : i32] : !llvm.struct<(f128, f128)>
|
||||
// CHECK: %[[Y0:.*]] = llvm.extractvalue %[[ARG0]][1 : i32] : !llvm.struct<(f128, f128)>
|
||||
|
@ -476,7 +476,7 @@ func @fir_complex_div(%a: !fir.complex<16>, %b: !fir.complex<16>) -> !fir.comple
|
|||
}
|
||||
|
||||
// CHECK-LABEL: llvm.func @fir_complex_div(
|
||||
// CHECK-SAME: %[[ARG0:.*]]: !llvm.struct<(f128, f128)>,
|
||||
// CHECK-SAME: %[[ARG0:.*]]: !llvm.struct<(f128, f128)>,
|
||||
// CHECK-SAME: %[[ARG1:.*]]: !llvm.struct<(f128, f128)>) -> !llvm.struct<(f128, f128)> {
|
||||
// CHECK: %[[X0:.*]] = llvm.extractvalue %[[ARG0]][0 : i32] : !llvm.struct<(f128, f128)>
|
||||
// CHECK: %[[Y0:.*]] = llvm.extractvalue %[[ARG0]][1 : i32] : !llvm.struct<(f128, f128)>
|
||||
|
@ -865,7 +865,7 @@ func @box_isarray(%arg0: !fir.box<!fir.array<*:f64>>) -> i1 {
|
|||
// CHECK-SAME: %[[ARG0:.*]]: !llvm.ptr<struct<(ptr<f64>, i{{.*}}, i{{.*}}, i{{.*}}, i{{.*}}, i{{.*}}, i{{.*}})>>) -> i1
|
||||
// CHECK: %[[C0:.*]] = llvm.mlir.constant(0 : i32) : i32
|
||||
// CHECK: %[[RANKPOS:.*]] = llvm.mlir.constant(3 : i32) : i32
|
||||
// CHECK: %[[GEP:.*]] = llvm.getelementptr %[[ARG0]][%[[C0]], %[[RANKPOS]]] : (!llvm.ptr<struct<(ptr<f64>, i{{.*}}, i{{.*}}, i{{.*}}, i{{.*}}, i{{.*}}, i{{.*}})>>, i32, i32) -> !llvm.ptr<i32>
|
||||
// CHECK: %[[GEP:.*]] = llvm.getelementptr %[[ARG0]][%[[C0]], %[[RANKPOS]]] : (!llvm.ptr<struct<(ptr<f64>, i{{.*}}, i{{.*}}, i{{.*}}, i{{.*}}, i{{.*}}, i{{.*}})>>, i32, i32) -> !llvm.ptr<i32>
|
||||
// CHECK: %[[RANK:.*]] = llvm.load %[[GEP]] : !llvm.ptr<i32>
|
||||
// CHECK: %[[C0_ISARRAY:.*]] = llvm.mlir.constant(0 : i32) : i32
|
||||
// CHECK: %[[IS_ARRAY:.*]] = llvm.icmp "ne" %[[RANK]], %[[C0_ISARRAY]] : i32
|
||||
|
@ -1374,7 +1374,7 @@ func @box_tdesc(%arg0: !fir.box<f64>) {
|
|||
// Test `fir.embox` conversion.
|
||||
|
||||
// Check basic creation of a descriptor and insertion of values.
|
||||
// The indices used to insert values into the descriptor correspond the
|
||||
// The indices used to insert values into the descriptor correspond the
|
||||
// position of the fields in the descriptor as defined in `CFI_cdesc_t` in
|
||||
// flang/ISO_Fortran_binding.h.
|
||||
|
||||
|
@ -1409,7 +1409,7 @@ func @embox0(%arg0: !fir.ref<!fir.array<100xi32>>) {
|
|||
// CHECK: %[[DESC6:.*]] = llvm.insertvalue %[[ADDR]], %[[DESC5]][0 : i32] : !llvm.struct<(ptr<array<100 x i32>>, i{{.*}}, i{{.*}}, i{{.*}}, i{{.*}}, i{{.*}}, i{{.*}})>
|
||||
// CHECK: llvm.store %[[DESC6]], %[[ALLOCA]] : !llvm.ptr<struct<(ptr<array<100 x i32>>, i{{.*}}, i{{.*}}, i{{.*}}, i{{.*}}, i{{.*}}, i{{.*}})>>
|
||||
|
||||
// Check `fir.embox` in a `fir.global`. Descriptors created by `fir.embox`
|
||||
// Check `fir.embox` in a `fir.global`. Descriptors created by `fir.embox`
|
||||
// conversion are not generating `alloca` instructions. This test make sure of
|
||||
// that.
|
||||
|
||||
|
|
|
@ -6,13 +6,13 @@
|
|||
// Test sequence types `!fir.array`
|
||||
|
||||
func private @foo0(%arg0: !fir.array<10x10xi64>)
|
||||
// CHECK-LABEL: foo0
|
||||
// CHECK-LABEL: foo0
|
||||
// CHECK-SAME: !llvm.array<10 x array<10 x i64>>
|
||||
func private @foo1(%arg0: !fir.array<?xf32>)
|
||||
// CHECK-LABEL: foo1
|
||||
// CHECK-SAME: !llvm.ptr<f32>
|
||||
func private @foo2(%arg0: !fir.array<?x?xf128>)
|
||||
// CHECK-LABEL: foo2
|
||||
// CHECK-LABEL: foo2
|
||||
// CHECK-SAME: !llvm.ptr<f128>
|
||||
func private @foo3(%arg0: !fir.array<*:i32>)
|
||||
// CHECK-LABEL: foo3
|
||||
|
|
Loading…
Reference in New Issue