brintos

brintos / llvm-project-archived public Read only

0
0
Text · 391 B · 754d7e6 Raw
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