llvm/clang/test/Frontend/aarch64-vscale-min.c
Cullen Rhodes 698584f89b [IR] Remove unbounded as possible value for vscale_range minimum
The default for min is changed to 1. The behaviour of -mvscale-{min,max}
in Clang is also changed such that 16 is the max vscale when targeting
SVE and no max is specified.

Reviewed By: sdesmalen, paulwalker-arm

Differential Revision: https://reviews.llvm.org/D113294
2021-12-07 09:52:21 +00:00

11 lines
512 B
C

// -----------------------------------------------------------------------------
// Tests for the -mvscale-min flag
// -----------------------------------------------------------------------------
// Error out if value is unbounded.
// -----------------------------------------------------------------------------
// RUN: not %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve \
// RUN: -mvscale-min=0 2>&1 | FileCheck %s
// CHECK: error: minimum vscale must be an unsigned integer greater than 0