forked from OSchip/llvm-project
41 lines
995 B
YAML
41 lines
995 B
YAML
# RUN: llc -mtriple=x86_64-linux-gnu -global-isel -run-pass=legalizer %s -o - | FileCheck %s
|
|
|
|
--- |
|
|
; ModuleID = '<stdin>'
|
|
source_filename = "<stdin>"
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64--linux-gnu"
|
|
|
|
define i32 @test_add_i32(i32 %arg1, i32 %arg2) {
|
|
%ret = add i32 %arg1, %arg2
|
|
ret i32 %ret
|
|
}
|
|
|
|
...
|
|
---
|
|
name: test_add_i32
|
|
alignment: 4
|
|
legalized: false
|
|
regBankSelected: false
|
|
selected: false
|
|
tracksRegLiveness: true
|
|
registers:
|
|
- { id: 0, class: _ }
|
|
- { id: 1, class: _ }
|
|
- { id: 2, class: _ }
|
|
body: |
|
|
bb.1 (%ir-block.0):
|
|
liveins: %edi, %esi
|
|
; CHECK-LABEL: name: test_add_i32
|
|
; CHECK: [[VAL1:%.*]](s32) = COPY %edi
|
|
; CHECK: [[VAL2:%.*]](s32) = COPY %esi
|
|
; CHECK: [[RES:%.*]](s32) = G_ADD [[VAL1:%.*]], [[VAL2:%.*]]
|
|
|
|
%0(s32) = COPY %edi
|
|
%1(s32) = COPY %esi
|
|
%2(s32) = G_ADD %0, %1
|
|
%eax = COPY %2(s32)
|
|
RET 0, implicit %eax
|
|
|
|
...
|