1 // RUN: not %clang_cc1 -triple s390x-linux-gnu -O2 -emit-llvm -o - %s 2>&1 \
3 // REQUIRES: systemz-registered-target
5 // Test that an error is given if a physreg is defined by multiple operands.
6 int test_physreg_defs(void) {
7 register int l
__asm__("r7") = 0;
9 // CHECK: error: multiple outputs to hard register: r7
10 __asm__("" : "+r"(l
), "=r"(l
));