1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=aarch64 -run-pass aarch64-ldst-opt %s -o - | FileCheck %s
7 tracksRegLiveness: true
9 - { reg: '$x0', virtual-reg: '' }
14 ; CHECK-LABEL: name: LdOffset
17 ; CHECK-NEXT: renamable $w8 = MOVZWi 56952, 0
18 ; CHECK-NEXT: renamable $w8 = MOVKWi $w8, 15, 16, implicit-def $x8
19 ; CHECK-NEXT: renamable $w0 = LDRBBroX killed renamable $x0, killed renamable $x8, 0, 0
20 ; CHECK-NEXT: RET undef $lr, implicit $w0
21 renamable $w8 = MOVZWi 56952, 0
22 renamable $w8 = MOVKWi $w8, 15, 16, implicit-def $x8
23 renamable $w0 = LDRBBroX killed renamable $x0, killed renamable $x8, 0, 0
24 RET undef $lr, implicit $w0
27 # Negative test: the IndexReg missing killed flags
29 name: LdOffset_missing_killed
30 tracksRegLiveness: true
32 - { reg: '$x0', virtual-reg: '' }
37 ; CHECK-LABEL: name: LdOffset_missing_killed
40 ; CHECK-NEXT: renamable $w8 = MOVZWi 56952, 0
41 ; CHECK-NEXT: renamable $w8 = MOVKWi $w8, 15, 16, implicit-def $x8
42 ; CHECK-NEXT: renamable $w0 = LDRBBroX killed renamable $x0, renamable $x8, 0, 0
43 ; CHECK-NEXT: RET undef $lr, implicit $w0
44 renamable $w8 = MOVZWi 56952, 0
45 renamable $w8 = MOVKWi $w8, 15, 16, implicit-def $x8
46 renamable $w0 = LDRBBroX killed renamable $x0, renamable $x8, 0, 0
47 RET undef $lr, implicit $w0