1*fea49571SAlex Bradbury; RUN: llc -mtriple=riscv32 -target-abi foo < %s 2>&1 \ 2*fea49571SAlex Bradbury; RUN: | FileCheck -check-prefix=RV32I-FOO %s 3*fea49571SAlex Bradbury; RUN: llc -mtriple=riscv32 -mattr=+f -target-abi ilp32foof < %s 2>&1 \ 4*fea49571SAlex Bradbury; RUN: | FileCheck -check-prefix=RV32IF-ILP32FOOF %s 5*fea49571SAlex Bradbury 6*fea49571SAlex Bradbury; RV32I-FOO: 'foo' is not a recognized ABI for this target (ignoring target-abi) 7*fea49571SAlex Bradbury; RV32IF-ILP32FOOF: 'ilp32foof' is not a recognized ABI for this target (ignoring target-abi) 8*fea49571SAlex Bradbury 9*fea49571SAlex Bradbury; RUN: llc -mtriple=riscv64 -target-abi ilp32 < %s 2>&1 \ 10*fea49571SAlex Bradbury; RUN: | FileCheck -check-prefix=RV64I-ILP32 %s 11*fea49571SAlex Bradbury; RUN: llc -mtriple=riscv64 -mattr=+f -target-abi ilp32f < %s 2>&1 \ 12*fea49571SAlex Bradbury; RUN: | FileCheck -check-prefix=RV64IF-ILP32F %s 13*fea49571SAlex Bradbury; RUN: llc -mtriple=riscv64 -mattr=+d -target-abi ilp32d < %s 2>&1 \ 14*fea49571SAlex Bradbury; RUN: | FileCheck -check-prefix=RV64IFD-ILP32D %s 15*fea49571SAlex Bradbury; RUN: llc -mtriple=riscv64 -target-abi ilp32e < %s 2>&1 \ 16*fea49571SAlex Bradbury; RUN: | FileCheck -check-prefix=RV64I-ILP32E %s 17*fea49571SAlex Bradbury 18*fea49571SAlex Bradbury; RV64I-ILP32: 32-bit ABIs are not supported for 64-bit targets (ignoring target-abi) 19*fea49571SAlex Bradbury; RV64IF-ILP32F: 32-bit ABIs are not supported for 64-bit targets (ignoring target-abi) 20*fea49571SAlex Bradbury; RV64IFD-ILP32D: 32-bit ABIs are not supported for 64-bit targets (ignoring target-abi) 21*fea49571SAlex Bradbury; RV64I-ILP32E: 32-bit ABIs are not supported for 64-bit targets (ignoring target-abi) 22*fea49571SAlex Bradbury 23*fea49571SAlex Bradbury; RUN: llc -mtriple=riscv32 -target-abi lp64 < %s 2>&1 \ 24*fea49571SAlex Bradbury; RUN: | FileCheck -check-prefix=RV32I-LP64 %s 25*fea49571SAlex Bradbury; RUN: llc -mtriple=riscv32 -mattr=+f -target-abi lp64f < %s 2>&1 \ 26*fea49571SAlex Bradbury; RUN: | FileCheck -check-prefix=RV32IF-LP64F %s 27*fea49571SAlex Bradbury; RUN: llc -mtriple=riscv32 -mattr=+d -target-abi lp64d < %s 2>&1 \ 28*fea49571SAlex Bradbury; RUN: | FileCheck -check-prefix=RV32IFD-LP64D %s 29*fea49571SAlex Bradbury 30*fea49571SAlex Bradbury; RV32I-LP64: 64-bit ABIs are not supported for 32-bit targets (ignoring target-abi) 31*fea49571SAlex Bradbury; RV32IF-LP64F: 64-bit ABIs are not supported for 32-bit targets (ignoring target-abi) 32*fea49571SAlex Bradbury; RV32IFD-LP64D: 64-bit ABIs are not supported for 32-bit targets (ignoring target-abi) 33*fea49571SAlex Bradbury 34*fea49571SAlex Bradbury; RUN: llc -mtriple=riscv32 -target-abi ilp32f < %s 2>&1 \ 35*fea49571SAlex Bradbury; RUN: | FileCheck -check-prefix=RV32I-ILP32F %s 36*fea49571SAlex Bradbury; RUN: llc -mtriple=riscv64 -target-abi lp64f < %s 2>&1 \ 37*fea49571SAlex Bradbury; RUN: | FileCheck -check-prefix=RV64I-LP64F %s 38*fea49571SAlex Bradbury 39*fea49571SAlex Bradbury; RV32I-ILP32F: Hard-float 'f' ABI can't be used for a target that doesn't support the F instruction set extension (ignoring target-abi) 40*fea49571SAlex Bradbury; RV64I-LP64F: Hard-float 'f' ABI can't be used for a target that doesn't support the F instruction set extension (ignoring target-abi) 41*fea49571SAlex Bradbury 42*fea49571SAlex Bradbury; RUN: llc -mtriple=riscv32 -target-abi ilp32d < %s 2>&1 \ 43*fea49571SAlex Bradbury; RUN: | FileCheck -check-prefix=RV32I-ILP32D %s 44*fea49571SAlex Bradbury; RUN: llc -mtriple=riscv32 -mattr=+f -target-abi ilp32d < %s 2>&1 \ 45*fea49571SAlex Bradbury; RUN: | FileCheck -check-prefix=RV32IF-ILP32D %s 46*fea49571SAlex Bradbury; RUN: llc -mtriple=riscv64 -target-abi lp64d < %s 2>&1 \ 47*fea49571SAlex Bradbury; RUN: | FileCheck -check-prefix=RV64I-LP64D %s 48*fea49571SAlex Bradbury; RUN: llc -mtriple=riscv64 -mattr=+f -target-abi lp64d < %s 2>&1 \ 49*fea49571SAlex Bradbury; RUN: | FileCheck -check-prefix=RV64IF-LP64D %s 50*fea49571SAlex Bradbury 51*fea49571SAlex Bradbury; RV32I-ILP32D: Hard-float 'd' ABI can't be used for a target that doesn't support the D instruction set extension (ignoring target-abi) 52*fea49571SAlex Bradbury; RV32IF-ILP32D: Hard-float 'd' ABI can't be used for a target that doesn't support the D instruction set extension (ignoring target-abi) 53*fea49571SAlex Bradbury; RV64I-LP64D: Hard-float 'd' ABI can't be used for a target that doesn't support the D instruction set extension (ignoring target-abi) 54*fea49571SAlex Bradbury; RV64IF-LP64D: Hard-float 'd' ABI can't be used for a target that doesn't support the D instruction set extension (ignoring target-abi) 55*fea49571SAlex Bradbury 56*fea49571SAlex Bradburydefine void @nothing() nounwind { 57*fea49571SAlex Bradbury ret void 58*fea49571SAlex Bradbury} 59