[TTI] getTypeBasedIntrinsicInstrCost - add basic handling for strided load/store...
[llvm-project.git] / llvm / test / CodeGen / DirectX / thread_id_in_group_error.ll
blob74a45ac3285d8f074c1aee7451fc6cb379a4bf1d
1 ; RUN: not opt -S -dxil-op-lower  %s 2>&1 | FileCheck %s
3 ; DXIL operation sin is not valid in vertex stage
4 ; CHECK: in function test_thread_id_in_group
5 ; CHECK-SAME: Cannot create ThreadIdInGroup operation: Invalid stage
7 target triple = "dxil-pc-shadermodel6.7-vertex"
9 ; Function Attrs: noinline nounwind optnone
10 define i32 @test_thread_id_in_group(i32 %a) #0 {
11 entry:
12   %0 = call i32 @llvm.dx.thread.id.in.group(i32 %a)
13   ret i32 %0