mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
93fe1e2fb1
Summary: Appropriately set/clear the FeatureBit for Mips16 when these assembler directives are used and also emit ".set nomips16" (previously, only ".set mips16" was being emitted). These improvements allow for better testing of the .cpload/.cprestore assembler directives (which are not supposed to work when Mips16 is enabled). Test Plan: The test is bare-bones because there are no MC tests for Mips16 instructions (there's only one, which checks that the Mips16 ELF header flag gets set), and that suggests to me that it has not been implemented yet in the IAS. Reviewers: dsanders Reviewed By: dsanders Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D5462 llvm-svn: 221277
11 lines
227 B
ArmAsm
11 lines
227 B
ArmAsm
# RUN: llvm-mc %s -arch=mips | FileCheck %s
|
|
# FIXME: Update this test when we have a more mature implementation of Mips16 in the IAS.
|
|
|
|
.text
|
|
.set mips16
|
|
.set nomips16
|
|
|
|
# CHECK: .text
|
|
# CHECK: .set mips16
|
|
# CHECK: .set nomips16
|