1 ;; Test valid and invalid -binutils-version values.
2 ; REQUIRES: default_triple
3 ; RUN: llc %s -filetype=null -binutils-version=none
4 ; RUN: llc %s -filetype=null -binutils-version=2
5 ; RUN: llc %s -filetype=null -binutils-version=2.35
7 ;; Disallow -binutils-version=0 because we use $major==0 to indicate the MC
9 ; RUN: not llc %s -filetype=null -binutils-version=0 2>&1 | FileCheck %s --check-prefix=ERR
10 ; RUN: not llc %s -filetype=null -binutils-version=nan 2>&1 | FileCheck %s --check-prefix=ERR
11 ; RUN: not llc %s -filetype=null -binutils-version=2. 2>&1 | FileCheck %s --check-prefix=ERR
12 ; RUN: not llc %s -filetype=null -binutils-version=3.-14 2>&1 | FileCheck %s --check-prefix=ERR
14 ; ERR: error: invalid -binutils-version, accepting 'none' or major.minor