brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 8e4c74d Raw
40 lines · plain
1; RUN: opt -S -loop-reduce %s | FileCheck %s2 3target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128-ni:1-p2:32:8:8:32-ni:2"4target triple = "x86_64-unknown-linux-gnu"5 6; Make sure we don't crash.7define void @test() {8; CHECK-LABEL: @test(9bb:10  %tmp = load atomic i64, ptr addrspace(1) undef unordered, align 811  %tmp1 = sub i64 4294967294, undef12  br label %bb513 14bb2:                                              ; No predecessors!15  %tmp3 = add i32 undef, %tmp2416  unreachable17 18bb5:                                              ; preds = %bb5, %bb19  %tmp6 = phi i64 [ %tmp18, %bb5 ], [ %tmp, %bb ]20  %tmp7 = phi i32 [ %tmp19, %bb5 ], [ undef, %bb ]21  %tmp8 = phi i32 [ %tmp24, %bb5 ], [ undef, %bb ]22  %tmp9 = sub i32 %tmp8, undef23  %tmp10 = zext i32 %tmp9 to i6424  %tmp11 = add i32 %tmp7, 125  %tmp12 = zext i32 %tmp11 to i6426  %tmp13 = add i64 %tmp1, %tmp1227  %tmp14 = add i64 %tmp6, %tmp1028  %tmp15 = sub i64 %tmp14, %tmp1329  %tmp16 = trunc i64 %tmp15 to i3230  %tmp17 = add i32 undef, %tmp1631  %tmp18 = add i64 %tmp6, 232  %tmp19 = add i32 %tmp7, 233  %tmp20 = xor i64 %tmp6, -134  %tmp21 = add i64 %tmp1, %tmp2035  %tmp22 = trunc i64 %tmp21 to i3236  %tmp23 = add i32 %tmp19, %tmp2237  %tmp24 = add i32 %tmp17, %tmp2338  br label %bb539}40