brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.0 KiB · bffde12 Raw
60 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 42; RUN: opt < %s -passes=newgvn3target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"4%struct.S0 = type { [2 x i8], [2 x i8], [4 x i8], [2 x i8], i32, i32, i32, i32 }5define void @fn1(ptr byval(%struct.S0) align 8 %p1) {6  br label %for.cond7for.cond:                                         ; preds = %1, %08  br label %for.end9  %f2 = getelementptr inbounds %struct.S0, ptr %p1, i64 0, i32 210  %f9 = getelementptr inbounds %struct.S0, ptr %p1, i64 0, i32 711  br label %for.cond12for.end:                                          ; preds = %for.cond13  br i1 true, label %if.else, label %if.then14if.then:                                          ; preds = %for.end15  %f22 = getelementptr inbounds %struct.S0, ptr %p1, i64 0, i32 216  %f7 = getelementptr inbounds %struct.S0, ptr %p1, i64 0, i32 517  %tmp7 = load i32, ptr %f7, align 818  br label %if.end4019if.else:                                          ; preds = %for.end20  br i1 false, label %for.cond18, label %if.then621if.then6:                                         ; preds = %if.else22  %f3 = getelementptr inbounds %struct.S0, ptr %p1, i64 0, i32 223  %f5 = getelementptr inbounds %struct.S0, ptr %p1, i64 0, i32 324  %bf.load13 = load i16, ptr %f5, align 825  br label %if.end3626for.cond18:                                       ; preds = %if.else27  call void @fn4()28  br i1 true, label %if.end, label %if.end3629if.end:                                           ; preds = %for.cond1830  %f321 = getelementptr inbounds %struct.S0, ptr %p1, i64 0, i32 231  %f925 = getelementptr inbounds %struct.S0, ptr %p1, i64 0, i32 732  %f526 = getelementptr inbounds %struct.S0, ptr %p1, i64 0, i32 333  %bf.load27 = load i16, ptr %f526, align 834  br label %if.end3635if.end36:                                         ; preds = %if.end, %for.cond18, %if.then636  %f537 = getelementptr inbounds %struct.S0, ptr %p1, i64 0, i32 337  %bf.load38 = load i16, ptr %f537, align 838  %bf.clear39 = and i16 %bf.load38, -1638439  br label %if.end4040if.end40:                                         ; preds = %if.end36, %if.then41  %f6 = getelementptr inbounds %struct.S0, ptr %p1, i64 0, i32 442  %tmp18 = load i32, ptr %f6, align 443  call void @fn2(i32 %tmp18)44  %f8 = getelementptr inbounds %struct.S0, ptr %p1, i64 0, i32 645  %tmp19 = load i32, ptr %f8, align 446  %tobool41 = icmp eq i32 %tmp19, 047  br i1 true, label %if.end50, label %if.then4248if.then42:                                        ; preds = %if.end4049  %f547 = getelementptr inbounds %struct.S0, ptr %p1, i64 0, i32 350  %bf.load48 = load i16, ptr %f547, align 851  br label %if.end5052if.end50:                                         ; preds = %if.then42, %if.end4053  %f551 = getelementptr inbounds %struct.S0, ptr %p1, i64 0, i32 354  %bf.load52 = load i16, ptr %f551, align 855  %bf.clear53 = and i16 %bf.load52, -1638456  ret void57}58declare void @fn2(i32)59declare void @fn4()60