llvm.org GIT mirror llvm / 13640e5
Merging r249165: ------------------------------------------------------------------------ r249165 | rdivacky | 2015-10-02 19:25:25 +0100 (Fri, 02 Oct 2015) | 2 lines Actually switch the arch when we see .arch. PR21695 git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_37@252456 91177308-0d34-0410-b5e6-96231b3b80d8 Renato Golin 3 years ago
2 changed file(s) with 17 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1414 #include "llvm/ADT/SmallVector.h"
1515 #include "llvm/ADT/StringExtras.h"
1616 #include "llvm/ADT/StringSwitch.h"
17 #include "llvm/ADT/Triple.h"
1718 #include "llvm/ADT/Twine.h"
1819 #include "llvm/MC/MCAsmInfo.h"
1920 #include "llvm/MC/MCAssembler.h"
91039104 return false;
91049105 }
91059106
9107 Triple T;
9108 STI.setDefaultFeatures(T.getARMCPUForArch(Arch));
9109 setAvailableFeatures(ComputeAvailableFeatures(STI.getFeatureBits()));
9110
91069111 getTargetStreamer().emitArch(ID);
91079112 return false;
91089113 }
0 @ RUN: not llvm-mc -triple arm-gnueabi-linux -filetype asm %s 2>&1 | FileCheck %s
1
2 .arch armv6
3 dsb
4 @ CHECK: error: instruction requires: data-barriers
5
6 .arch armv7
7 dsb
8 @ CHECK-NOT: error: instruction requires: data-barriers
9
10 .arch invalid_architecture_name
11 @ CHECK: error: Unknown arch name