2016-08-14 17:34:39 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
2014-12-11 18:21:12 +08:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=knl | FileCheck %s
|
|
|
|
|
|
|
|
; ModuleID = 'bugpoint-reduced-simplified.bc'
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
|
|
|
|
define void @func() {
|
2016-08-14 17:34:39 +08:00
|
|
|
; CHECK-LABEL: func:
|
|
|
|
; CHECK: ## BB#0: ## %L_10
|
2016-09-04 22:03:52 +08:00
|
|
|
; CHECK-NEXT: xorl %eax, %eax
|
|
|
|
; CHECK-NEXT: testb %al, %al
|
2016-08-14 17:34:39 +08:00
|
|
|
; CHECK-NEXT: je LBB0_1
|
2016-09-04 22:03:52 +08:00
|
|
|
; CHECK-NEXT: ## BB#4: ## %L_30
|
2016-08-14 17:34:39 +08:00
|
|
|
; CHECK-NEXT: retq
|
2016-09-04 22:03:52 +08:00
|
|
|
; CHECK-NEXT: LBB0_1: ## %bb56
|
|
|
|
; CHECK-NEXT: xorl %eax, %eax
|
|
|
|
; CHECK-NEXT: jmp LBB0_2
|
2016-08-14 17:34:39 +08:00
|
|
|
; CHECK-NEXT: .p2align 4, 0x90
|
2016-09-04 22:03:52 +08:00
|
|
|
; CHECK-NEXT: LBB0_3: ## %bb35
|
|
|
|
; CHECK-NEXT: ## in Loop: Header=BB0_2 Depth=1
|
|
|
|
; CHECK-NEXT: testb %al, %al
|
|
|
|
; CHECK-NEXT: LBB0_2: ## %bb33
|
2016-08-14 17:34:39 +08:00
|
|
|
; CHECK-NEXT: ## =>This Inner Loop Header: Depth=1
|
2016-09-04 22:03:52 +08:00
|
|
|
; CHECK-NEXT: testb %al, %al
|
|
|
|
; CHECK-NEXT: jne LBB0_2
|
|
|
|
; CHECK-NEXT: jmp LBB0_3
|
2014-12-11 18:21:12 +08:00
|
|
|
bb1:
|
|
|
|
br i1 undef, label %L_10, label %L_10
|
|
|
|
|
|
|
|
L_10: ; preds = %bb1, %bb1
|
|
|
|
br i1 undef, label %L_30, label %bb56
|
|
|
|
|
|
|
|
bb56: ; preds = %L_10
|
|
|
|
br label %bb33
|
|
|
|
|
|
|
|
bb33: ; preds = %bb51, %bb56
|
2015-02-28 05:17:42 +08:00
|
|
|
%r111 = load i64, i64* undef, align 8
|
2014-12-11 18:21:12 +08:00
|
|
|
br i1 undef, label %bb51, label %bb35
|
|
|
|
|
|
|
|
bb35: ; preds = %bb33
|
|
|
|
br i1 undef, label %L_19, label %bb37
|
|
|
|
|
|
|
|
bb37: ; preds = %bb35
|
|
|
|
%r128 = and i64 %r111, 576460752303423488
|
|
|
|
%phitmp = icmp eq i64 %r128, 0
|
|
|
|
br label %L_19
|
|
|
|
|
|
|
|
L_19: ; preds = %bb37, %bb35
|
|
|
|
%"$V_S25.0" = phi i1 [ %phitmp, %bb37 ], [ true, %bb35 ]
|
|
|
|
br i1 undef, label %bb51, label %bb42
|
|
|
|
|
|
|
|
bb42: ; preds = %L_19
|
|
|
|
%r136 = select i1 %"$V_S25.0", i32* undef, i32* undef
|
|
|
|
br label %bb51
|
|
|
|
|
|
|
|
bb51: ; preds = %bb42, %L_19, %bb33
|
|
|
|
br i1 false, label %L_30, label %bb33
|
|
|
|
|
|
|
|
L_30: ; preds = %bb51, %L_10
|
|
|
|
ret void
|
|
|
|
}
|