1// Check that (1) the output split marker is inserted and (2) the input file is 2// split using the default split marker. 3// RUN: mlir-translate %s -split-input-file -mlir-to-llvmir \ 4// RUN: -output-split-marker="; -----" \ 5// RUN: | FileCheck -check-prefix=CHECK-OUTPUT %s 6 7// With the second command, check that (3) the input split marker is used and 8// (4) the output split marker is empty if not specified. 9// RUN: mlir-translate %s -split-input-file="// ""-----" -mlir-to-llvmir \ 10// RUN: -output-split-marker="; -----" \ 11// RUN: | mlir-translate -split-input-file -import-llvm \ 12// RUN: -split-input-file="; -----" \ 13// RUN: | FileCheck -check-prefix=CHECK-ROUNDTRIP %s 14 15// Check that (5) the input is not split if `-split-input-file` is not given. 16// RUN: mlir-translate %s -mlir-to-llvmir \ 17// RUN: | FileCheck -check-prefix=CHECK-NOSPLIT %s 18 19// CHECK-OUTPUT: ModuleID 20// CHECK-OUTPUT: ; ----- 21// CHECK-OUTPUT-NEXT: ModuleID 22 23// CHECK-ROUNDTRIP: module {{.*}} { 24// CHECK-ROUNDTRIP-NEXT: } 25// CHECK-ROUNDTRIP-EMPTY: 26// CHECK-ROUNDTRIP: module 27 28// CHECK-NOSPLIT: ModuleID 29// CHECK-NOSPLIT-NOT: ModuleID 30 31module {} 32 33// ----- 34 35module {} 36