diff options
author | Aleksandar Beserminji <Aleksandar.Beserminji@mips.com> | 2017-11-24 14:00:47 +0000 |
---|---|---|
committer | Aleksandar Beserminji <Aleksandar.Beserminji@mips.com> | 2017-11-24 14:00:47 +0000 |
commit | 590f0793e8c7f25a7d993031436928823cd2c95a (patch) | |
tree | e5c79e6bbd8327ed4c47227190cfdc10dd82b9c4 /llvm/test/CodeGen/Mips/micromips-ase-function-attribute.ll | |
parent | dd2f1c993e1f870fce490e47e5f9ef8acf23ada1 (diff) | |
download | bcm5719-llvm-590f0793e8c7f25a7d993031436928823cd2c95a.tar.gz bcm5719-llvm-590f0793e8c7f25a7d993031436928823cd2c95a.zip |
[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
llvm-svn: 318948
Diffstat (limited to 'llvm/test/CodeGen/Mips/micromips-ase-function-attribute.ll')
-rw-r--r-- | llvm/test/CodeGen/Mips/micromips-ase-function-attribute.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Mips/micromips-ase-function-attribute.ll b/llvm/test/CodeGen/Mips/micromips-ase-function-attribute.ll new file mode 100644 index 00000000000..bbb6ff56ea9 --- /dev/null +++ b/llvm/test/CodeGen/Mips/micromips-ase-function-attribute.ll @@ -0,0 +1,11 @@ +; 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) |