diff options
author | Sam Parker <sam.parker@arm.com> | 2017-01-31 14:35:01 +0000 |
---|---|---|
committer | Sam Parker <sam.parker@arm.com> | 2017-01-31 14:35:01 +0000 |
commit | d9605fec4b320e4aa38d399ffc6ef3b57fe876af (patch) | |
tree | f9b594ca2afa5d81f2f1355540ea092fc60ba3cb /test/CodeGen/ARM/2009-05-18-InlineAsmMem.ll | |
parent | 3bfb126ba5a90ab977b0dd3c261c00401729796c (diff) |
[ARM] Avoid using ARM instructions in Thumb mode
The Requires class overrides the target requirements of an instruction,
rather than adding to them, so all ARM instructions need to include the
IsARM predicate when they have overwitten requirements.
This caused the swp and swpb instructions to be allowed in thumb mode
assembly, and the ARM encoding of CDP to be selected in codegen (which
is different for conditional instructions).
Differential Revision: https://reviews.llvm.org/D29283
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293634 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/2009-05-18-InlineAsmMem.ll')
-rw-r--r-- | test/CodeGen/ARM/2009-05-18-InlineAsmMem.ll | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/CodeGen/ARM/2009-05-18-InlineAsmMem.ll b/test/CodeGen/ARM/2009-05-18-InlineAsmMem.ll index 5d59fc64d92..e5c2fb4d67a 100644 --- a/test/CodeGen/ARM/2009-05-18-InlineAsmMem.ll +++ b/test/CodeGen/ARM/2009-05-18-InlineAsmMem.ll @@ -1,5 +1,4 @@ ; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s -; RUN: llc -mtriple=thumb-eabi %s -o - | FileCheck %s ; PR4091 define void @foo(i32 %i, i32* %p) nounwind { |