llvm/test/CodeGen/Mips/micromips-ase-function-attribute.ll
Aleksandar Beserminji ba397bccd4 [mips] Set microMIPS ASE flag
This patch fixes an issue where microMIPS ASE flag is not set
when a function has micromips attribute or when .set micromips
directive is used.

Differential Revision: https://reviews.llvm.org/D40316



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318948 91177308-0d34-0410-b5e6-96231b3b80d8
2017-11-24 14:00:47 +00:00

12 lines
275 B
LLVM

; RUN: llc -mtriple=mips-unknown-linux -filetype=obj %s -o - | \
; RUN: llvm-readobj -mips-abi-flags | \
; RUN: FileCheck --check-prefix=ASE-MICROMIPS %s
define void @_Z3foov() #0 {
entry:
ret void
}
attributes #0 = { "micromips" }
; ASE-MICROMIPS: microMIPS (0x800)