blob: 1ed3d28e3847722d7aa75cc79118c34ef1b8fd98 [file] [log] [blame] [edit]
; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv32-unknown-unknown %s -o - -filetype=obj | spirv-val %}
; 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 %}
; RUN: llc -O0 -mtriple=spirv-unknown-vulkan-compute %s -o - | FileCheck %s
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-vulkan-compute %s -o - -filetype=obj | spirv-val %}
; CHECK: OpMemoryModel Physical32 Simple
define void @main() {
entry:
ret void
}
; AddressingModel=Physical32 (1), MemoryModel=Simple (0)
!spirv.MemoryModel = !{!0}
!0 = !{i32 1, i32 0}