mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
221b23dde2
Do not emit a copy if the source and destination registers are the same. Review: Ulrich Weigand llvm-svn: 363665
21 lines
491 B
YAML
21 lines
491 B
YAML
# RUN: llc -mtriple=s390x-linux-gnu -mcpu=z13 -start-before=postrapseudos \
|
|
# RUN: %s -o - | FileCheck %s
|
|
#
|
|
# Test that an AHIMuxK pseudo does not result in a COPY (risbhg) if the
|
|
# source and destination registers are the same.
|
|
|
|
---
|
|
name: fun
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
$r1h = IIHF 0
|
|
renamable $r1h = nuw nsw AHIMuxK killed renamable $r1h, 4, implicit-def dead $cc
|
|
|
|
; CHECK-LABEL: fun
|
|
; CHECK-NOT: risbhg
|
|
; CHECK: aih %r1, 4
|
|
...
|
|
|
|
|