1 ; RUN: not opt -S -dxil-op-lower %s 2>&1 | FileCheck %s
3 ; DXIL operation not valid for library stage
4 ; CHECK: in function test_thread_id
5 ; CHECK-SAME: Cannot create ThreadId operation: Invalid stage
7 target triple = "dxil-pc-shadermodel6.7-library"
9 ; Function Attrs: noinline nounwind optnone
10 define i32 @test_thread_id(i32 %a) #0 {
12 %0 = call i32 @llvm.dx.thread.id(i32 %a)