Skip to content

Commit c5a7a93

Browse files
committed
[NFCI][bolt][test] Enable AT&T syntax explicitly
Files using the Intel syntax typically explicitly specify it. Do the same for the few relevant files for AT&T. This enables building LLVM with `-mllvm -x86-asm-syntax=intel` in one's Clang config files (i.e. a global preference for Intel syntax).
1 parent 96a5289 commit c5a7a93

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

bolt/test/runtime/X86/Inputs/basic-instrumentation.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.att_syntax
12
.globl main
23
.type main, %function
34
main:

bolt/test/runtime/X86/Inputs/internalcall.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// This is reduced test case for BOLT containing an internal call based on
22
// GetCoreDump (from google core dumper).
33

4+
.att_syntax
45
.text
56
.globl getCallback
67
.type getCallback, %function

bolt/test/runtime/X86/Inputs/pie-exceptions-failed-split.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
# return !throw_test(argc, argv);
5050
# }
5151

52+
.att_syntax
5253
.text
5354
.file "exceptions-failed-split.cpp"
5455
.globl _Z3bari # -- Begin function _Z3bari

bolt/test/runtime/X86/exceptions-lpstart-zero.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
# The exception table was modified with udata4 LPStartEncoding and sdata4
2222
# CallSiteEncoding.
2323

24+
.att_syntax
2425
.text
2526
.globl main # -- Begin function main
2627
.p2align 4, 0x90

0 commit comments

Comments
 (0)