55 lines
2.2 KiB
Plaintext
55 lines
2.2 KiB
Plaintext
|
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
||
|
# RUN: llc -mtriple aarch64 -verify-machineinstrs -run-pass=legalizer -debugify-and-strip-all-safe %s -o - | FileCheck %s
|
||
|
|
||
|
---
|
||
|
name: test_scalar_saddo_small
|
||
|
body: |
|
||
|
bb.0.entry:
|
||
|
; CHECK-LABEL: name: test_scalar_saddo_small
|
||
|
; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $x0
|
||
|
; CHECK: [[COPY1:%[0-9]+]]:_(s64) = COPY $x1
|
||
|
; CHECK: [[TRUNC:%[0-9]+]]:_(s32) = G_TRUNC [[COPY]](s64)
|
||
|
; CHECK: [[SEXT_INREG:%[0-9]+]]:_(s32) = G_SEXT_INREG [[TRUNC]], 8
|
||
|
; CHECK: [[TRUNC1:%[0-9]+]]:_(s32) = G_TRUNC [[COPY1]](s64)
|
||
|
; CHECK: [[SEXT_INREG1:%[0-9]+]]:_(s32) = G_SEXT_INREG [[TRUNC1]], 8
|
||
|
; CHECK: [[ADD:%[0-9]+]]:_(s32) = G_ADD [[SEXT_INREG]], [[SEXT_INREG1]]
|
||
|
; CHECK: [[TRUNC2:%[0-9]+]]:_(s8) = G_TRUNC [[ADD]](s32)
|
||
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY [[ADD]](s32)
|
||
|
; CHECK: [[SEXT_INREG2:%[0-9]+]]:_(s32) = G_SEXT_INREG [[COPY2]], 8
|
||
|
; CHECK: [[ICMP:%[0-9]+]]:_(s32) = G_ICMP intpred(ne), [[ADD]](s32), [[SEXT_INREG2]]
|
||
|
; CHECK: [[COPY3:%[0-9]+]]:_(s8) = COPY [[TRUNC2]](s8)
|
||
|
; CHECK: [[ANYEXT:%[0-9]+]]:_(s64) = G_ANYEXT [[ADD]](s32)
|
||
|
; CHECK: [[ANYEXT1:%[0-9]+]]:_(s64) = G_ANYEXT [[ICMP]](s32)
|
||
|
; CHECK: $x0 = COPY [[ANYEXT]](s64)
|
||
|
; CHECK: $x1 = COPY [[ANYEXT1]](s64)
|
||
|
%0:_(s64) = COPY $x0
|
||
|
%1:_(s64) = COPY $x1
|
||
|
%2:_(s8) = G_TRUNC %0(s64)
|
||
|
%3:_(s8) = G_TRUNC %1(s64)
|
||
|
%4:_(s8), %5:_(s1) = G_SADDO %2, %3
|
||
|
%6:_(s64) = G_ANYEXT %4(s8)
|
||
|
%7:_(s64) = G_ANYEXT %5(s1)
|
||
|
$x0 = COPY %6(s64)
|
||
|
$x1 = COPY %7(s64)
|
||
|
|
||
|
...
|
||
|
---
|
||
|
name: test_scalar_saddo_32
|
||
|
body: |
|
||
|
bb.0.entry:
|
||
|
; CHECK-LABEL: name: test_scalar_saddo_32
|
||
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $w0
|
||
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $w1
|
||
|
; CHECK: [[SADDO:%[0-9]+]]:_(s32), [[SADDO1:%[0-9]+]]:_(s1) = G_SADDO [[COPY]], [[COPY1]]
|
||
|
; CHECK: [[ANYEXT:%[0-9]+]]:_(s32) = G_ANYEXT [[SADDO1]](s1)
|
||
|
; CHECK: $w0 = COPY [[SADDO]](s32)
|
||
|
; CHECK: $w1 = COPY [[ANYEXT]](s32)
|
||
|
%0:_(s32) = COPY $w0
|
||
|
%1:_(s32) = COPY $w1
|
||
|
%2:_(s32), %3:_(s1) = G_SADDO %0, %1
|
||
|
%4:_(s32) = G_ANYEXT %3
|
||
|
$w0 = COPY %2(s32)
|
||
|
$w1 = COPY %4(s32)
|
||
|
|
||
|
...
|