1 ; RUN: llc -O0 -mtriple=spirv-unknown-unknown %s -o - | FileCheck %s
2 ; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-unknown %s -o - -filetype=obj | spirv-val %}
4 ;; Ensure the required Capabilities are listed.
5 ; CHECK-DAG: OpCapability Shader
6 ; CHECK-DAG: OpCapability Linkage
8 ;; Ensure one, and only one, OpMemoryModel is defined.
9 ; CHECK: OpMemoryModel Logical GLSL450
10 ; CHECK-NOT: OpMemoryModel