llvm-project/clang/test/CodeGenOpenCL/inline-asm-amdgcn.cl
Yaxun Liu ac1263cd54 [AMDGPU] Fix codegen for inline assembly
Need to override convertConstraint to recognise amdgpu specific register names.

Differential Revision: https://reviews.llvm.org/D44533

llvm-svn: 328359
2018-03-23 19:43:42 +00:00

9 lines
346 B
Common Lisp

// REQUIRES: amdgpu-registered-target
// RUN: %clang_cc1 -emit-llvm -o - -triple amdgcn %s | FileCheck %s
kernel void test_long(int arg0) {
long v15_16;
// CHECK: tail call i64 asm sideeffect "v_lshlrev_b64 v[15:16], 0, $0", "={v[15:16]},v"(i32 %arg0)
__asm volatile("v_lshlrev_b64 v[15:16], 0, %0" : "={v[15:16]}"(v15_16) : "v"(arg0));
}