diff --git a/llvm/test/CodeGen/SPIRV/empty-module.ll b/llvm/test/CodeGen/SPIRV/empty-module.ll --- a/llvm/test/CodeGen/SPIRV/empty-module.ll +++ b/llvm/test/CodeGen/SPIRV/empty-module.ll @@ -1,8 +1,12 @@ -; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s +; RUN: %if spirv-registered-target %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=SPIRV-CHECK %} +; RUN: %if directx-registered-target %{ llc -O0 -mtriple=dxil-pc-shadermodel6.0-library %s -o - | FileCheck %s --check-prefix=DXIL-CHECK %} -; CHECK-DAG: OpCapability Addresses -; CHECK-DAG: OpCapability Linkage -; CHECK-DAG: OpCapability Kernel -; CHECK: %1 = OpExtInstImport "OpenCL.std" -; CHECK: OpMemoryModel Physical64 OpenCL -; CHECK: OpSource Unknown 0 +; SPIRV-CHECK-DAG: OpCapability Addresses +; SPIRV-CHECK-DAG: OpCapability Linkage +; SPIRV-CHECK-DAG: OpCapability Kernel +; SPIRV-CHECK: %1 = OpExtInstImport "OpenCL.std" +; SPIRV-CHECK: OpMemoryModel Physical64 OpenCL +; SPIRV-CHECK: OpSource Unknown 0 + +; DXIL-CHECK: target datalayout = "e-m:e-p:32:32-i1:32-i8:8-i16:16-i32:32-i64:64-f16:16-f32:32-f64:64-n8:16:32:64" +; DXIL-CHECK: target triple = "dxil-pc-shadermodel6.0-library"