| 1 |
; UNSUPPORTED: system-windows |
| 2 |
; REQUIRES: llvm-spirv, regkeys, dg2-supported |
| 3 |
|
| 4 |
; RUN: llvm-as %s -o %t.bc |
| 5 |
; RUN: llvm-spirv %t.bc --spirv-ext=+SPV_INTEL_fpga_cluster_attributes -o %t.spv |
| 6 |
; RUN: ocloc compile -spirv_input -file %t.spv -device dg2 -options " -igc_opts 'ShaderDumpTranslationOnly=1'" 2>&1 | FileCheck %s --check-prefixes=CHECK-LLVM |
| 7 |
|
| 8 |
target triple = "spir64-unknown-unknown" |
| 9 |
|
| 10 |
; CHECK-LLVM: define spir_func void @test_fpga_stallenable_attr() {{.*}} !stall_enable [[STALL_MD:![0-9]+]] |
| 11 |
; CHECK-LLVM: define spir_func void @test_fpga_stallfree_attr() {{.*}} |
| 12 |
; CHECK-LLVM: [[STALL_MD]] = !{i32 1} |
| 13 |
|
| 14 |
define spir_func void @test_fpga_stallenable_attr() !stall_enable !0 { |
| 15 |
entry: |
| 16 |
ret void |
| 17 |
} |
| 18 |
|
| 19 |
define spir_func void @test_fpga_stallfree_attr() !stall_free !1 { |
| 20 |
entry: |
| 21 |
ret void |
| 22 |
} |
| 23 |
|
| 24 |
!0 = !{ i32 1 } |
| 25 |
!1 = !{ i32 1 } |