mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
dd3894aa8f
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221277 91177308-0d34-0410-b5e6-96231b3b80d8
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
|