1*f563bd74SQiu Chaofan // RUN: %clang_cc1 -emit-llvm %s -o - -triple powerpc64le-linux-gnu | FileCheck %s 2*f563bd74SQiu Chaofan // Sadly since this requires a register constraint to trigger we have to set 3*f563bd74SQiu Chaofan // a target here. a(void)4*f563bd74SQiu Chaofanvoid a(void) { 5*f563bd74SQiu Chaofan register unsigned long __sc_0 __asm__("r0"); 6*f563bd74SQiu Chaofan __asm__ __volatile__("mfcr %0" : "=&r"(__sc_0) : "0"(__sc_0)); 7*f563bd74SQiu Chaofan } 8*f563bd74SQiu Chaofan 9*f563bd74SQiu Chaofan // Check that we can generate code for this correctly. The matching input 10*f563bd74SQiu Chaofan // constraint should not have an early clobber on it. 11*f563bd74SQiu Chaofan // CHECK: call i64 asm sideeffect "mfcr $0", "=&{r0},{r0}" 12