1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=x86_64-linux-gnu -run-pass=legalizer %s -o - | FileCheck %s
5 define void @test_ashr() { ret void }
6 define void @test_ashr_i1() { ret void }
12 regBankSelected: false
13 tracksRegLiveness: true
15 - { id: 0, class: _, preferred-register: '' }
16 - { id: 1, class: _, preferred-register: '' }
17 - { id: 2, class: _, preferred-register: '' }
18 - { id: 3, class: _, preferred-register: '' }
19 - { id: 4, class: _, preferred-register: '' }
20 - { id: 5, class: _, preferred-register: '' }
21 - { id: 6, class: _, preferred-register: '' }
22 - { id: 7, class: _, preferred-register: '' }
23 - { id: 8, class: _, preferred-register: '' }
24 - { id: 9, class: _, preferred-register: '' }
25 - { id: 10, class: _, preferred-register: '' }
26 - { id: 11, class: _, preferred-register: '' }
31 ; CHECK-LABEL: name: test_ashr
32 ; CHECK: liveins: $rdi, $rsi
33 ; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $rdi
34 ; CHECK: [[COPY1:%[0-9]+]]:_(s64) = COPY $rsi
38 %2(s64) = G_ASHR %0, %1
42 %5(s32) = G_ASHR %3, %4
46 %8(s16) = G_ASHR %6, %7
50 %11(s8) = G_ASHR %9, %10
59 regBankSelected: false
60 tracksRegLiveness: true
62 - { id: 0, class: _, preferred-register: '' }
63 - { id: 1, class: _, preferred-register: '' }
64 - { id: 2, class: _, preferred-register: '' }
65 - { id: 3, class: _, preferred-register: '' }
66 - { id: 4, class: _, preferred-register: '' }
71 ; CHECK-LABEL: name: test_ashr_i1
72 ; CHECK: liveins: $rdi, $rsi
73 ; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $rdi
74 ; CHECK: [[COPY1:%[0-9]+]]:_(s64) = COPY $rsi
80 %4(s1) = G_ASHR %2, %3