1 # RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass aarch64-ldst-opt -verify-machineinstrs -o - %s | FileCheck %s
3 # CHECK-LABEL: name: test_LDURSi_post
4 # CHECK: LDRSpost %x0, -4
11 %x0 = SUBXri %x0, 4, 0
12 RET_ReallyLR implicit %x0
14 # CHECK-LABEL: name: test_LDURDi_post
15 # CHECK: LDRDpost %x0, -4
16 name: test_LDURDi_post
22 %x0 = SUBXri %x0, 4, 0
23 RET_ReallyLR implicit %x0
25 # CHECK-LABEL: name: test_LDURQi_post
26 # CHECK: LDRQpost %x0, -4
27 name: test_LDURQi_post
33 %x0 = SUBXri %x0, 4, 0
34 RET_ReallyLR implicit %x0
36 # CHECK-LABEL: name: test_LDURWi_post
37 # CHECK: LDRWpost %x0, -4
38 name: test_LDURWi_post
44 %x0 = SUBXri %x0, 4, 0
45 RET_ReallyLR implicit %x0
47 # CHECK-LABEL: name: test_LDURXi_post
48 # CHECK: %x1 = LDRXpost %x0, -4
49 name: test_LDURXi_post
55 %x0 = SUBXri %x0, 4, 0
56 RET_ReallyLR implicit %x0
58 # CHECK-LABEL: name: test_STURSi_post
59 # CHECK: STRSpost %s0, %x0, -4
60 name: test_STURSi_post
67 %x0 = SUBXri %x0, 4, 0
68 RET_ReallyLR implicit %x0
70 # CHECK-LABEL: name: test_STURDi_post
71 # CHECK: STRDpost %d0, %x0, -4
72 name: test_STURDi_post
79 %x0 = SUBXri %x0, 4, 0
80 RET_ReallyLR implicit %x0
82 # CHECK-LABEL: name: test_STURQi_post
83 # CHECK: STRQpost %q0, %x0, -4
84 name: test_STURQi_post
91 %x0 = SUBXri %x0, 4, 0
92 RET_ReallyLR implicit %x0
94 # CHECK-LABEL: name: test_STURWi_post
95 # CHECK: STRWpost %wzr, %x0, -4
96 name: test_STURWi_post
102 %x0 = SUBXri %x0, 4, 0
103 RET_ReallyLR implicit %x0
105 # CHECK-LABEL: name: test_STURXi_post
106 # CHECK: STRXpost %xzr, %x0, -4
107 name: test_STURXi_post
113 %x0 = SUBXri %x0, 4, 0
114 RET_ReallyLR implicit %x0