blob: 34c543362bed180b34f77b6b6788397834106dea [file] [log] [blame]
// RUN: cir-translate --cir-to-llvmir --target x86_64-unknown-linux-gnu --disable-cc-lowering %s -o %t.x86.ll
// RUN: FileCheck %s -input-file %t.x86.ll -check-prefix=X86
// RUN: cir-translate --cir-to-llvmir --target spirv64-unknown-unknown --disable-cc-lowering %s -o %t.spirv64.ll
// RUN: FileCheck %s -input-file %t.spirv64.ll -check-prefix=SPIRV64
// RUN: cir-translate --cir-to-llvmir --disable-cc-lowering %s -o %t.default.ll
// RUN: FileCheck %s -input-file %t.default.ll -check-prefix=DEFAULT
module attributes {
cir.triple = "spirv64-unknown-unknown"
} {
cir.func @foo() {
cir.return
}
}
// X86-DAG: target triple = "x86_64-unknown-linux-gnu"
// X86-DAG: target datalayout = "{{.*}}"
// SPIRV64-DAG: target triple = "spirv64-unknown-unknown"
// SPIRV64-DAG: target datalayout = "{{.*}}"
// DEFAULT-DAG: target triple = "spirv64-unknown-unknown"
// DEFAULT-DAG: target datalayout = "{{.*}}"