mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
d4c615be8c
Discussed here: http://lists.llvm.org/pipermail/llvm-dev/2018-January/120320.html In preparation for adding support for named vregs we are changing the sigil for physical registers in MIR to '$' from '%'. This will prevent name clashes of named physical register with named vregs. llvm-svn: 323922
24 lines
836 B
LLVM
24 lines
836 B
LLVM
; REQUIRES: asserts
|
|
; RUN: llc -verify-machineinstrs -mtriple=x86_64-apple-darwin -debug -o /dev/null < %s 2>&1 | FileCheck %s
|
|
|
|
; We need to make sure that rematerialization into a physical register marks the
|
|
; super- or sub-register as dead after this rematerialization since only the
|
|
; original register is actually used later. Largely irrelevant for a trivial
|
|
; example like this, since eax is never used again, but easy to test.
|
|
|
|
define i8 @test_remat() {
|
|
ret i8 0
|
|
; CHECK: REGISTER COALESCING
|
|
; CHECK: Remat: dead $eax = MOV32r0 implicit-def dead $eflags, implicit-def $al
|
|
}
|
|
|
|
; On the other hand, if it's already the correct width, we really shouldn't be
|
|
; marking the definition register as dead.
|
|
|
|
define i32 @test_remat32() {
|
|
ret i32 0
|
|
; CHECK: REGISTER COALESCING
|
|
; CHECK: Remat: $eax = MOV32r0 implicit-def dead $eflags
|
|
}
|
|
|