xref: /llvm-project/clang/test/CodeGenHipStdPar/unsupported-ASM.cpp (revision dd5d65adb6413122a5ba1ed04c5c2c0b4951b76c)
1*dd5d65adSAlex Voicu // RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu \
2*dd5d65adSAlex Voicu // RUN:   --hipstdpar -x hip -emit-llvm -fcuda-is-device -o - %s | FileCheck %s
3*dd5d65adSAlex Voicu 
4*dd5d65adSAlex Voicu #define __global__ __attribute__((global))
5*dd5d65adSAlex Voicu 
foo(int i)6*dd5d65adSAlex Voicu __global__ void foo(int i) {
7*dd5d65adSAlex Voicu     asm ("addl %2, %1; seto %b0" : "=q" (i), "+g" (i) : "r" (i));
8*dd5d65adSAlex Voicu }
9*dd5d65adSAlex Voicu 
10*dd5d65adSAlex Voicu // CHECK: declare void @__ASM__hipstdpar_unsupported([{{.*}}])
11