1 ; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 ; RUN: llc -stop-after=finalize-isel -mtriple=x86_64-unknown < %s 2>&1 | FileCheck %s
4 ; CHECK-LABEL: name: const
5 ; CHECK: bb.0 (%ir-block.0):
6 ; CHECK-NEXT: [[MOV32ri:%[0-9]+]]:gr32 = MOV32ri 1
7 ; CHECK-NEXT: $eax = COPY [[MOV32ri]]
8 ; CHECK-NEXT: RET 0, $eax
13 define i32 @fold(i32 %x) {
14 ; CHECK-LABEL: name: fold
15 ; CHECK: bb.0 (%ir-block.0):
16 ; CHECK-NEXT: liveins: $edi
18 ; CHECK-NEXT: [[COPY:%[0-9]+]]:gr32 = COPY $edi
19 ; CHECK-NEXT: $eax = COPY [[COPY]]
20 ; CHECK-NEXT: RET 0, $eax