10 lines · plain
1// REQUIRES: target=x86{{.*}}2// RUN: mlir-opt %s -llvm-target-to-data-layout --split-input-file --verify-diagnostics3 4// expected-error @+1 {{failed to obtain llvm::DataLayout for #llvm.target}}5module attributes { dlti.dl_spec = #dlti.dl_spec<index = 32>,6llvm.target =7 #llvm.target<triple="x64_86-unknown-linux",8 chip="NON-EXISTING CHIP"> } {9}10