• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// REQUIRES: amdgpu-registered-target
2// RUN: %clang_cc1 -x cl -triple amdgcn -fsyntax-only  %s
3// expected-no-diagnostics
4
5kernel void test () {
6
7  int sgpr = 0, vgpr = 0, imm = 0;
8
9  // sgpr constraints
10  __asm__ ("s_mov_b32 %0, %1" : "=s" (sgpr) : "s" (imm) : );
11
12  // vgpr constraints
13  __asm__ ("v_mov_b32 %0, %1" : "=v" (vgpr) : "v" (imm) : );
14}
15