
This PR: * adds __spirv_ builtins for existing instructions; * fixes parsing of "syncscope" values in atomic instructions; * fix a special case of binary header emision.
13 lines
537 B
LLVM
13 lines
537 B
LLVM
; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
|
|
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
|
|
|
|
;; FIXME: ensure Magic Number, version number, generator's magic number, "bound" and "schema" are at least present
|
|
|
|
;; Ensure the required Capabilities are listed.
|
|
; CHECK-DAG: OpCapability Kernel
|
|
; CHECK-DAG: OpCapability Addresses
|
|
|
|
;; Ensure one, and only one, OpMemoryModel is defined.
|
|
; CHECK: OpMemoryModel Physical64 OpenCL
|
|
; CHECK-NOT: OpMemoryModel
|