Xiaodong Liu 8d798eab16 [LoongArch] Add "32bit" target feature
There are a few intrinsics or instructions on LoongArch
that are only appropriate for loongarch32 target. So the
feature "32bit" is added to implement it.

Reviewed By: SixWeining

Differential Revision: https://reviews.llvm.org/D140872
2023-01-06 09:28:55 +08:00

6 lines
245 B
LLVM

; RUN: llc --mtriple=loongarch64 --mattr=help 2>&1 | FileCheck %s
; RUN: llc --mtriple=loongarch32 --mattr=help 2>&1 | FileCheck %s
; CHECK: Available features for this target:
; CHECK: 32bit - LA32 Basic Integer and Privilege Instruction Set.