1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+movdiri --show-mc-encoding | FileCheck %s
3 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+movdiri,+egpr --show-mc-encoding | FileCheck %s -check-prefix=EGPR
5 define void @test_movdiri(ptr %p, i64 %v) {
6 ; CHECK-LABEL: test_movdiri:
7 ; CHECK: # %bb.0: # %entry
8 ; CHECK-NEXT: movdiri %rsi, (%rdi) # encoding: [0x48,0x0f,0x38,0xf9,0x37]
9 ; CHECK-NEXT: retq # encoding: [0xc3]
11 ; EGPR-LABEL: test_movdiri:
12 ; EGPR: # %bb.0: # %entry
13 ; EGPR-NEXT: movdiri %rsi, (%rdi) # EVEX TO LEGACY Compression encoding: [0x48,0x0f,0x38,0xf9,0x37]
14 ; EGPR-NEXT: retq # encoding: [0xc3]
16 call void @llvm.x86.directstore64(ptr %p, i64 %v)
20 declare void @llvm.x86.directstore64(ptr, i64)