This is a pre-commit for modifying `computeTargetABI` logic. This patch will provide warning prompts when using those ABIs that have not yet been standardized. Reviewed By: xen0n, SixWeining Pull Request: https://github.com/llvm/llvm-project/pull/92222
27 lines
1.1 KiB
LLVM
27 lines
1.1 KiB
LLVM
; RUN: llc --mtriple=loongarch32 --mattr=+d --target-abi=ilp32s < %s 2>&1 \
|
|
; RUN: | FileCheck %s -DABI=ilp32s --check-prefixes=CHECK,WARNING
|
|
; RUN: llc --mtriple=loongarch32 --mattr=+d --target-abi=ilp32f < %s 2>&1 \
|
|
; RUN: | FileCheck %s -DABI=ilp32f --check-prefixes=CHECK,WARNING
|
|
; RUN: llc --mtriple=loongarch32 --mattr=+d --target-abi=ilp32d < %s 2>&1 \
|
|
; RUN: | FileCheck %s -DABI=ilp32d --check-prefixes=CHECK,WARNING
|
|
; RUN: llc --mtriple=loongarch64 --mattr=+d --target-abi=lp64f < %s 2>&1 \
|
|
; RUN: | FileCheck %s -DABI=lp64f --check-prefixes=CHECK,WARNING
|
|
|
|
; RUN: llc --mtriple=loongarch64 --mattr=+d --target-abi=lp64s < %s 2>&1 \
|
|
; RUN: | FileCheck %s --check-prefixes=CHECK,NO-WARNING
|
|
; RUN: llc --mtriple=loongarch64 --mattr=+d --target-abi=lp64d < %s 2>&1 \
|
|
; RUN: | FileCheck %s --check-prefixes=CHECK,NO-WARNING
|
|
|
|
;; Check if the ABI has been standardized; issue a warning if it hasn't.
|
|
|
|
; WARNING: warning: '[[ABI]]' has not been standardized
|
|
|
|
; NO-WARNING-NOT: warning
|
|
|
|
define void @nothing() nounwind {
|
|
; CHECK-LABEL: nothing:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: ret
|
|
ret void
|
|
}
|