llvm.org GIT mirror llvm / 3c4ecd7
[ms-inline asm] Add support for .att_syntax directive. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163542 91177308-0d34-0410-b5e6-96231b3b80d8 Chad Rosier 8 years ago
2 changed file(s) with 8 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
17441744 return ParseDirectiveWord(2, DirectiveID.getLoc());
17451745 else if (IDVal.startswith(".code"))
17461746 return ParseDirectiveCode(IDVal, DirectiveID.getLoc());
1747 else if (IDVal.startswith(".intel_syntax")) {
1747 else if (IDVal.startswith(".att_syntax")) {
1748 getParser().setAssemblerDialect(0);
1749 return false;
1750 } else if (IDVal.startswith(".intel_syntax")) {
17481751 getParser().setAssemblerDialect(1);
17491752 if (getLexer().isNot(AsmToken::EndOfStatement)) {
17501753 if(Parser.getTok().getString() == "noprefix") {
None // RUN: llvm-mc -triple x86_64-unknown-unknown %s | FileCheck %s
0 // RUN: llvm-mc -triple x86_64-unknown-unknown -x86-asm-syntax=att %s | FileCheck %s
11
22 .intel_syntax
33 _test:
44 // CHECK: movl $257, -4(%rsp)
55 mov DWORD PTR [RSP - 4], 257
6
6 .att_syntax
7 // CHECK: movl $257, -4(%rsp)
8 movl $257, -4(%rsp)