File: cond-move-11.mir

package info (click to toggle)
llvm-toolchain-21 1%3A21.1.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,245,028 kB
  • sloc: cpp: 7,619,726; ansic: 1,434,018; asm: 1,058,748; python: 252,740; f90: 94,671; objc: 70,685; lisp: 42,813; pascal: 18,401; sh: 8,601; ml: 5,111; perl: 4,720; makefile: 3,675; awk: 3,523; javascript: 2,409; xml: 892; fortran: 770
file content (43 lines) | stat: -rw-r--r-- 1,322 bytes parent folder | download | duplicates (2)
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
35
36
37
38
39
40
41
42
43
# RUN: llc -o - %s -mtriple=s390x-linux-gnu -mcpu=z15 -start-before=systemz-post-rewrite \
# RUN:   -stop-after=machine-cp -verify-machineinstrs 2>&1 | FileCheck %s

# The chained SELRMux:es both has two operands with the same register but
# where one of the operands have been marked as undef (resulting from
# early-ifcvt). Check that the resulting COPY after machine-cp is from $r0l
# to $r2l.

# CHECK:      name: fun0
# CHECK:      $r2l = COPY $r0l
--- |
  
  @Res = global i32 0, align 4
  @Z = global i32 0, align 4
  define signext i32 @fun0() { ret i32 0 }
...
---
name:            fun0
tracksRegLiveness: true
body:             |
  bb.0:
    successors: %bb.1(0x80000000)
  
    renamable $r0l = LRL @Z :: (dereferenceable load (s32) from @Z)
    renamable $r1l = LHIMux 1
  
  bb.1:
    successors: %bb.1(0x7c000000), %bb.2(0x04000000)
    liveins: $r0l, $r1l
  
    CHIMux renamable $r1l, 0, implicit-def $cc
    renamable $r2l = SELRMux undef renamable $r0l, renamable $r0l, 14, 6, implicit $cc
    renamable $r2l = SELRMux undef renamable $r2l, killed renamable $r2l, 14, 6, implicit $cc
    BRC 14, 8, %bb.1, implicit killed $cc
    J %bb.2
  
  bb.2:
    liveins: $r2l
  
    STRL renamable $r2l, @Res :: (store (s32) into @Res)
    renamable $r2d = LGFR killed renamable $r2l
    Return implicit $r2d
...