1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 20:43:44 +02:00
llvm-mirror/test/CodeGen/MIR/X86/dead-register-flag.mir
2015-07-07 20:34:53 +00:00

27 lines
618 B
YAML

# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s | FileCheck %s
# This test ensures that the MIR parser parses the 'dead' register flags
# correctly.
--- |
define i32 @foo(i32 %a) #0 {
body:
%c = mul i32 %a, 11
ret i32 %c
}
attributes #0 = { "no-frame-pointer-elim"="false" }
...
---
name: foo
body:
# CHECK: name: body
- id: 0
name: body
instructions:
# CHECK: - '%eax = IMUL32rri8 %edi, 11, implicit-def dead %eflags'
- '%eax = IMUL32rri8 %edi, 11, implicit-def dead %eflags'
- 'RETQ %eax'
...