• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2# RUN: llc -mtriple=aarch64-unknown-unknown -verify-machineinstrs -O0 -run-pass=regbankselect %s -o - | FileCheck %s
3
4---
5name:            inlineasm_memory_clobber
6alignment:       4
7legalized:       true
8tracksRegLiveness: true
9body:             |
10  bb.1:
11    ; CHECK-LABEL: name: inlineasm_memory_clobber
12    ; CHECK: INLINEASM &"", 25 /* sideeffect mayload maystore attdialect */
13    ; CHECK: INLINEASM &"", 1 /* sideeffect attdialect */
14    ; CHECK: RET_ReallyLR
15    INLINEASM &"", 25
16    INLINEASM &"", 1
17    RET_ReallyLR
18...
19
20---
21name:            inlineasm_register_clobber
22alignment:       4
23legalized:       true
24tracksRegLiveness: true
25body:             |
26  bb.1:
27    ; CHECK-LABEL: name: inlineasm_register_clobber
28    ; CHECK: INLINEASM &"", 25 /* sideeffect mayload maystore attdialect */, 12 /* clobber */, implicit-def early-clobber $d0
29    ; CHECK: RET_ReallyLR
30    INLINEASM &"", 25, 12, implicit-def early-clobber $d0
31    RET_ReallyLR
32...
33
34---
35name:            inlineasm_phys_reg_output
36alignment:       4
37legalized:       true
38tracksRegLiveness: true
39body:             |
40  bb.1:
41    ; CHECK-LABEL: name: inlineasm_phys_reg_output
42    ; CHECK: INLINEASM &"mov ${0:w}, 7", 0 /* attdialect */, 10 /* regdef */, implicit-def $w0
43    ; CHECK: [[COPY:%[0-9]+]]:gpr(s32) = COPY $w0
44    ; CHECK: $w0 = COPY [[COPY]](s32)
45    ; CHECK: RET_ReallyLR implicit $w0
46    INLINEASM &"mov ${0:w}, 7", 0 /* attdialect */, 10 /* regdef */, implicit-def $w0
47    %0:_(s32) = COPY $w0
48    $w0 = COPY %0(s32)
49    RET_ReallyLR implicit $w0
50...
51
52---
53name:            inlineasm_virt_reg_output
54alignment:       4
55legalized:       true
56tracksRegLiveness: true
57body:             |
58  bb.1:
59    ; CHECK-LABEL: name: inlineasm_virt_reg_output
60    ; CHECK: INLINEASM &"mov ${0:w}, 7", 0 /* attdialect */, 655370 /* regdef:GPR32common */, def %0
61    ; CHECK: [[COPY:%[0-9]+]]:gpr(s32) = COPY %0
62    ; CHECK: $w0 = COPY [[COPY]](s32)
63    ; CHECK: RET_ReallyLR implicit $w0
64    INLINEASM &"mov ${0:w}, 7", 0 /* attdialect */, 655370 /* regdef:GPR32common */, def %0:gpr32common
65    %1:_(s32) = COPY %0
66    $w0 = COPY %1(s32)
67    RET_ReallyLR implicit $w0
68...
69
70---
71name:            inlineasm_virt_mixed_types
72alignment:       4
73legalized:       true
74tracksRegLiveness: true
75body:             |
76  bb.1:
77    ; CHECK-LABEL: name: inlineasm_virt_mixed_types
78    ; CHECK: INLINEASM &"mov $0, #0; mov $1, #0", 0 /* attdialect */, 655370 /* regdef:GPR32common */, def %0, 1245194 /* regdef:FPR64 */, def %1
79    ; CHECK: [[COPY:%[0-9]+]]:gpr(s32) = COPY %0
80    ; CHECK: [[COPY1:%[0-9]+]]:fpr(s64) = COPY %1
81    ; CHECK: $d0 = COPY [[COPY1]](s64)
82    ; CHECK: RET_ReallyLR implicit $d0
83    INLINEASM &"mov $0, #0; mov $1, #0", 0 /* attdialect */, 655370 /* regdef:GPR32common */, def %0:gpr32common, 1245194 /* regdef:FPR64 */, def %1:fpr64
84    %3:_(s32) = COPY %0
85    %4:_(s64) = COPY %1
86    $d0 = COPY %4(s64)
87    RET_ReallyLR implicit $d0
88...
89