Debian Codegraph @

clang/test/CodeGen/AArch64/sve-inline-asm-negative-test.c

raw
1 // REQUIRES: aarch64-registered-target
2
3 // RUN: not %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve \
4 // RUN: -target-feature +neon -S -O1 -o - %s | FileCheck %s
5
6 // Assembler error
7 // Output constraint : Set a vector constraint on an integer
8 __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: funcB2
21 // CHECK-ERROR: error: invalid operand for instruction