File: lkgs-intel.s

package info (click to toggle)
llvm-toolchain-21 1%3A21.1.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,245,028 kB
  • sloc: cpp: 7,619,726; ansic: 1,434,018; asm: 1,058,748; python: 252,740; f90: 94,671; objc: 70,685; lisp: 42,813; pascal: 18,401; sh: 8,601; ml: 5,111; perl: 4,720; makefile: 3,675; awk: 3,523; javascript: 2,409; xml: 892; fortran: 770
file content (34 lines) | stat: -rw-r--r-- 1,144 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
32
33
34
// RUN: llvm-mc -triple x86_64 -x86-asm-syntax=intel -output-asm-variant=1 --show-encoding %s | FileCheck %s

// CHECK: lkgs ax
// CHECK: encoding: [0xf2,0x0f,0x00,0xf0]
          lkgs ax

// CHECK: lkgs r12w
// CHECK: encoding: [0xf2,0x41,0x0f,0x00,0xf4]
          lkgs r12w

// CHECK: lkgs word ptr [rbp + 8*r14 + 268435456]
// CHECK: encoding: [0xf2,0x42,0x0f,0x00,0xb4,0xf5,0x00,0x00,0x00,0x10]
          lkgs word ptr [rbp + 8*r14 + 268435456]

// CHECK: lkgs word ptr [r8 + 4*rax + 291]
// CHECK: encoding: [0xf2,0x41,0x0f,0x00,0xb4,0x80,0x23,0x01,0x00,0x00]
          lkgs word ptr [r8 + 4*rax + 291]

// CHECK: lkgs word ptr [rip]
// CHECK: encoding: [0xf2,0x0f,0x00,0x35,0x00,0x00,0x00,0x00]
          lkgs word ptr [rip]

// CHECK: lkgs word ptr [2*rbp - 64]
// CHECK: encoding: [0xf2,0x0f,0x00,0x34,0x6d,0xc0,0xff,0xff,0xff]
          lkgs word ptr [2*rbp - 64]

// CHECK: lkgs word ptr [rcx + 254]
// CHECK: encoding: [0xf2,0x0f,0x00,0xb1,0xfe,0x00,0x00,0x00]
          lkgs word ptr [rcx + 254]

// CHECK: lkgs word ptr [rdx - 256]
// CHECK: encoding: [0xf2,0x0f,0x00,0xb2,0x00,0xff,0xff,0xff]
          lkgs word ptr [rdx - 256]