1 # RUN: llc -mtriple=aarch64-linux-gnu -verify-machineinstrs -run-pass=aarch64-ldst-opt %s -o - | FileCheck %s
3 # The test below tests that when the AArch64 Load Store Optimization pass tries to
4 # convert load instructions into a ldp instruction, and when the destination
5 # registers are sub/super register of each other, then the convertion should not occur.
7 # For example, for the following pattern:
10 # We cannot convert it to an ldp instruction.
13 # CHECK: $x10 = LDRSWui $x9, 0
14 # CHECK: $w10 = LDRWui $x9, 1
18 tracksRegLiveness: true
22 $x10 = LDRSWui $x9, 0 :: (load (s32))
23 $w10 = LDRWui $x9, 1 :: (load (s32))
24 RET undef $lr, implicit undef $w0
27 # CHECK: $w10 = LDRWui $x9, 0
28 # CHECK: $x10 = LDRSWui $x9, 1
32 tracksRegLiveness: true
36 $w10 = LDRWui $x9, 0 :: (load (s32))
37 $x10 = LDRSWui $x9, 1 :: (load (s32))
38 RET undef $lr, implicit undef $w0