File: intel-syntax-2.s

package info (click to toggle)
llvm-toolchain-6.0 1%3A6.0.1-10
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 598,080 kB
  • sloc: cpp: 3,046,253; ansic: 595,057; asm: 271,965; python: 128,926; objc: 106,554; sh: 21,906; lisp: 10,191; pascal: 6,094; ml: 5,544; perl: 5,265; makefile: 2,227; cs: 2,027; xml: 686; php: 212; csh: 117
file content (31 lines) | stat: -rw-r--r-- 582 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// RUN: llvm-mc -triple x86_64-unknown-unknown -x86-asm-syntax=att %s | FileCheck %s

	.intel_syntax
_test:
// CHECK:	movl	$257, -4(%rsp)
	mov	DWORD PTR [RSP - 4], 257
    .att_syntax
// CHECK:	movl	$257, -4(%rsp)
    movl $257, -4(%rsp)

_test2:
.intel_syntax noprefix
	mov	DWORD PTR [RSP - 4], 255
// CHECK:	movl	$255, -4(%rsp)
.att_syntax prefix
	movl $255, -4(%rsp)
// CHECK:	movl	$255, -4(%rsp)

_test3:
fadd 
// CHECK: faddp %st(1)
fmul
// CHECK: fmulp %st(1)
fsub
// CHECK: fsubp %st(1)
fsubr
// CHECK: fsubrp %st(1)
fdiv
// CHECK: fdivp %st(1)
fdivr
// CHECK: fdivrp %st(1)