[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / PowerPC / inline-asm-matching-constraint.c
blob45c387f05ce2052da5a98bcb423c776d789ddf9f
1 // RUN: %clang_cc1 -emit-llvm %s -o - -triple powerpc64le-linux-gnu | FileCheck %s
2 // Sadly since this requires a register constraint to trigger we have to set
3 // a target here.
4 void a(void) {
5 register unsigned long __sc_0 __asm__("r0");
6 __asm__ __volatile__("mfcr %0" : "=&r"(__sc_0) : "0"(__sc_0));
9 // Check that we can generate code for this correctly. The matching input
10 // constraint should not have an early clobber on it.
11 // CHECK: call i64 asm sideeffect "mfcr $0", "=&{r0},{r0}"