llvm-for-llvmta/test/tools/llc/binutils-version.ll

14 lines
743 B
LLVM

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