brintos

brintos / llvm-project-archived public Read only

0
0
Text · 370 B · 485bf91 Raw
11 lines · cpp
1// RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu \2// RUN:   --hipstdpar -x hip -emit-llvm -fcuda-is-device -o - %s | FileCheck %s3 4#define __global__ __attribute__((global))5 6__global__ void foo(int i) {7    asm ("addl %2, %1; seto %b0" : "=q" (i), "+g" (i) : "r" (i));8}9 10// CHECK: declare void @__ASM__hipstdpar_unsupported([{{.*}}])11