brintos

brintos / llvm-project-archived public Read only

0
0
Text · 439 B · 74a45ac Raw
15 lines · plain
1; RUN: not opt -S -dxil-op-lower  %s 2>&1 | FileCheck %s2 3; DXIL operation sin is not valid in vertex stage4; CHECK: in function test_thread_id_in_group5; CHECK-SAME: Cannot create ThreadIdInGroup operation: Invalid stage6 7target triple = "dxil-pc-shadermodel6.7-vertex"8 9; Function Attrs: noinline nounwind optnone10define i32 @test_thread_id_in_group(i32 %a) #0 {11entry:12  %0 = call i32 @llvm.dx.thread.id.in.group(i32 %a)13  ret i32 %014}15