blob: 20904b8522689f9f9691e2158fe80aee28d344ef [file] [edit]
; RUN: opt -S -dxil-op-lower %s | FileCheck %s
target triple = "dxil-pc-shadermodel6.8-vertex"
; CHECK-LABEL: define i32 @main(
; CHECK: %[[START:.*]] = call i32 @dx.op.startInstanceLocation.i32(i32 257)
; CHECK: ret i32 %[[START]]
define i32 @main() {
entry:
%0 = call i32 @llvm.dx.start.instance.location()
ret i32 %0
}
; CHECK: declare i32 @dx.op.startInstanceLocation.i32(i32) #[[#ATTR:]]
; CHECK: attributes #[[#ATTR]] = { nounwind memory(none) }