Debian Codegraph @

clang/test/CIR/Tools/no-triple-no-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 {
7 cir.func @foo() {
8 cir.return
9 }
10 }
11
12 // X86-DAG: target triple = "x86_64-unknown-linux-gnu"
13 // X86-DAG: target datalayout = "{{.*}}"
14
15 // SPIRV64-DAG: target triple = "spirv64-unknown-unknown"
16 // SPIRV64-DAG: target datalayout = "{{.*}}"