xref: /llvm-project/llvm/test/MC/X86/segment-prefix.s (revision e22295385c7fb1104620a497da8eab935768fd78)
1# RUN: llvm-mc %s -triple x86_64-linux-gnu -filetype=obj -o - | llvm-objdump -d - | FileCheck %s
2
3.text
4.global foo
5foo:
6	cs outsl
7	ds outsl
8	es outsw
9	fs outsw
10	gs outsl
11	ss outsl
12	retq
13
14# CHECK: <foo>:
15# CHECK-NEXT: 2e 6f                         outsl  %cs:(%rsi), %dx
16# CHECK-NEXT: 3e 6f                         outsl  %ds:(%rsi), %dx
17# CHECK-NEXT: 26 66 6f                      outsw  %es:(%rsi), %dx
18# CHECK-NEXT: 64 66 6f                      outsw  %fs:(%rsi), %dx
19# CHECK-NEXT: 65 6f                         outsl  %gs:(%rsi), %dx
20# CHECK-NEXT: 36 6f                         outsl  %ss:(%rsi), %dx
21