1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
6 define void @f(ptr %x, i32 %c32, ptr %y) nounwind {
8 ; CHECK: # %bb.0: # %entry
9 ; CHECK-NEXT: pushq %rbp
10 ; CHECK-NEXT: pushq %r14
11 ; CHECK-NEXT: pushq %rbx
12 ; CHECK-NEXT: movq %rdx, %rbx
13 ; CHECK-NEXT: movl %esi, %ebp
14 ; CHECK-NEXT: movl (%rdi), %r14d
15 ; CHECK-NEXT: callq free_v@PLT
16 ; CHECK-NEXT: testl %ebp, %ebp
17 ; CHECK-NEXT: je .LBB0_2
18 ; CHECK-NEXT: # %bb.1: # %left
19 ; CHECK-NEXT: movl %r14d, (%rbx)
20 ; CHECK-NEXT: .LBB0_2: # %merge
21 ; CHECK-NEXT: popq %rbx
22 ; CHECK-NEXT: popq %r14
23 ; CHECK-NEXT: popq %rbp
26 %v = load i32, ptr %x, !invariant.load !0
28 %c = icmp ne i32 %c32, 0
29 br i1 %c, label %left, label %merge