blob: 7e66c9242679aea5c670bc0d97e332a88ea47067 [file] [log] [blame] [edit]
# REQUIRES: x86-registered-target
# RUN: llvm-ir2vec entities --mode=mir %s -o - | FileCheck %s
# CHECK: AAA 0
# CHECK: VirtReg_TILE {{[0-9]+}}
--- |
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define dso_local noundef i32 @test_function(i32 noundef %a) {
entry:
ret i32 %a
}
...
---
name: test_function
alignment: 16
tracksRegLiveness: true
registers:
- { id: 0, class: gr32 }
liveins:
- { reg: '$edi', virtual-reg: '%0' }
body: |
bb.0.entry:
liveins: $edi
%0:gr32 = COPY $edi
$eax = COPY %0
RET 0, $eax