36 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s3 4;; Verify that the machine instructions generated from the first5;; getelementptr don't get sunk below the callbr. (Reduced from a bug6;; report.)7 8%struct1 = type { ptr, i32 }9 10define void @klist_dec_and_del(ptr) {11; CHECK-LABEL: klist_dec_and_del:12; CHECK: # %bb.0:13; CHECK-NEXT: leaq 8(%rdi), %rax14; CHECK-NEXT: #APP15; CHECK-NEXT: # 8(%rdi) .LBB0_116; CHECK-NEXT: #NO_APP17; CHECK-NEXT: # %bb.2:18; CHECK-NEXT: retq19; CHECK-NEXT: .LBB0_1: # Inline asm indirect target20; CHECK-NEXT: # Label of block must be emitted21; CHECK-NEXT: movq $0, -8(%rax)22; CHECK-NEXT: retq23 %2 = getelementptr inbounds %struct1, ptr %0, i64 0, i32 124 callbr void asm sideeffect "# $0 $1", "*m,!i,~{memory},~{dirflag},~{fpsr},~{flags}"(ptr elementtype(i32) %2)25 to label %6 [label %3]26 273:28 %4 = getelementptr i32, ptr %2, i64 -229 %5 = bitcast ptr %4 to ptr30 store ptr null, ptr %5, align 831 br label %632 336:34 ret void35}36