brintos

brintos / llvm-project-archived public Read only

0
0
Text · 478 B · 5f551fc Raw
22 lines · c
1// REQUIRES: aarch64-registered-target2 3// RUN: not %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve \4// RUN:   -target-feature +neon -S -O1 -o - %s | FileCheck %s5 6// Assembler error7// Output constraint : Set a vector constraint on an integer8__SVFloat32_t funcB2()9{10  __SVFloat32_t ret ;11  asm volatile (12    "fmov %[ret], wzr \n"13    : [ret] "=w" (ret)14    :15    :);16 17  return ret ;18}19 20// CHECK: funcB221// CHECK-ERROR: error: invalid operand for instruction22