1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -verify-machineinstrs -mtriple aarch64-unknown-uknown -global-isel -run-pass=instruction-select %s -o - | FileCheck %s
10 tracksRegLiveness: true
13 liveins: $w0, $w1, $x2
15 ; CHECK-LABEL: name: uaddo_s32
16 ; CHECK: liveins: $w0, $w1, $x2
17 ; CHECK: [[COPY:%[0-9]+]]:gpr32 = COPY $w0
18 ; CHECK: [[COPY1:%[0-9]+]]:gpr32 = COPY $w1
19 ; CHECK: [[ADDSWrr:%[0-9]+]]:gpr32 = ADDSWrr [[COPY]], [[COPY1]], implicit-def $nzcv
20 ; CHECK: [[CSINCWr:%[0-9]+]]:gpr32 = CSINCWr $wzr, $wzr, 3, implicit $nzcv
21 ; CHECK: [[UBFMWri:%[0-9]+]]:gpr32 = UBFMWri [[CSINCWr]], 0, 0
22 ; CHECK: [[UBFMWri1:%[0-9]+]]:gpr32 = UBFMWri [[UBFMWri]], 0, 7
23 ; CHECK: $w0 = COPY [[UBFMWri1]]
24 ; CHECK: RET_ReallyLR implicit $w0
25 %0:gpr(s32) = COPY $w0
26 %1:gpr(s32) = COPY $w1
27 %3:gpr(s32), %4:gpr(s1) = G_UADDO %0, %1
28 %5:gpr(s8) = G_ZEXT %4(s1)
29 %6:gpr(s32) = G_ZEXT %5(s8)
31 RET_ReallyLR implicit $w0
39 tracksRegLiveness: true
42 liveins: $x0, $x1, $x2
44 ; CHECK-LABEL: name: uaddo_s64
45 ; CHECK: liveins: $x0, $x1, $x2
46 ; CHECK: [[COPY:%[0-9]+]]:gpr64 = COPY $x0
47 ; CHECK: [[COPY1:%[0-9]+]]:gpr64 = COPY $x1
48 ; CHECK: [[ADDSXrr:%[0-9]+]]:gpr64 = ADDSXrr [[COPY]], [[COPY1]], implicit-def $nzcv
49 ; CHECK: [[CSINCWr:%[0-9]+]]:gpr32 = CSINCWr $wzr, $wzr, 3, implicit $nzcv
50 ; CHECK: [[UBFMWri:%[0-9]+]]:gpr32 = UBFMWri [[CSINCWr]], 0, 0
51 ; CHECK: [[UBFMWri1:%[0-9]+]]:gpr32 = UBFMWri [[UBFMWri]], 0, 7
52 ; CHECK: $w0 = COPY [[UBFMWri1]]
53 ; CHECK: RET_ReallyLR implicit $w0
54 %0:gpr(s64) = COPY $x0
55 %1:gpr(s64) = COPY $x1
56 %3:gpr(s64), %4:gpr(s1) = G_UADDO %0, %1
57 %5:gpr(s8) = G_ZEXT %4(s1)
58 %6:gpr(s32) = G_ZEXT %5(s8)
60 RET_ReallyLR implicit $w0