2016-05-16 17:10:13 +08:00
|
|
|
# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 \
|
2020-07-20 15:39:14 +08:00
|
|
|
# RUN: -mattr=+micromips < /dev/null -o -| llvm-readobj -h - | FileCheck \
|
2016-05-16 17:10:13 +08:00
|
|
|
# RUN: -check-prefix=NO-MM %s
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o - \
|
2020-07-20 15:39:14 +08:00
|
|
|
# RUN: | llvm-readobj -h - | FileCheck %s
|
2014-01-26 14:57:13 +08:00
|
|
|
|
2014-07-17 17:52:56 +08:00
|
|
|
# This *MUST* match the output of 'gcc -c' compiled with the same triple.
|
|
|
|
# CHECK: Flags [ (0x52001004)
|
2016-05-16 17:10:13 +08:00
|
|
|
# NO-MM: Flags [ (0x50001004)
|
2014-01-26 14:57:13 +08:00
|
|
|
|
|
|
|
.set micromips
|
|
|
|
f:
|
|
|
|
nop
|