| commit | ac1263cd54ffaa50d692e1d99c34f16759126cae | [log] [tgz] |
|---|---|---|
| author | Yaxun Liu <Yaxun.Liu@amd.com> | Fri Mar 23 19:43:42 2018 +0000 |
| committer | Yaxun Liu <Yaxun.Liu@amd.com> | Fri Mar 23 19:43:42 2018 +0000 |
| tree | b272bd8d99b17605a6cb809985c9b9edbf1f3eaa | |
| parent | df5d9486aa4e044b0d7954689fa578fae02e06a0 [diff] [blame] |
[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
diff --git a/clang/test/Sema/inline-asm-validate-amdgpu.cl b/clang/test/Sema/inline-asm-validate-amdgpu.cl index bc2580c..51009ec 100644 --- a/clang/test/Sema/inline-asm-validate-amdgpu.cl +++ b/clang/test/Sema/inline-asm-validate-amdgpu.cl
@@ -74,3 +74,8 @@ c[i] = ci; } + +void test_long(int arg0) { + long v15_16; + __asm volatile("v_lshlrev_b64 v[15:16], 0, %0" : "={v[15:16]}"(v15_16) : "v"(arg0)); +}