aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenHipStdPar/unsupported-ASM.cpp
blob: 485bf916c899f131f66f2d56f48778d8d34f9fc0 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu \
// RUN:   --hipstdpar -x hip -emit-llvm -fcuda-is-device -o - %s | FileCheck %s

#define __global__ __attribute__((global))

__global__ void foo(int i) {
    asm ("addl %2, %1; seto %b0" : "=q" (i), "+g" (i) : "r" (i));
}

// CHECK: declare void @__ASM__hipstdpar_unsupported([{{.*}}])