1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 3
2 ; RUN: llc -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s
4 ; Check there's no assert in the coalescer from implicit-def operands
8 define i1 @_ZN4llvm8LLParser17parseDIEnumeratorERPNS_6MDNodeEb(i32 %arg) {
9 ; CHECK-LABEL: _ZN4llvm8LLParser17parseDIEnumeratorERPNS_6MDNodeEb:
10 ; CHECK: # %bb.0: # %entry
11 ; CHECK-NEXT: xorl %ecx, %ecx
12 ; CHECK-NEXT: xorl %eax, %eax
13 ; CHECK-NEXT: cmpl $1, %edi
14 ; CHECK-NEXT: je .LBB0_1
15 ; CHECK-NEXT: # %bb.2: # %entry
16 ; CHECK-NEXT: testl %edi, %edi
17 ; CHECK-NEXT: jne .LBB0_4
18 ; CHECK-NEXT: # %bb.3: # %if.end.i.i.preheader
19 ; CHECK-NEXT: movb $1, %al
20 ; CHECK-NEXT: movl $1, %ecx
21 ; CHECK-NEXT: .LBB0_4: # %if.then.i.i
22 ; CHECK-NEXT: movb $1, %dl
23 ; CHECK-NEXT: testb %dl, %dl
24 ; CHECK-NEXT: je .LBB0_6
25 ; CHECK-NEXT: .LBB0_7: # %do.end
26 ; CHECK-NEXT: movq %rcx, 0
27 ; CHECK-NEXT: movb %al, 0
28 ; CHECK-NEXT: xorl %eax, %eax
30 ; CHECK-NEXT: .LBB0_1:
31 ; CHECK-NEXT: xorl %edx, %edx
32 ; CHECK-NEXT: testb %dl, %dl
33 ; CHECK-NEXT: jne .LBB0_7
34 ; CHECK-NEXT: .LBB0_6: # %if.then8
35 ; CHECK-NEXT: xorl %eax, %eax
38 switch i32 %arg, label %if.then.i.i [
39 i32 1, label %"_ZN4llvm8LLParser17parseMDFieldsImplIZNS0_17parseDIEnumeratorERPNS_6MDNodeEbE3$_0EEbT_RNS_5SMLocE.exit"
40 i32 0, label %if.end.i.i.preheader
43 if.end.i.i.preheader: ; preds = %entry
46 if.then.i.i: ; preds = %if.end.i.i.preheader, %entry
47 %i = phi i64 [ 0, %entry ], [ 1, %if.end.i.i.preheader ]
48 %i1 = phi i8 [ 0, %entry ], [ 1, %if.end.i.i.preheader ]
49 br label %"_ZN4llvm8LLParser17parseMDFieldsImplIZNS0_17parseDIEnumeratorERPNS_6MDNodeEbE3$_0EEbT_RNS_5SMLocE.exit"
51 "_ZN4llvm8LLParser17parseMDFieldsImplIZNS0_17parseDIEnumeratorERPNS_6MDNodeEbE3$_0EEbT_RNS_5SMLocE.exit": ; preds = %if.then.i.i, %entry
52 %i2 = phi i64 [ 0, %entry ], [ %i, %if.then.i.i ]
53 %i3 = phi i8 [ 0, %entry ], [ %i1, %if.then.i.i ]
54 %i4 = phi i8 [ 0, %entry ], [ 1, %if.then.i.i ]
55 %tobool7.not = icmp eq i8 %i4, 0
56 br i1 %tobool7.not, label %if.then8, label %do.end
58 if.then8: ; preds = %"_ZN4llvm8LLParser17parseMDFieldsImplIZNS0_17parseDIEnumeratorERPNS_6MDNodeEbE3$_0EEbT_RNS_5SMLocE.exit"
61 do.end: ; preds = %"_ZN4llvm8LLParser17parseMDFieldsImplIZNS0_17parseDIEnumeratorERPNS_6MDNodeEbE3$_0EEbT_RNS_5SMLocE.exit"
62 store i64 %i2, ptr null, align 8
63 store i8 %i3, ptr null, align 4