1
1
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2
2
; RUN: llc < %s -verify-machineinstrs -mtriple=x86_64-unknown-unknown --show-mc-encoding -mattr=+usermsr | FileCheck %s --check-prefixes=X64
3
- ; RUN: llc < %s -verify-machineinstrs -mtriple=x86_64-unknown-unknown --show-mc-encoding -mattr=+usermsr,+egpr | FileCheck %s --check-prefixes=EGPR
4
3
5
4
define i64 @test_int_x86_urdmsr (i64 %A ) nounwind {
6
5
; X64-LABEL: test_int_x86_urdmsr:
7
6
; X64: # %bb.0:
8
7
; X64-NEXT: urdmsr %rdi, %rax # encoding: [0xf2,0x0f,0x38,0xf8,0xc7]
9
8
; X64-NEXT: retq # encoding: [0xc3]
10
- ;
11
9
; EGPR-LABEL: test_int_x86_urdmsr:
12
10
; EGPR: # %bb.0:
13
11
; EGPR-NEXT: urdmsr %rdi, %rax # EVEX TO LEGACY Compression encoding: [0xf2,0x0f,0x38,0xf8,0xc7]
@@ -21,7 +19,6 @@ define i64 @test_int_x86_urdmsr_const() nounwind {
21
19
; X64: # %bb.0:
22
20
; X64-NEXT: urdmsr $123, %rax # encoding: [0xc4,0xe7,0x7b,0xf8,0xc0,0x7b,0x00,0x00,0x00]
23
21
; X64-NEXT: retq # encoding: [0xc3]
24
- ;
25
22
; EGPR-LABEL: test_int_x86_urdmsr_const:
26
23
; EGPR: # %bb.0:
27
24
; EGPR-NEXT: urdmsr $123, %rax # EVEX TO VEX Compression encoding: [0xc4,0xe7,0x7b,0xf8,0xc0,0x7b,0x00,0x00,0x00]
@@ -37,7 +34,6 @@ define i64 @test_int_x86_urdmsr_const_i64() nounwind {
37
34
; X64-NEXT: # imm = 0x1FFFFFFFF
38
35
; X64-NEXT: urdmsr %rax, %rax # encoding: [0xf2,0x0f,0x38,0xf8,0xc0]
39
36
; X64-NEXT: retq # encoding: [0xc3]
40
- ;
41
37
; EGPR-LABEL: test_int_x86_urdmsr_const_i64:
42
38
; EGPR: # %bb.0:
43
39
; EGPR-NEXT: movabsq $8589934591, %rax # encoding: [0x48,0xb8,0xff,0xff,0xff,0xff,0x01,0x00,0x00,0x00]
@@ -55,7 +51,6 @@ define void @test_int_x86_uwrmsr(i64 %A, i64 %B) nounwind {
55
51
; X64: # %bb.0:
56
52
; X64-NEXT: uwrmsr %rsi, %rdi # encoding: [0xf3,0x0f,0x38,0xf8,0xfe]
57
53
; X64-NEXT: retq # encoding: [0xc3]
58
- ;
59
54
; EGPR-LABEL: test_int_x86_uwrmsr:
60
55
; EGPR: # %bb.0:
61
56
; EGPR-NEXT: uwrmsr %rsi, %rdi # EVEX TO LEGACY Compression encoding: [0xf3,0x0f,0x38,0xf8,0xfe]
@@ -69,7 +64,6 @@ define void @test_int_x86_uwrmsr_const(i64 %A) nounwind {
69
64
; X64: # %bb.0:
70
65
; X64-NEXT: uwrmsr %rdi, $123 # encoding: [0xc4,0xe7,0x7a,0xf8,0xc7,0x7b,0x00,0x00,0x00]
71
66
; X64-NEXT: retq # encoding: [0xc3]
72
- ;
73
67
; EGPR-LABEL: test_int_x86_uwrmsr_const:
74
68
; EGPR: # %bb.0:
75
69
; EGPR-NEXT: uwrmsr %rdi, $123 # EVEX TO VEX Compression encoding: [0xc4,0xe7,0x7a,0xf8,0xc7,0x7b,0x00,0x00,0x00]
@@ -85,7 +79,6 @@ define void @test_int_x86_uwrmsr_const_i64(i64 %A) nounwind {
85
79
; X64-NEXT: # imm = 0x1FFFFFFFF
86
80
; X64-NEXT: uwrmsr %rdi, %rax # encoding: [0xf3,0x0f,0x38,0xf8,0xc7]
87
81
; X64-NEXT: retq # encoding: [0xc3]
88
- ;
89
82
; EGPR-LABEL: test_int_x86_uwrmsr_const_i64:
90
83
; EGPR: # %bb.0:
91
84
; EGPR-NEXT: movabsq $8589934591, %rax # encoding: [0x48,0xb8,0xff,0xff,0xff,0xff,0x01,0x00,0x00,0x00]
0 commit comments