27 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 42; RUN: llc -mtriple=x86_64-- -debug-counter=dagcombine=0-5 < %s | FileCheck %s3 4; REQUIRES: asserts5 6define i32 @test(i32 %x) {7; CHECK-LABEL: test:8; CHECK: # %bb.0:9; CHECK-NEXT: movl %edi, %eax10; CHECK-NEXT: retq11 %y = add i32 %x, 112 %z = sub i32 %y, 113 ret i32 %z14}15 16define i32 @test2(i32 %x) {17; CHECK-LABEL: test2:18; CHECK: # %bb.0:19; CHECK-NEXT: # kill: def $edi killed $edi def $rdi20; CHECK-NEXT: leal 1(%rdi), %eax21; CHECK-NEXT: subl $1, %eax22; CHECK-NEXT: retq23 %y = add i32 %x, 124 %z = sub i32 %y, 125 ret i32 %z26}27