16 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s3; RUN: llc < %s -fast-isel -fast-isel-abort=1 -mtriple=x86_64-apple-darwin | FileCheck %s4 5define i64 @fold_load(ptr %a, i64 %b) {6; CHECK-LABEL: fold_load:7; CHECK: ## %bb.0:8; CHECK-NEXT: movq %rsi, %rax9; CHECK-NEXT: addq (%rdi), %rax10; CHECK-NEXT: retq11 %1 = load i64, ptr %a, align 812 %2 = add i64 %1, %b13 ret i64 %214}15 16