Debian Codegraph @

clang/test/CIR/Tools/no-triple-has-data-layout.cir

raw
1 // RUN: cir-translate --cir-to-llvmir --target x86_64-unknown-linux-gnu --disable-cc-lowering %s -o %t.x86.ll
2 // RUN: FileCheck %s -input-file %t.x86.ll -check-prefix=X86
3 // RUN: cir-translate --cir-to-llvmir --target spirv64-unknown-unknown --disable-cc-lowering %s -o %t.spirv64.ll
4 // RUN: FileCheck %s -input-file %t.spirv64.ll -check-prefix=SPIRV64
5
6 module attributes {
7 dlti.dl_spec = #dlti.dl_spec<"dlti.global_memory_space" = 7 : ui64>
8 } {
9 cir.func @foo() {
10 cir.return
11 }
12 }
13
14 // X86-NOT: target datalayout = "G7"
15 // X86-DAG: target triple = "x86_64-unknown-linux-gnu"
16
17 // SPIRV64-NOT: target datalayout = "G7"
18 // SPIRV64-DAG: target triple = "spirv64-unknown-unknown"