mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-21 21:41:43 +00:00

Summary: This fixes PR27682. Additionally, '.set micromips' by itself is not sufficient to raise the EF_MIPS_MICROMIPS flag. It is also necessary to emit a microMIPS instruction. This has also been fixed. Reviewers: sdardis, vkalintiris, rafael Subscribers: rafael, dsanders, sdardis, llvm-commits Differential Revision: http://reviews.llvm.org/D20214 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269639 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
483 B
ArmAsm
14 lines
483 B
ArmAsm
# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 \
|
|
# RUN: -mattr=+micromips < /dev/null -o -| llvm-readobj -h | FileCheck \
|
|
# RUN: -check-prefix=NO-MM %s
|
|
# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o - \
|
|
# RUN: | llvm-readobj -h | FileCheck %s
|
|
|
|
# This *MUST* match the output of 'gcc -c' compiled with the same triple.
|
|
# CHECK: Flags [ (0x52001004)
|
|
# NO-MM: Flags [ (0x50001004)
|
|
|
|
.set micromips
|
|
f:
|
|
nop
|