14 lines · c
1// RUN: not %clang_cc1 -triple s390x-linux-gnu -O2 -emit-llvm -o - %s 2>&1 \2// RUN: | FileCheck %s3// REQUIRES: systemz-registered-target4 5// Test that an error is given if a physreg is defined by multiple operands.6int test_physreg_defs(void) {7 register int l __asm__("r7") = 0;8 9 // CHECK: error: multiple outputs to hard register: r710 __asm__("" : "+r"(l), "=r"(l));11 12 return l;13}14