File: movimm-expand-ldst.mir

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,998,520 kB
  • sloc: cpp: 6,951,680; ansic: 1,486,157; asm: 913,598; python: 232,024; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,009; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,167; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (34 lines) | stat: -rw-r--r-- 1,308 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 4
# RUN: llc -mtriple=aarch64 -verify-machineinstrs -run-pass=aarch64-expand-pseudo -run-pass=aarch64-ldst-opt -debug-only=aarch64-ldst-opt %s -o - | FileCheck %s
# REQUIRES: asserts
---
name: test_fold_repeating_constant_load
tracksRegLiveness: true
body:             |
  bb.0:
    liveins: $x0
    ; CHECK-LABEL: name: test_fold_repeating_constant_load
    ; CHECK: liveins: $x0
    ; CHECK-NEXT: {{  $}}
    ; CHECK-NEXT: renamable $x0 = MOVZXi 49370, 0
    ; CHECK-NEXT: renamable $x0 = MOVKXi $x0, 320, 16
    ; CHECK-NEXT: renamable $x0 = ORRXrs $x0, $x0, 32
    ; CHECK-NEXT: RET undef $lr, implicit $x0
    renamable $x0 = MOVi64imm 90284035103834330
    RET_ReallyLR implicit $x0
...
---
name: test_fold_repeating_constant_load_neg
tracksRegLiveness: true
body:             |
  bb.0:
    liveins: $x0
    ; CHECK-LABEL: name: test_fold_repeating_constant_load_neg
    ; CHECK: liveins: $x0
    ; CHECK-NEXT: {{  $}}
    ; CHECK-NEXT: renamable $x0 = MOVZXi 320, 0
    ; CHECK-NEXT: renamable $x0 = MOVKXi $x0, 49370, 16
    ; CHECK-NEXT: renamable $x0 = ORRXrs $x0, $x0, 32
    ; CHECK-NEXT: RET undef $lr, implicit $x0
    renamable $x0 = MOVi64imm -4550323095879417536
    RET_ReallyLR implicit $x0