Skip to content

Commit ec943d4

Browse files
committed
Use intel syntax
1 parent 1a9163a commit ec943d4

File tree

5 files changed

+25
-20
lines changed

5 files changed

+25
-20
lines changed

tests/assembly/test_msg_send_zero_cost/expected/i386-apple-ios.s

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
.section __TEXT,__text,regular,pure_instructions
22
.ios_version_min 7, 0
3+
.intel_syntax noprefix
34
.globl _handle
45
.p2align 4, 0x90
56
_handle:
67
.cfi_startproc
7-
pushl %ebp
8+
push ebp
89
.cfi_def_cfa_offset 8
9-
.cfi_offset %ebp, -8
10-
movl %esp, %ebp
11-
.cfi_def_cfa_register %ebp
12-
popl %ebp
10+
.cfi_offset ebp, -8
11+
mov ebp, esp
12+
.cfi_def_cfa_register ebp
13+
pop ebp
1314
jmp _objc_msgSend
1415
.cfi_endproc
1516

tests/assembly/test_msg_send_zero_cost/expected/i686-apple-darwin.s

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
.section __TEXT,__text,regular,pure_instructions
22
.macosx_version_min 10, 7
3+
.intel_syntax noprefix
34
.globl _handle
45
.p2align 4, 0x90
56
_handle:
67
.cfi_startproc
7-
pushl %ebp
8+
push ebp
89
.cfi_def_cfa_offset 8
9-
.cfi_offset %ebp, -8
10-
movl %esp, %ebp
11-
.cfi_def_cfa_register %ebp
12-
popl %ebp
10+
.cfi_offset ebp, -8
11+
mov ebp, esp
12+
.cfi_def_cfa_register ebp
13+
pop ebp
1314
jmp _objc_msgSend
1415
.cfi_endproc
1516

tests/assembly/test_msg_send_zero_cost/expected/x86_64-apple-darwin.s

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
.section __TEXT,__text,regular,pure_instructions
22
.macosx_version_min 10, 7
3+
.intel_syntax noprefix
34
.globl _handle
45
.p2align 4, 0x90
56
_handle:
67
.cfi_startproc
7-
pushq %rbp
8+
push rbp
89
.cfi_def_cfa_offset 16
9-
.cfi_offset %rbp, -16
10-
movq %rsp, %rbp
11-
.cfi_def_cfa_register %rbp
12-
popq %rbp
10+
.cfi_offset rbp, -16
11+
mov rbp, rsp
12+
.cfi_def_cfa_register rbp
13+
pop rbp
1314
jmp _objc_msgSend
1415
.cfi_endproc
1516

tests/assembly/test_msg_send_zero_cost/expected/x86_64-apple-ios.s

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
.section __TEXT,__text,regular,pure_instructions
22
.ios_version_min 7, 0
3+
.intel_syntax noprefix
34
.globl _handle
45
.p2align 4, 0x90
56
_handle:
67
.cfi_startproc
7-
pushq %rbp
8+
push rbp
89
.cfi_def_cfa_offset 16
9-
.cfi_offset %rbp, -16
10-
movq %rsp, %rbp
11-
.cfi_def_cfa_register %rbp
12-
popq %rbp
10+
.cfi_offset rbp, -16
11+
mov rbp, rsp
12+
.cfi_def_cfa_register rbp
13+
pop rbp
1314
jmp _objc_msgSend
1415
.cfi_endproc
1516

tests/src/bin/test_assembly.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ fn main() {
7070
.arg("--message-format=json-render-diagnostics")
7171
.arg("--")
7272
.arg("--emit=asm")
73+
.arg("-Cllvm-args=--x86-asm-syntax=intel")
7374
.stdout(Stdio::piped())
7475
.stderr(Stdio::inherit())
7576
.output()

0 commit comments

Comments
 (0)