xref: /llvm-project/llvm/test/CodeGen/DirectX/group_id_error.ll (revision 8cf85653b6f5c90b83f8a5741baad5725d6c6932)
1; RUN: not opt -S -dxil-op-lower  %s 2>&1 | FileCheck %s
2
3; DXIL operation not valid for pixel stage
4; CHECK: in function test_group_id
5; CHECK-SAME: Cannot create GroupId operation: Invalid stage
6
7target triple = "dxil-pc-shadermodel6.7-pixel"
8
9; Function Attrs: noinline nounwind optnone
10define i32 @test_group_id(i32 %a) #0 {
11entry:
12  %0 = call i32 @llvm.dx.group.id(i32 %a)
13  ret i32 %0
14}
15